Database password generator
Pick a length and character classes — get a strong password, plus its percent-encoded form for a connection string.
Excludes "@", ":", "/", "?", "#", "%", "$", "`", "\", """, "'", "space", "&" — characters that would otherwise need escaping in a connection URI or shell command.
Generated with crypto.getRandomValues. Never logged or sent anywhere.
Runs in your browser. Nothing you type is sent anywhere.
How this works
- Uses crypto.getRandomValues (the Web Crypto API), never Math.random, with rejection sampling so no character is favored over another.
- The connection-URI-safe preset excludes @ : / ? # % (RFC 3986 reserved characters) plus shell metacharacters, so the password never needs escaping in a redis://, postgresql:// or mongodb:// string.
- The ADO.NET-safe preset instead excludes ; = { } and quotes — the characters that break a SQL Server semicolon-delimited connection string.
Do this against your live database in Tablyne.
PostgreSQL GUI →FAQ
Why not just percent-encode any password? +
You can — the percent-encoded form is shown below the password — but a password free of special characters is one less thing to get wrong when pasting it into a shell script or .env file.
Is crypto.getRandomValues good enough for a password? +
Yes — it's the same cryptographically secure random source browsers use for keys and tokens, unlike Math.random which isn't designed for security.
Does this ever leave my browser? +
No — it's generated, shown and copied entirely client-side. Nothing is logged or sent anywhere.