Password Generator
Last Updated:
Generate strong random passwords or passphrases in your browser. Choose the length and characters, see the entropy, and copy in one click. Nothing is sent or saved.
Quick answer: This password generator makes a random password or passphrase in your browser using crypto.getRandomValues, with 16 characters as the default (about 103.1 bits, our arithmetic). NIST asks services to require at least 15 characters when a password is the only factor, CISA recommends at least 16, and nothing you generate is sent or saved.
Password and passphrase generator
Generated password
📐 Formula
Entropy (bits) = length × log2(pool size). A passphrase is words × log2(7,776). Average time to find = 2(bits − 1) ÷ guesses per second.
How to use the password generator
Choose password or passphrase
Pick Random characters for a password you will paste from a manager, or Passphrase for words you may need to type, such as a manager's master password or a device sign-in.
Set the length
Slide or type a length from 8 to 128 characters. 16 is the default; NIST's minimum for a password used alone is 15 and CISA's is 16. For a passphrase, choose 6 words unless the site limits length.
Pick the character types
Tick uppercase, lowercase, numbers and symbols. Leave all four on unless the site rejects one, and keep the one-of-each box ticked when the site insists on every type.
Leave out characters if you must
Tick the look-alike box to remove i, I, l, L, 1, o, O and 0, tick the ambiguous symbols box, or type characters the site refuses. The entropy figure updates.
Read the strength and generate again if you like
Check the entropy in bits, the combinations and the assumed time to find it. Press Generate new for another; the old one is gone for good.
Copy it into a password manager
Press Copy, paste it into the new account's form and save it in your password manager at once. The page does not keep it, so a reload or a new generate removes it.
How this random password generator works
Every random choice this strong password generator makes comes from crypto.getRandomValues, the random number source built into your browser, and never from Math.random, which is not meant for secrets. The page asks it for a 32-bit number and throws the number away if it falls in the uneven tail that would make some characters slightly more likely than others (the method is called rejection sampling). That matters: the shortcut of taking a random number modulo the pool size gives the first few characters of a pool a small edge, and a generator that cares about strength avoids it.
The default is 16 characters picked from 88: 26 uppercase letters, 26 lowercase letters, 10 digits and 26 symbols (!@#$%^&*()_+-=[]{}|;:,.<>?). With the one-of-each box ticked, the tool draws a whole new password until every selected type appears, so each acceptable password is equally likely.
Nothing you generate is sent or kept. The code that builds the password makes no network request, sets no cookie and uses no storage, and the page never passes a password to analytics. The one request the page makes for the tool is for a public word list file, and only when you switch to passphrase mode. The risk that remains is on your own device: a browser extension that reads page content, a clipboard history tool or someone looking at the screen can see what you copy, so paste it into a password manager and move on.
How long should a password be?
At least 15 characters when the password stands alone, and 16 or more if you can; a six-word passphrase is the alternative. Here is where those numbers come from.
Three government bodies publish guidance, and they agree on the direction more than the number. NIST's Special Publication 800-63B, Revision 4 (section 3.1.1.2), is written for services that check passwords, and it says they shall require at least 15 characters when a password is the only factor and may allow a minimum of 8 when it is only one part of multi-factor sign-in. It says services should let people use at least 64 characters, should accept the space character, shall not impose composition rules such as mixing character types, and shall not force changes on a schedule. CISA's Secure Our World page asks for at least 16 characters, random, and unique to each account. The UK's NCSC suggests combining three random words. EFF, which publishes the word list this tool uses, suggests at least six words from it.
| Source | Length | Form | Other points |
|---|---|---|---|
| NIST SP 800-63B-4, section 3.1.1.2 (US) | At least 15 characters when the password is the only factor; at least 8 when it is one part of multi-factor sign-in; services should allow 64 or more | No set form; passwords can be chosen by the user or assigned randomly by the service | No composition rules, no forced periodic change, a blocklist check, password managers and paste allowed |
| CISA, Secure Our World (US) | At least 16 characters | A random string of mixed-case letters, numbers and symbols, or a passphrase of 4 to 7 unrelated words | Unique for every account; use a password manager |
| NCSC, three random words (UK) | No number given | Three random words combined, for example applenemobiro | Avoid common passwords and personal details; swapping o for 0 does not make a password much stronger |
| EFF dice wordlists | A minimum of six words from the long list | Words picked by dice from a 7,776-word list | Short lists give less strength per word |
Read side by side, they set a floor of 15 or 16 characters for a random password and a passphrase of several words as the alternative. That is why this tool defaults to 16 characters and 6 words, and why it prints a note when you slide below 15. CISA's consumer page, Use Strong Passwords, now carries an archived-content notice. Its current page for organisations, Require Strong Passwords, gives the same at least 16 characters and asks for a passphrase of 5 to 7 unrelated words where the consumer page says 4 to 7. These bodies do not agree on one exact length for a passphrase, and the tool does not claim they do: it shows the entropy so you can see what each choice buys.
Password length: 8, 12, 14, 15, 16 or 20 characters
People search for a generator at a particular length because a site tells them a number. Here is what each common length gives you when every character is random, using the all-types pool of 88 with one of each type required, which is what the entropy figure in the tool shows.
- 8 characters: NIST allows this only when another factor is also used. About 50.6 bits, which at the assumed 100 billion guesses a second is a few hours of work (see the time table below), so use it only where a second factor protects the account.
- 12 characters: A common site minimum. About 77.1 bits, but short of the 15 and 16 that NIST and CISA ask for when a password stands alone.
- 14 characters: About 90.1 bits. One more character reaches the 15 that NIST now sets, so there is little reason to stop here.
- 15 characters: NIST's minimum for a password used alone. About 96.6 bits with all four types.
- 16 characters: CISA's minimum and the default of this 16 character password generator. About 103.1 bits, above both the 15 and the 16 character thresholds.
- 20 characters: About 129.0 bits. A good choice for accounts with a lot behind them, such as your main email. For a password you must type from memory, use a passphrase instead.
Length also helps when a site caps the number of characters or forbids symbols. If a site allows only letters and digits, go to 18 or 20 characters rather than hunting for a different generator: at 20 characters, letters and digits alone give 119.1 bits, more than 16 characters of all four types.
How password entropy is calculated
Entropy in bits = length × log2(pool size). (Any logarithm button on the scientific calculator can check the arithmetic by dividing log(pool) by log(2).) The pool is how many different characters the generator can choose at each position. Each bit doubles the number of guesses an attacker needs, so 10 more bits means about 1,000 times more work. A worked example with this tool's default: log2(88) = 6.46, so 16 characters give 16 × 6.46 = 103.4 bits, or about 2103 possible passwords.
The table shows how length and pool combine. Read across for the cost of dropping a character type, and down for the value of one more character: every added character is worth between 3.3 and 6.5 bits, depending on the pool, while swapping from letters-and-digits to all four types adds only about 0.5 bits per character. Length does most of the work.
| Length | Digits (10) | Lowercase (26) | Letters and digits (62) | No look-alikes (80) | All four types (88) |
|---|---|---|---|---|---|
| 8 | 26.6 | 37.6 | 47.6 | 50.6 | 51.7 |
| 12 | 39.9 | 56.4 | 71.5 | 75.9 | 77.5 |
| 15 | 49.8 | 70.5 | 89.3 | 94.8 | 96.9 |
| 16 | 53.2 | 75.2 | 95.3 | 101.2 | 103.4 |
| 20 | 66.4 | 94.0 | 119.1 | 126.4 | 129.2 |
| 24 | 79.7 | 112.8 | 142.9 | 151.7 | 155.0 |
One honest wrinkle: if the tool insists on at least one of each type, it removes a small slice of the possible passwords, so the true figure is slightly below length × log2(pool). The tool calculates that cost exactly and subtracts it. For all four types it is 1.05 bits at 8 characters, 0.46 at 12 and 0.24 at 16, which is why the 16-character result reads 103.1 bits rather than 103.4.
The formula describes a password picked at random. It cannot rate one you chose yourself: NIST says that estimating entropy for user-chosen passwords is challenging, which is why its own rules lean on length and blocklists instead of an entropy score. A figure of 128 bits is often quoted as a target for encryption keys. It is common practice rather than a requirement in NIST SP 800-63B, and a random password needs far less to be out of reach, as the next section shows.
How long would it take to crack a password?
A random 16-character password with all four types would take about 1.7 trillion years on average at an assumed 100 billion guesses a second, and a random 8-character one with letters and digits about 18 minutes. The assumption matters, so the detail follows.
There is no single answer, because the time depends on two things the password does not control: how fast the attacker can guess, and how the service stored the password. NIST tells services to store passwords salted and hashed with a scheme that makes each guess expensive, so a service that does this slows an attacker far below the speed of a fast hash. The tool therefore asks you to pick an assumed speed. The three on offer, 1 billion, 100 billion and 10 trillion guesses a second, are assumptions for comparison, not measurements of any real system. The time shown is the average, which is the time to try half of all possibilities.
| Password | Entropy (bits) | Average time to find it |
|---|---|---|
| 8 characters, lowercase | 37.6 | 1 second |
| 8 characters, letters and digits | 47.6 | 18 minutes |
| 8 characters, all four types, one of each | 50.6 | 2.4 hours |
| 12 characters, all four types, one of each | 77.1 | 25 thousand years |
| 15 characters, all four types, one of each | 96.6 | 19 billion years |
| 16 characters, all four types, one of each | 103.1 | 1.7 trillion years |
| 20 characters, all four types, one of each | 129.0 | 1.1 × 10²⁰ years |
| 4 random words | 51.7 | 5.1 hours |
| 6 random words | 77.5 | 35 thousand years |
Speed matters less than length. The same 12-character password with all four types changes by a factor of 10,000 between the slowest and the fastest assumed speed below, while one extra character multiplies the time by about 88.
| Guesses a second | Average time to find it |
|---|---|
| 1 billion | 2.5 million years |
| 100 billion | 25 thousand years |
| 10 trillion | 248 years |
An eight-character password made of letters and digits (about 47.6 bits) falls in about 18 minutes at 100 billion guesses a second, while a 16-character one with letters and digits only needs about 7.1 billion years. That gap is the whole argument for length. As a matter of common practice, attackers try common passwords, names and patterns before anything else, so a password you chose yourself can fall much faster than its character count suggests, while a random one cannot be shortcut that way.
Passphrase generator: random words instead of characters
Switch the type to Passphrase and the tool picks words at random from the EFF long word list: 7,776 words, the list designed for rolling five dice. Each word adds log2(7,776) = 12.92 bits. CISA describes a passphrase as 4 to 7 unrelated words (5 to 7 on its page for organisations), NCSC's example is three random words joined together, and EFF suggests at least six from this list. The word count, not the separator or the capital letters, sets the strength, because the capital letters and separators the tool adds follow a fixed rule an attacker can assume.
| Words | Entropy (bits) | Average time to find it at 100 billion guesses a second |
|---|---|---|
| 3 | 38.8 | 2.4 seconds |
| 4 | 51.7 | 5.1 hours |
| 5 | 64.6 | 4.5 years |
| 6 | 77.5 | 35 thousand years |
| 7 | 90.5 | 272 million years |
| 8 | 103.4 | 2.1 trillion years |
That table is why the generator defaults to six words: three words give about 38.8 bits, which is small by the arithmetic above, so we treat three words as a starting point, not a finish line. You can add a single random digit to one word if a site demands a number; it adds a little (about log2(words × 10) bits). A passphrase is longer than a random password for the same strength, but you can type and remember it, so it suits the passwords you cannot paste: a password manager's master password, a laptop sign-in, a Wi-Fi key. Words you or anyone else pick by hand are not random, so do not swap in your own favorites: let the tool draw them.
Leaving characters out: no symbols, no look-alikes, custom exclusions
Sites reject passwords for odd reasons: no symbols, no spaces, only certain punctuation, a maximum length (the word counter shows the character count of any text if you need to check a limit). The tool handles this by shrinking the pool, never by editing the password afterwards, so the entropy figure always matches what was generated. Tick Look-alike characters to remove i, I, l, L, 1, o, O and 0 (useful if the password is going to be read aloud or typed from a printout), tick Ambiguous symbols to remove ( ) [ ] { } ; : , . < > (they trip up some forms and command lines), or type any characters you want excluded. The exclusion box is case sensitive, so type the characters together with no spaces.
| Pool | Characters in pool | Entropy at 16 characters (bits) |
|---|---|---|
| All four types, nothing left out | 88 | 103.4 |
| Leave out look-alikes (i, I, l, L, 1, o, O, 0) | 80 | 101.2 |
| Leave out ambiguous symbols | 76 | 100.0 |
| Leave out both | 68 | 97.4 |
| No symbols (letters and digits) | 62 | 95.3 |
| Lowercase letters and digits | 36 | 82.7 |
| Digits only | 10 | 53.2 |
At 16 characters every row except digits only stays above 80 bits, which is the point: when a site restricts the pool, add characters instead of giving up on randomness. Dropping the look-alikes costs about 2.2 bits at 16 characters, and dropping symbols costs about 8.1. Neither is a reason to shorten the password. Digits alone are the weakest row: 16 digits give only 53.2 bits, so use them only where a service forces numbers. This tool starts at 8 characters; a 4 or 6 digit PIN is a different, much weaker thing and is not generated here.
Common password mistakes
Reusing a password. When one site leaks, attackers try the same email and password on banks, email and social media (credential stuffing). Cybernews reported a compilation file called RockYou2024 holding 9,948,575,739 unique plaintext passwords, posted to a hacking forum on July 4, 2024. It is a collection of passwords from many sources rather than the breach of one site, and a reminder of how many leaked passwords exist for attackers to try.
Predictable changes. Adding a number or symbol to a base word (Password1!, Password2!), keyboard runs such as qwerty and personal details like a birthday, pet or street are easy for an attacker to try. The NCSC advises avoiding common passwords, significant dates and family and pet names, and says swapping a letter for a look-alike, such as o for zero, does not make a password much stronger because attackers know these tricks, and it makes the password harder to remember.
Rules that feel safe but are not. Forced complexity and scheduled changes made people choose predictable passwords, which is why NIST SP 800-63B-4 says services shall not impose composition rules or require periodic changes (a change is still forced when there is evidence a password was compromised). The NCSC's guidance for organizations makes the same point about complexity requirements. If a site still demands them, use this generator and meet them; there is no need to feel that a longer random password is somehow less safe.
Keeping them in your head or a notes file. A password manager generates, stores and fills passwords, and warns about weak and reused ones. NIST says managers have been shown to increase the likelihood that people choose stronger passwords, CISA recommends one, and NIST expects services to allow managers and pasting. The master password is the one you remember: make it a six-word passphrase from this tool and protect the manager with a second factor.
Which guidance applies where you live?
The generator output does not change by country, because strength is arithmetic. The guidance differs by who wrote it. In the United States, NIST SP 800-63B-4 is written for services that check passwords, and CISA gives consumer advice. In the United Kingdom, the NCSC publishes the three-random-words advice. In Canada, the Canadian Centre for Cyber Security recommends a minimum of 12 characters for a password and a passphrase of at least 4 words and 15 characters, and says 6 to 8 characters can be enough with multi-factor authentication. In Australia, the Australian Cyber Security Centre says to use a password at least 15 characters long and unpredictable, such as unrelated words from the page of a book. The arithmetic and the sources above apply to an account in any of the four countries, and a service in any of them may publish its own minimum, which you should follow if it is higher. Also useful: Bold Text Generator.
Frequently Asked Questions
Sources & Methodology
The entropy, combination and time figures are our arithmetic: length × log2(pool size), with the cost of the one-of-each rule calculated exactly, and the time to find a password taken as half of all possibilities divided by an assumed guesses-per-second figure. The speeds are assumptions, not measurements. The rating bands (under 56 bits weak, 56 to 79 good, 80 to 111 strong, 112 and over very strong) are our guide, not a standard. NIST's requirements (15 and 8 characters, 64 or more allowed, no composition rules, no scheduled changes, blocklist check, password managers and paste, salted hashing) were read in NIST SP 800-63B-4, section 3.1.1.2, on 2026-11-25. CISA's 16 characters and 4 to 7 unrelated words were read on its Use Strong Passwords page on 2026-11-25 (the page is marked archived content); its current Require Strong Passwords page, read the same day, gives at least 16 characters and 5 to 7 unrelated words. The three random words advice and the point about character swaps were read on the NCSC page on 2026-11-25, and the point about complexity requirements in its password guidance for organizations the same day. The word list and the six-word suggestion are EFF's, read on its dice page on 2026-11-25; EFF's site carries a CC BY notice, and we credit EFF as the source of the list. The RockYou2024 figure and date are from the Cybernews report, read on 2026-11-25. Rating, speeds and defaults are ours.
- NIST SP 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management
- CISA, Secure Our World: Use Strong Passwords
- CISA, Require Strong Passwords
- NCSC, Three random words
- Australian Cyber Security Centre, Use unique and strong passwords (Personal cyber security handbook)
- Canadian Centre for Cyber Security, Best practices for passphrases and passwords (ITSAP.30.032)
- EFF, Dice-generated passphrases (the long word list)
- Cybernews, RockYou2024 report
- NCSC, Password administration for system owners