Zero Signup ToolsFree browser tools

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.

104 chars
Sample:

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

TLS enabled

Both postgres:// and postgresql:// are accepted by libpq.

Scheme postgresqlDefault port 5432

Notes and warnings

  • InfoA password is included in the connection string. Avoid committing strings with secrets to a repo or screenshot.

Connection breakdown

Driver

PostgreSQL

Scheme

postgresql

Username

app_user

Password

Mask is on. Toggle off to reveal.

*********

Host

db.example.com

Port

5432

Database

orders_prod

Query string

?sslmode=require&application_name=billing

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

KeyValueCopy
sslmoderequire
application_namebilling

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

  1. Paste your connection string into the input area. Examples are provided for each supported driver.
  2. Read the detected driver, the TLS state, and the connection breakdown (username, password, hosts, port, database).
  3. Toggle Mask password to hide or reveal the decoded password, which is useful when sharing the page or a screenshot.
  4. Check the Notes and warnings panel for common mistakes such as missing TLS, multi-host MongoDB without replicaSet, or an out-of-range port.
  5. 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

All tools
All toolsDeveloper Tools