All tools

Database Connection String Parser

Code

Parse a database connection URI (postgres, mysql, mongodb, redis, amqp, and more) into its scheme, credentials, hosts, database, and query parameters

Paste a database connection URI like postgres://user:pass@host:5432/mydb and this splits it into its scheme, username, password, host and port, database name, and query parameters, so you can check at a glance which host or database an app is actually pointed at before you go digging through a dotenv file or a deploy config. It handles the mongodb-style comma-separated multi-host form used for replica sets, bracketed IPv6 hosts, and percent-encoded credentials. This is a pure, offline parse: it never attempts to connect to the database, resolve DNS, or confirm the scheme is a driver that actually exists, so it can tell you how a string decomposes but not whether the server behind it is reachable.

databaseconnection-stringpostgresmysqlmongodbparse

How to use Database Connection String Parser

  • 1.Paste a full connection string, or pick one of the sample schemes to see the expected shape.
  • 2.Read off the parsed scheme, user, password (hidden by default, click Show to reveal it), hosts, database, and query parameters.
  • 3.Use it to quickly sanity-check a connection string from a config file or environment variable before debugging why an app can't reach its database.

Frequently asked questions

Does this connect to the database to verify the credentials?
No, it only parses the string's structure locally. It never opens a network connection, resolves DNS, or checks that the host, port, or database actually exist.
Does it support multiple hosts, like a MongoDB replica set?
Yes, a comma-separated host list in the authority section (host1:port1,host2:port2) is parsed into a list of individual host/port pairs, the same shape MongoDB connection strings use for replica sets.
Is my password sent anywhere or stored?
No, everything runs locally and nothing is logged or transmitted. The password field is masked by default in the browser UI with a Show toggle, since connection strings often contain real production credentials.
What happens if the port is missing?
The port field comes back null, meaning the driver's own default port applies; this tool doesn't guess or fill in a default port for any particular database.

Use via API, SDK, or MCP

cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/connection-string-parser \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"connectionString":"postgres://user:pass@localhost:5432/mydb?sslmode=require"}'

Get an API key from your dashboard · Full API docs →