Password & Passphrase Generator

Strong random passwords and passphrases with exact entropy.

characters

Random password only. 16+ characters are recommended; 20+ for important accounts.

More options
Character sets

Passphrase only. Each word adds 11 bits of entropy.

Leave empty for real use. With a seed, anyone who knows it can regenerate the same passwords.

Try an example: · ·

More about this tool

Part of Keysmith Cryptography & security tools

How it works

Generates random passwords (length, character sets, no look-alike characters, at least one of each class) or passphrases from a 2048-word list with separators and capitalisation. Shows the exact entropy in bits and how long guessing would take.

  • Random password: every character is drawn uniformly from the selected sets with an unbiased random integer (rejection sampling, no modulo bias). "At least one of each set" regenerates the whole password until the rule holds, which keeps all valid passwords equally likely.
  • Entropy is exact: log2 of the number of possible passwords. With "at least one of each set" the count is computed by inclusion–exclusion, so it is slightly lower than length × log2(pool size).
  • Passphrase: words are drawn uniformly from a bundled list of 2048 common English words (4–8 letters), so each word adds exactly 11 bits. Random capitalisation adds 1 bit per word; an appended digit adds log2(10 × words) bits.
  • Guessing times assume the attacker knows exactly how the password was generated (the worst case) and finds it on average after trying half of all possibilities.
  • With JavaScript on, passwords are generated with crypto.getRandomValues. Without JavaScript (and via the API/MCP), the server generates them with Node.js crypto.randomInt and sends them back over HTTPS without storing them.

Use a password manager and a different password for every account. Seeded output is for demos only.

Sources

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Keysmith Crypto & secrets lab

    Audit certificates, keys, TLS and passwords in one lab; server runs ask first.

    Open Keysmith

Related tools

  • Private Breach Checker – Check if a password appears in known breaches without revealing it (k-anonymity).
  • Key Derivation Lab – Derive keys with PBKDF2, scrypt, Argon2id and HKDF; compare costs with OWASP advice.

How to use the Password & Passphrase Generator

Generate random passwords or word passphrases, and understand the exact entropy and guessing times the tool shows.

What it is for

Every account deserves its own password, and humans are bad at inventing random ones. This generator draws characters or words uniformly at random and tells you exactly how many bits of entropy the result has. Entropy counts how many equally likely passwords the same settings could have produced, so it measures guessing resistance far better than a "strength meter" that only looks at the characters.

Choose password for random characters (length, lower case, upper case, digits, symbols, optionally without look-alikes such as I l 1 O 0). Choose passphrase for words from a 2048-word English list, with a separator, capitalisation and an optional digit. With JavaScript on, generation uses crypto.getRandomValues.

It does not check whether a password has leaked (that's the Private Breach Checker), and it can't rate a password you made up yourself.

Worked example

Three real runs. We used demo seeds so the output can be reproduced. Never use a seed for real passwords.

Worked example
SettingsEntropyExample output
20 characters, all four sets130.93 bits (very strong)Qx(bTO9u&<+S?r%ha}}.
6 words, Title Case, with a digit71.91 bits (strong)Flourish-Gecko0-Vendor-Misty-Hare-Mushroom
12 characters, letters and digits, no look-alikes69.44 bits (strong)fp5RFG6JUPcX

For the 12-character password, the pool is 56 characters. Against an offline attacker testing a fast unsalted hash like MD5 at 100 billion guesses per second, the average time to guess is about 127 years. The 6-word passphrase gets about 702 years in the same scenario. The 20-character password is about 10²⁰ years, beyond any realistic attack.

How to read the result

  • Entropy per password: the number that matters. Each extra bit doubles the attacker's work. It's exact: with "at least one of each set" switched on, the tool counts by inclusion–exclusion, so the value is slightly lower than length × log₂(pool).
  • Strength: a label derived from the entropy.
  • Character pool / wordlist size: 94 printable characters with all sets, 2048 words for passphrases (11 bits per word).
  • Average time to guess: three scenarios, a rate-limited online login, a slow password hash (bcrypt/Argon2) and a fast hash on GPUs. They assume the attacker knows exactly how the password was generated, which is the worst case.

Tips and common mistakes

  • For a password manager's master password or your disk encryption, use a passphrase you can type. Six words is a good minimum, seven gives more headroom.
  • Title Case adds no entropy, because every word is capitalised the same way. The random-capitalisation option adds 1 bit per word.
  • Turn on "avoid look-alikes" if you'll ever read the password aloud or type it from paper. It shrinks the pool a little, but the entropy shown accounts for that.
  • Don't "improve" a generated password by hand. Swapping in your favourite symbol makes it less random, not more.
  • If a site rejects symbols, switch them off and add 3–4 characters to keep the entropy.
  • A seed makes the output reproducible for anyone who knows it. Leave the seed field empty for real use.

FAQ

How many bits are enough?

The tool's labels are below 40 bits weak, 40–59 fair, 60–79 strong and 80 or more very strong. Aim for "very strong" for anything an attacker could copy and attack offline, such as an encrypted file or a password vault.

Are passphrases really as strong as random characters?

Per bit, yes. Six words from 2048 give 66 bits, plus extras such as a digit. They're just longer to type.

Are the passwords sent to the server?

Not in the browser. Without JavaScript or via the API, the server generates them with Node.js crypto and returns them over HTTPS without storing them.

Why is my entropy not exactly length × log₂(94)?

"At least one character from each set" excludes some combinations, and the tool subtracts them exactly.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://passwordgenerator.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://passwordgenerator.usefulweb.site/mcp · tool name password_generator
Example request
curl -s -X POST https://passwordgenerator.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"mode":"password","length":20,"count":5,"seed":"demo"}'
Feedback · ideas & bug reports welcome