Database Password Generator

Only characters that survive a connection string without encoding.

Very strong0 bitsGenerated in your browser

Local alternative

openssl rand -base64 32 | tr -d '+/=' | head -c 32

Prefer generating secrets on the machine that uses them? This command produces an equivalent value.

Characters such as @, colon, slash, question mark or hash separate the parts of a connection URL like postgres://user:password@host/database. A password containing them has to be percent-encoded, and forgetting that makes the connection fail with misleading errors. This generator uses only the unreserved characters from RFC 3986.

Frequently asked questions