Connection String Builder & Parser
Build and parse database connection strings for PostgreSQL, MySQL, MongoDB, Redis, SQL Server, and SQLite. Convert between URI, key/value, and JDBC formats with correct percent-encoding of user, password, and parameters. Validate, mask passwords, multi-host, and SSL params. 100% client-side — secrets never leave the browser.
About Connection String Builder & Parser
Build and parse database connection strings for PostgreSQL, MySQL, MongoDB, Redis, SQL Server, and SQLite. Convert between URI, key/value, and JDBC formats with correct percent-encoding of user, password, and parameters. Validate, mask passwords, multi-host, and SSL params. 100% client-side — secrets never leave the browser. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
Which database connection string formats are supported?
Six databases: PostgreSQL (postgres:// / postgresql://), MySQL (mysql://), MongoDB (mongodb:// / mongodb+srv://), Redis (redis:// / rediss://), SQL Server (sqlserver:// or Server=…;Database=… key/value), and SQLite (file:). Each can be built and parsed in URI form, key/value form (where applicable), and JDBC form (where applicable).
How are special characters in passwords handled?
All user, password, and query-parameter values are percent-encoded when building and percent-decoded when parsing, per RFC 3986. Characters like '@', ':', '/', '?', '#', and '%' are correctly handled so a password such as 'p@ss/w:rd' round-trips losslessly without breaking the URI structure.
Can I convert between URI, key/value, and JDBC formats?
Yes. Paste any supported connection string and the parser auto-detects the database type and format. You can then convert to any other supported format with one click. For example, parse 'postgres://user:pass@host:5432/db' and emit the JDBC form 'jdbc:postgresql://host:5432/db?user=user&password=pass', or the libpq key/value form 'host=host port=5432 dbname=db user=user password=pass'.
Does this tool handle multi-host / replica sets?
Yes. The structured ConnParts model accepts an array of {host, port} pairs. MongoDB connection strings emit 'host1:port1,host2:port2', PostgreSQL emits 'host=host1,host2 port=port1,port2', and SQL Server emits 'host1,port1;host2,port2'. Default ports are applied per database when omitted.
What extra features does this tool have versus other connection string tools?
(1) Six DB types in one tool with auto-detection. (2) Three output formats: URI, key/value, JDBC. (3) Correct RFC 3986 percent-encoding of user/password/params. (4) Multi-host / replica set support. (5) Default ports per DB type. (6) SSL/TLS parameter helpers. (7) Password masking with reveal toggle. (8) Per-parameter tooltips and driver hints (Prisma/SQLAlchemy/Spring). (9) Validation with specific error messages. (10) localStorage history (max 20). (11) Shareable URL with masked password. (12) Copy buttons per format. 100% offline; secrets never transmitted.
Related tools
.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Age Calculator
Calculate exact age from a birth date in calendar years/months/days (no negative-day bugs) plus totals in months/weeks/days/hours/minutes/seconds. Next-birthday countdown with weekday. Feb-29 birthday policy toggle. Milestones (1,000 days, 10,000 days, 1 billion seconds). Zodiac sign + Chinese zodiac. Age gap comparison. Shareable URL. 100% client-side.