Password Generator: Create a Strong, Random Password
A strong password is long and random. This generator makes a 20-character password from letters, numbers and symbols (128 bits of entropy, beyond any guessing attack), or a passphrase of 6 random words that is easier to type and remember. It runs on your device with your browser’s cryptographic random number generator; nothing is sent or saved.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Example password: do not use
Made on your devicevT7#qL2!mZ9$kR4&wX8p
This example is printed in the page itself, so anyone can see it: never use it. With JavaScript on, the page makes you a new one on this device.
Strength: Strong (4 of 4)
128 bits of entropy
- Online, rate-limited (100 guesses an hour)
- longer than the universe has existed
- Stolen database, slow hash such as bcrypt (10,000 a second)
- longer than the universe has existed
- Stolen database, fast hash such as unsalted SHA-1 (10 billion a second)
- longer than the universe has existed
8 to 64
4 to 8
Generated with your browser’s Web Crypto random number generator. The password is never sent, saved or logged: it exists only on this page until you close it. After pasting it into your password manager, copy something else to clear your clipboard.
Password strength by length and character types
| Length | Numbers only (10) | Lowercase (26) | Upper and lowercase (52) | Letters and numbers (62) | All four types (87) |
|---|---|---|---|---|---|
| 8 characters | 26 bits · Weak | 37 bits · Fair | 45 bits · Fair | 47 bits · Good | 51 bits · Good |
| 10 characters | 33 bits · Fair | 47 bits · Good | 57 bits · Good | 59 bits · Good | 64 bits · Strong |
| 12 characters | 39 bits · Fair | 56 bits · Good | 68 bits · Strong | 71 bits · Strong | 77 bits · Strong |
| 14 characters | 46 bits · Good | 65 bits · Strong | 79 bits · Strong | 83 bits · Strong | 90 bits · Strong |
| 16 characters | 53 bits · Good | 75 bits · Strong | 91 bits · Strong | 95 bits · Strong | 103 bits · Strong |
| 20 characters | 66 bits · Strong | 94 bits · Strong | 114 bits · Strong | 119 bits · Strong | 128 bits · Strong |
| 24 characters | 79 bits · Strong | 112 bits · Strong | 136 bits · Strong | 142 bits · Strong | 154 bits · Strong |
| 32 characters | 106 bits · Strong | 150 bits · Strong | 182 bits · Strong | 190 bits · Strong | 206 bits · Strong |
| 64 characters | 212 bits · Strong | 300 bits · Strong | 364 bits · Strong | 381 bits · Strong | 412 bits · Strong |
Passphrase strength by number of words
| Words | This generator | With a number added | 7,776-word list | Time at 10 billion guesses a second |
|---|---|---|---|---|
| 4 words | 44 bits · Fair | 49 bits | 51 bits | 29 minutes |
| 5 words | 55 bits · Good | 60 bits | 64 bits | 1 month |
| 6 words | 66 bits · Strong | 71 bits | 77 bits | 234 years |
| 7 words | 77 bits · Strong | 83 bits | 90 bits | 479 thousand years |
| 8 words | 88 bits · Strong | 94 bits | 103 bits | 981 million years |
How to create a strong password
- Pick a password or a passphrase. Use a random password for accounts your password manager fills in for you, and a passphrase for the few you have to type or remember, such as the password manager itself or your computer login.
- Set the length. Use 16 or more characters for a random password, or 5 or more words for a passphrase. The strength bar, bits and crack times update as you change the settings.
- Match the site’s rules. If a site rejects symbols or caps the length, turn Symbols off or shorten the password, and add a couple of characters to make up for anything you turned off.
- Copy it into your password manager. Press Copy, paste the password into your password manager or the sign-up form, then copy something else to clear your clipboard. Use each password for one account only.
Frequently asked questions
- How long should a password be?
- At least 15 characters for a password used on its own, and at least 8 if it is one of two factors: that is the minimum in NIST’s current digital identity guidelines (SP 800-63B-4), which also tell sites to accept passwords of 64 characters or more and not to force mixes of character types. A random password of 16 to 20 characters from this generator is plenty; for a passphrase, use 5 or more random words.
- Are passphrases more secure?
- Not automatically: strength comes from how many equally likely choices there are, not from the format. A random 6-word passphrase from this generator has 66 bits (71 bits with the added number), less than a random 16-character password (103 bits), but it is much easier to type and remember. The words must be picked at random: a phrase you choose, such as a song lyric, is far weaker. Use passphrases where you have to type or remember, and random passwords everywhere else.
- Is this generator safe to use?
- Yes. The password is made in your browser with the Web Crypto API’s cryptographically secure random number generator (crypto.getRandomValues), using rejection sampling so every character is equally likely. It is never sent to a server, saved in your browser or included in analytics; once the page has loaded it works offline. As with any password tool, use it on a device you trust.
- What is a strong password example?
- Something like vT7#qL2!mZ9$kR4&wX8p: 20 random letters, numbers and symbols, about 128 bits. But never use a password you have seen published anywhere, including that one, because attackers add published examples to their lists. Generate your own and keep it in a password manager.
- What does “bits of entropy” mean?
- It counts how many equally likely passwords your settings can produce: n bits means 2 to the power n possibilities, and each extra bit doubles an attacker’s work. It measures the method, not one password, and assumes the attacker knows your settings, which is the safe assumption.
- Should a password include symbols?
- They help a little: going from letters and numbers (62 characters) to all four types (87) adds about 0.5 bits per character. Length helps more. If a site rejects symbols, turn them off and add 2 characters to make up the difference.
How it works
Each character or word is chosen with crypto.getRandomValues. To avoid modulo bias, a random 32-bit number at or above the largest multiple of the alphabet size is thrown away and drawn again (rejection sampling), so every choice is equally likely. With “At least one of each chosen type” on, a whole password that is missing a type is thrown away and drawn again rather than patched, which keeps every qualifying password equally likely. Entropy is log2 of the number of passwords the settings can produce; for the one-of-each rule that number is counted exactly by inclusion–exclusion. Passphrases use a list of 2,048 common English words of 3 to 8 letters written for this site, so each word adds 11 bits; “Add a number” puts one random digit after one random word; capitals and the separator add nothing because they follow your settings. The strength rating uses the same guesses-based 0–4 scale as this site’s password strength checker, with guesses = 2^bits. Crack times are the time to try every combination at 100 guesses an hour (a login page that limits attempts), 10,000 a second (a stolen database hashed with a slow algorithm such as bcrypt) and 10 billion a second (a fast, unsalted hash on graphics cards). Nothing you generate is sent, stored or logged.
Sources
- NIST SP 800-63B-4 (2025), Digital Identity Guidelines: Authentication and Authenticator Management, password requirements
- MDN Web Docs: Crypto.getRandomValues()
- Electronic Frontier Foundation: Dice-Generated Passphrases (7,776-word lists)
- Wheeler (2016), zxcvbn: Low-Budget Password Strength Estimation, USENIX Security Symposium
More free tools
- Password Strength CheckerCheck how strong your password is: a 0–4 score, crack times, and the patterns that weaken it, with tips to fix them. Checked on your device, never sent.
- Hash GeneratorHash text or a file with SHA-256, SHA-1, SHA-384, SHA-512, MD5 and CRC32, add an HMAC key, and check a checksum. Runs in your browser; nothing is uploaded.
- UUID GeneratorGenerate random v4 and time-ordered v7 UUIDs on your device, up to 1,000 at a time, and inspect any UUID for its version, variant and embedded timestamp.
- JWT DecoderDecode a JWT to its header and payload, read exp, iat and nbf as UTC times, spot expired or alg none tokens, and check HMAC signatures. Runs locally.
- Word CounterCount words, characters, sentences and reading time, and check your text against X, LinkedIn, Instagram, SMS and meta description limits.
- Case ConverterConvert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE. Stays in your browser.