Skip to main content

Password Generator

A strong password is a random password — not a word, not a name with digits swapped in. This generator builds one from your browser’s secure random source (crypto.getRandomValues — the only randomness it will ever use), with your choice of length and character sets.

Strength is shown as entropy bits, the honest measure — not a colored bar. And the password never leaves this page: it is not sent, stored, or logged anywhere.

Loading the generator…

Embed this calculator on your website →

The formula

entropy bits = length × log₂(pool size)

  • the pool — lowercase (26) + uppercase (26) + digits (10) + symbols (26) = up to 88 characters. Each set you enable multiplies every character’s possibilities.
  • the labels — under 40 bits Weak · 40–59 Fair · 60–79 Strong · 80–99 Very strong · 100+ Excellent, measured against offline guessing.
  • no biased shortcuts — characters are drawn by rejection sampling, so every character in the pool is exactly equally likely — a subtle point cheap generators get wrong.

Worked examples: 16 characters from lowercase + uppercase + digits (pool 62) = 95.3 bits — “Very strong”. 8 lowercase letters (pool 26) = 37.6 bits — “Weak”: length and pool multiply together, and length is the lever that matters most.

How it works

The generator draws secure random bytes, discards any byte that would bias the result (rejection sampling), and maps the rest onto your chosen pool. It also guarantees at least one character from each enabled set, then shuffles — so a 16-character password with symbols on will always actually contain a symbol, not just be allowed to.

Because generation is entirely client-side, the honest way to use this page is: generate, copy straight into your password manager, and let the manager remember it. A password you can remember unaided is, with rare passphrase-style exceptions, a password a computer can guess.

Examples

  • An everyday account → 16 characters, all four sets: about 103 bits — beyond any realistic guessing attack.
  • A site that bans symbols → symbols off, length 20, letters + digits (pool 62): still 119 bits — length compensates for a smaller pool.
  • A PIN-like code → digits only at length 6 is just 19.9 bits — fine behind a lockout, never as a password.

Frequently asked questions

Is it safe to generate a password on a website?

On this page, the password is created inside your browser and never transmitted — you can verify that by opening your browser’s network monitor while generating: no request is made. That said, the general habit to build is using the generator built into your password manager; this page is for when one is not at hand.

How long should a password be?

Length beats complexity tricks. 16 characters with all sets is about 103 bits — excellent. If a site limits you to fewer characters, enable every set it allows; if it allows length, 20+ characters makes even letters-and-digits-only passwords extremely strong.

Why avoid words, names, and substitutions?

Guessing software tries dictionaries with substitutions built in: 'P@ssw0rd' falls instantly because the pattern is in every rule set. True randomness has no pattern to exploit — each character is independent, which is exactly what the entropy figure assumes.

What happens to the password if I close the tab?

It is gone — by design. It existed only in this page’s memory. Generate, save it in your password manager, and only then close the page.