Processed locally in your browser — not uploaded
Database Connection String Parser & Builder
Break a database or message-broker connection string into engine, host(s), port, username, password, database, and query parameters — with support for MongoDB's multi-host replica-set and mongodb+srv syntax. Edit any field and copy the correctly re-encoded connection string back out. Parsed entirely in your browser; the password field is masked by default.
Parsed entirely in your browser — nothing is sent anywhere. Passwords are masked below by default.
How to use
- Paste a database or message-broker connection string — PostgreSQL, MySQL/MariaDB, MongoDB (including mongodb+srv and multi-host replica sets), Redis, or RabbitMQ.
- The breakdown shows engine, host(s), port, username, database, and every query parameter decoded into an editable table.
- The password is masked by default — click to reveal it before copying or sharing your screen.
- Edit any field and the reconstructed connection string at the bottom updates live, correctly re-encoding special characters.
Understanding the output
Parsing is regex-based rather than the browser's URL API, because MongoDB's comma-separated multi-host syntax (host1:port1,host2:port2) isn't valid input for new URL(). This keeps behavior consistent across every supported engine, including bracketed IPv6 host literals.
Common issues & tips
- •"That doesn't look like a connection string": the scheme (postgres://, mysql://, mongodb://, redis://) is required — a bare host:port isn't enough to identify the engine.
- •Unrecognized scheme: the string still parses structurally (host, port, credentials, params) even for engines not explicitly named, just without a default-port fill-in or engine label.
- •Reconstructed string looks different: rebuilding re-encodes the username, password, and database with standard percent-encoding, which may differ in form from the original while remaining equivalent.
Frequently asked questions
- Does this tool send my database password anywhere?
- No. Parsing happens entirely in your browser using JavaScript — the connection string, including any embedded password, never leaves your device.
- Does it support MongoDB replica sets and mongodb+srv?
- Yes. Comma-separated multi-host strings (host1:port1,host2:port2) parse into individually editable host entries, and mongodb+srv URIs are recognized and labeled since they resolve hosts via DNS SRV lookup rather than an explicit port.
Related tools
DNS Over HTTPS (DoH) Record Inspector
Inspect live A, AAAA, MX, CNAME, TXT, and NS DNS records via Cloudflare DoH.
URL Parser
Break a URL into protocol, host, path and query parameters — then edit and rebuild it.
CIDR Calculator
Calculate network address, broadcast address, usable host range and subnet mask from CIDR notation.