Generate connection strings for MySQL, PostgreSQL, MongoDB, MSSQL, Redis and SQLite - fill the form and copy the DSN.
mysql://user:pass@host/db) or semicolon-separated key-value pairs (ADO.NET style)..env files with dotenv) or secrets managers (AWS Secrets Manager, HashiCorp Vault). Connection strings contain credentials - exposing them in version control is a critical security risk. Add .env to .gitignore.@ must be %40, / must be %2F. This tool uses encodeURIComponent() automatically. For non-URI formats (PDO DSN, ADO.NET), special characters are generally fine.We add new tools every week based on what you ask for. Suggest one - it takes 30 seconds.
We use cookies to enhance your experience. By continuing you agree to our Cookie Policy.