Developer Tools
Database Connection String Parser
Parse database connection strings for Postgres, MySQL, MongoDB, Redis, SQL Server, and more. Shows host, port, auth, TLS, and parameters in your browser.
Connection strings are parsed entirely in your browser. The string is never sent to a server. This tool does not connect to any database and does not resolve DNS.
Detected driver
PostgreSQL
Both postgres:// and postgresql:// are accepted by libpq.
Notes and warnings
- InfoA password is included in the connection string. Avoid committing strings with secrets to a repo or screenshot.
Connection breakdown
Driver
Scheme
Username
Password
Mask is on. Toggle off to reveal.
Host
Port
Database
Query string
Rebuilt URI
Reconstructed from the parsed fields. Useful for sharing or for verifying that parsing was clean.
postgresql://app_user:********@db.example.com:5432/orders_prod?sslmode=require&application_name=billing
Query parameters
| Key | Value | Copy |
|---|---|---|
| sslmode | require | |
| application_name | billing |
Driver reference
PostgreSQL
Default port: 5432
Both postgres:// and postgresql:// are accepted by libpq.
MySQL
Default port: 3306
mysql:// is used by most drivers. Some drivers also accept mysqlx://.
MongoDB
Default port: 27017
mongodb:// uses a seed list. Use mongodb+srv:// for DNS SRV-based discovery.
MongoDB (SRV)
Default port: n/a · TLS implicit
mongodb+srv:// triggers DNS SRV/TXT lookup at connect time. TLS is on by default.
Redis
Default port: 6379
redis:// is plaintext. Use rediss:// for TLS, or set the appropriate flag.
Redis (TLS)
Default port: 6379 · TLS implicit
rediss:// is the standard TLS-enabled Redis scheme (note the double s).
SQL Server
Default port: 1433
sqlserver:// uses URL syntax. Encrypt and TrustServerCertificate live in the query string.
SQL Server (JDBC)
Default port: 1433
jdbc:sqlserver://host:port;property=value;property=value uses semicolons, not query params.
CockroachDB
Default port: 26257
CockroachDB speaks the PostgreSQL wire protocol on port 26257 by default.
RabbitMQ AMQP
Default port: 5672
amqp:// is plaintext AMQP. The vhost is the path segment (e.g. /myvhost).
How to use
- Paste your connection string into the input area. Examples are provided for each supported driver.
- Read the detected driver, the TLS state, and the connection breakdown (username, password, hosts, port, database).
- Toggle Mask password to hide or reveal the decoded password, which is useful when sharing the page or a screenshot.
- Check the Notes and warnings panel for common mistakes such as missing TLS, multi-host MongoDB without replicaSet, or an out-of-range port.
- Use the rebuilt URI as a copy-pasteable version, or as a quick builder: edit the input and the rebuild updates instantly.
About this tool
Database Connection String Parser decodes the URIs that databases use to describe how a client connects: PostgreSQL (postgres:// and postgresql://), MySQL and MariaDB (mysql://), MongoDB (both mongodb:// seed lists and mongodb+srv:// DNS records), Redis (redis:// and rediss://), Microsoft SQL Server (both sqlserver:// and the JDBC jdbc:sqlserver://host:port;property=value;property=value semicolon syntax), CockroachDB (PostgreSQL-wire on 26257), Cassandra, ClickHouse, RabbitMQ AMQP and AMQPS, Oracle Easy Connect, and the generic jdbc:<subprotocol>:// prefix. The parser does the per-driver work that a generic URL parser cannot: it detects the driver from the scheme, splits multi-host seed lists like mongo-0:27017,mongo-1:27017,mongo-2:27017 used in replica sets and PostgreSQL failover, URI-decodes the username and password so percent-encoded special characters (%21, %40, %20) are shown as the real characters the driver will send, extracts the database name from the pathname (or from databaseName= in SQL Server semicolon syntax), and reports default ports (5432, 3306, 27017, 6379, 1433, 26257, 5672) so you can see when a port is implicit. A TLS panel surfaces sslmode, useSSL, tls, encrypt, and sslrootcert, and recognizes the implicit-TLS schemes mongodb+srv:// and rediss:// so you don't have to remember which schemes default to encrypted. MongoDB-specific fields like replicaSet and authSource are surfaced inline. A masked-password toggle is on by default so the page is safe to screenshot. A Notes and warnings panel catches the most common mistakes: a port outside 1 to 65535, redis:// used without TLS, no TLS option set on a public-network database, multi-host MongoDB seed lists missing a replica set name, and mongodb+srv:// with more than one host (since SRV expects exactly one). A rebuild panel reconstructs the URI from the parsed fields so the tool also works as a builder. Useful for debugging a CI/CD env var that will not connect, porting a connection string between providers, checking a teammate's Slack-pasted URI without leaking credentials, and learning how each driver formats its connection URI. Everything runs in your browser. The string is never uploaded, no database is contacted, and no DNS is resolved.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
URL Parser
Break a URL into protocol, host, path, query params, and fragment with decoded values.
Open tool
DeveloperQuery String Parser
Interactive table editor for URL query parameters with dedupe, sort, and JSON output.
Open tool
DeveloperCookie Parser
Decode Set-Cookie or Cookie headers with attributes, expiry, and safety warnings.
Open tool
DeveloperMongoDB ObjectId Decoder
Decode MongoDB ObjectIds to a date, hex bytes, and per-field breakdown.
Open tool
DeveloperJWT Decoder
Decode header, payload, and claims of a JWT with expiry checks.
Open tool
DeveloperHTTP Headers Parser
Parse, classify, and decode HTTP headers, with a missing security headers audit.
Open tool