DB Connection String Parser
Parse and build connection strings for PostgreSQL, MySQL, MongoDB (incl. SRV), Redis, and SQL Server. Exposes host, port, auth, database, params, SSL options, and reconstructs masked-credential and url-encoded variants.
DB Connection String Parser
DB Connection String Parser
Parse and build connection strings for PostgreSQL, MySQL, MongoDB (SRV), Redis, and SQL Server. Reconstructs masked and url-encoded variants.
••••••| sslmode | require |
| application_name | api |
postgresql://app:***@db.example.com:5432/myapp?sslmode=require&application_name=api
postgresql://app:[email protected]:5432/myapp?sslmode=require&application_name=api
- Password is short (<12 chars). Consider rotating to a longer secret.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/db-connection-string-parser/
For automation planning, fetch the canonical contract at /api/tool/db-connection-string-parser.json.
How to Use DB Connection String Parser
- 1
Paste a connection string
Drop a DSN into the parse panel — postgresql://, mysql://, mongodb://, mongodb+srv://, redis://, rediss://, or sqlserver://. Sample buttons load a working example for each driver if you need a starting point.
- 2
Inspect the parsed parts
Driver, username, password, hosts (with default ports highlighted), database, and query parameters are extracted into a structured view. The password stays masked until you click reveal.
- 3
Read the security checks
The hints panel flags missing SSL/TLS, short passwords, privileged usernames (root/admin/sa), and dangerous params like sslmode=disable or trustServerCertificate=true. Use it as a quick pre-deploy review.
- 4
Copy masked or url-encoded variants
Two output panels show the connection string with the password masked (for sharing in tickets) and a fully url-encoded variant (for pasting into config files where reserved characters need escaping).
- 5
Build a fresh DSN
Switch to Build mode to assemble a connection string from fields. Pick the driver, fill credentials and hosts (multiple supported for MongoDB/Redis sentinels), set database, SSL mode, and extra params, then copy.