Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

Password Generator

Strong, cryptographically-random passwords generated in your browser. Nothing is uploaded or stored.

20

      

What it does

Builds a random password of the length you choose (6–64) by drawing characters from the sets you enable — lowercase, uppercase, digits and symbols. Each character is picked with crypto.getRandomValues, the browser's cryptographically secure generator, using rejection sampling so there's no modulo bias: bytes that would skew the distribution are discarded rather than wrapped. Click Generate (or move the slider) for a fresh password every time. The symbol set is !@#$%^&*()-_=+[]{};:,.?/.

Entropy — why length wins

Strength is measured in bits of entropy: length × log2(pool size). With all four sets enabled the pool is 86 characters (~6.4 bits each), so a 20-character password carries roughly 128 bits — far beyond anything brute-forceable. Adding length raises entropy linearly and reliably; adding exotic character types helps far less. A longer all-lowercase password can easily beat a short mixed one.

Options and gotchas

  • Avoid ambiguous (Il1O0) strips look-alike characters so the password is safe to read aloud or copy by hand. It shrinks the pool slightly, so compensate with a couple of extra characters if you use it.
  • The generator draws from the combined pool at random; it does not force at least one character from every set. If a site demands "one digit and one symbol", regenerate or nudge the length until the result satisfies it (at 16+ chars this is almost always the case anyway).
  • Some systems reject certain symbols or cap length. If a password is refused, turn off Symbols or lower the length rather than assuming the generator failed.
  • Long random strings are ideal for a password manager, not for memorising. For something you must type from memory, a multi-word passphrase is easier and still strong.

When to use it

Use it for any account or service where a manager stores the result for you, for API keys and database passwords, or for a strong secret to feed other tools — for example a key for the HMAC generator or a value for the htpasswd generator. If you need raw random bytes rather than a typeable password, see Salts or UUID.

Security

The password is generated locally and never leaves your browser. It isn't stored — copy it before you navigate away. For accounts, longer is stronger; aim for 16+ characters with mixed sets.

Frequently asked questions

Are these passwords actually random?

Yes. They come from crypto.getRandomValues, the browser's cryptographically secure random source, not Math.random. Rejection sampling ensures every character in the pool is equally likely, so there's no modulo bias skewing the output.

How long should my password be?

Aim for at least 16 characters, and more for high-value accounts. Length adds entropy faster and more dependably than adding character types, so a long password from fewer sets can be stronger than a short one using every symbol. The default of 20 with mixed sets is about 128 bits.

Will it always include a digit and a symbol?

Not guaranteed — characters are drawn at random from the enabled sets rather than forced one-per-set. At 16+ characters it's overwhelmingly likely, but if a site has a strict "must contain" rule, just regenerate until the result meets it.

Related tools