Password Generator with Passphrases and Entropy
Generate strong random passwords or word-based passphrases with an entropy meter
Generated in this browser tab with crypto.getRandomValues. Nothing is sent to a server, stored, or put in the URL.
How this random password generator works
Every character comes from crypto.getRandomValues, the browser's cryptographically secure random number generator, which is seeded by your operating system. Math.random is never used. The page runs entirely in this tab: no password is sent to a server, written to storage or placed in the URL, and there is deliberately no share link, because a link containing a secret ends up in browser history and chat logs.
A detail many generators get wrong is modulo bias. Turning a random 32-bit number into a position in an 89-character alphabet with value % 89 makes the first few characters slightly more likely, because 2^32 is not a multiple of 89. This generator uses rejection sampling instead: it computes the largest multiple of the alphabet size that fits in 32 bits, throws away any draw above it and draws again. Every character, and every word in passphrase mode, is then exactly equally likely. The same unbiased draw is used to shuffle the characters when "at least one of each selected set" is on, so the guaranteed digit or symbol does not always sit in the same position.
The entropy figure is the strength of the generation process, not a guess about the string: length × log2(alphabet size). Sixteen characters from all four sets (89 characters) gives about 103 bits; excluding look-alike characters such as I, l, 1, O and 0 shrinks the alphabet a little and the meter updates to match.
Strong password generator settings: 12, 16 or more characters?
Length matters more than any other setting. A 12 character password generator using upper and lower case, digits and symbols yields roughly 77 bits, which is fine for an online account protected by rate limiting. A 16 character password reaches about 103 bits and is a sensible default for anything stored in a password manager, because you never type it. For keys that protect data offline, such as a disk encryption password or an SSH key passphrase, aim for 100 bits or more, since an attacker with a stolen file can guess billions of times per second without being slowed down.
If a site rejects symbols or caps the length, keep the length as high as it allows and turn off only the set it refuses; each extra character adds more strength than any single character class does. Use the bulk option (1-50) when you need several credentials at once, for example seed users for a test environment or one-off database passwords for a staging deployment. The crack-time estimate assumes ten billion guesses per second against a fast hash and is meant for comparison, not as a guarantee.
Passphrase generator: the xkcd approach
xkcd comic 936 made the case that four random common words are easier to remember than a short string of symbols and can be stronger. The key word is random: the words must be picked by a machine, not by you, because humans choose predictable phrases. Passphrase mode draws each word uniformly from a built-in list of just over 2,000 common English words, so each word contributes about 11 bits. Five words give roughly 55 bits, six give 66 and eight give 88. Capitalising words does not add entropy here because it is applied to every word, while "add a digit" adds a few bits by placing one random digit after one random word.
Use a passphrase where you actually have to type or remember the secret: a password manager master password, a laptop login or a Wi-Fi key you read out to guests. For everything else, let your password manager store a long random password instead.
How to use the Password Generator with Passphrases and Entropy tool
- 1
Choose a mode
Pick Random password for a character string or Passphrase for a sequence of random words.
- 2
Set length and character sets
Drag the slider (4-128) or tap a preset such as 12 or 16, then tick lowercase, uppercase, digits and symbols, and optionally exclude ambiguous characters.
- 3
Check the strength meter
Read the entropy in bits and the strength label; lengthen the password or add words until it reaches Strong or Very strong.
- 4
Generate and copy
Set how many you need (1-50), press Generate, and copy one password or the whole list straight into your password manager.
Frequently asked questions
Is it safe to use an online password generator?
It is as safe as the code running in your browser. This page generates passwords locally with crypto.getRandomValues and never transmits them: there is no server call, no storage and no share link. If you prefer, load the page and disconnect from the network before generating; it keeps working.
How many characters should a strong password have?
Use at least 12 random characters for online accounts and 16 or more for anything kept in a password manager. For secrets that protect files an attacker could copy, such as encryption keys, target 100+ bits of entropy, which is about 16 characters from all four character sets or 10 words from this passphrase list.
What is modulo bias and does this generator avoid it?
Modulo bias happens when a random number is reduced with % and the range is not an exact multiple of the alphabet size, making some characters more common. This generator uses rejection sampling, discarding out-of-range draws, so every character and word is equally likely.
Is the passphrase wordlist the EFF diceware list?
No. It is a separate built-in list of just over 2,000 common, easy-to-type English words assembled for this tool. The entropy shown is calculated from the real list size, so the strength figures stay accurate.
Why is there no share or permalink button?
Because the output is a secret. A URL containing a password would be saved in browser history, synced across devices and possibly logged by analytics or chat apps. Copy the password directly into your password manager instead.
Related on TechLogHub
Related Security Tools
UUID Generator for v4 and v7 with Bulk Output
Generate v4 and v7 UUIDs in bulk and inspect any UUID or GUID
Hash Generator: MD5, SHA-256, SHA-512 and HMAC
Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes and HMACs of text or files
Bcrypt Hash Generator and Verifier with Cost
Hash passwords with bcrypt at a chosen cost factor and verify passwords against bcrypt hashes
TOTP Generator with Countdown and otpauth URIs
Compute RFC 6238 TOTP codes from a base32 secret and build otpauth:// URIs for testing 2FA
Chmod Calculator for Octal and Symbolic Modes
Convert Linux permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) and build the chmod command
Get the next tool before you need it
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.

