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

8 to 128. NIST's minimum for a password used alone is 15; CISA's is 16
Character types
Leave out
Optional. Case sensitive. Type them together, with no spaces
An assumption for comparison, not a measurement of any real attacker or site

Generated password

    Entropy—
    Rating (our guide)—
    Average time to find—
    Possible passwords—
    Pool—
    Length—

    📐 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

    1

    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.

    2

    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.

    3

    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.

    4

    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.

    5

    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.

    6

    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.

    What each source says about password length and form
    SourceLengthFormOther 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 moreNo set form; passwords can be chosen by the user or assigned randomly by the serviceNo composition rules, no forced periodic change, a blocklist check, password managers and paste allowed
    CISA, Secure Our World (US)At least 16 charactersA random string of mixed-case letters, numbers and symbols, or a passphrase of 4 to 7 unrelated wordsUnique for every account; use a password manager
    NCSC, three random words (UK)No number givenThree random words combined, for example applenemobiroAvoid common passwords and personal details; swapping o for 0 does not make a password much stronger
    EFF dice wordlistsA minimum of six words from the long listWords picked by dice from a 7,776-word listShort 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.

    Bits of entropy for each length and character pool (length x log2 of pool size)
    LengthDigits (10)Lowercase (26)Letters and digits (62)No look-alikes (80)All four types (88)
    826.637.647.650.651.7
    1239.956.471.575.977.5
    1549.870.589.394.896.9
    1653.275.295.3101.2103.4
    2066.494.0119.1126.4129.2
    2479.7112.8142.9151.7155.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.

    Average time to find a password at an assumed 100 billion guesses a second (our arithmetic)
    PasswordEntropy (bits)Average time to find it
    8 characters, lowercase37.61 second
    8 characters, letters and digits47.618 minutes
    8 characters, all four types, one of each50.62.4 hours
    12 characters, all four types, one of each77.125 thousand years
    15 characters, all four types, one of each96.619 billion years
    16 characters, all four types, one of each103.11.7 trillion years
    20 characters, all four types, one of each129.01.1 × 10²⁰ years
    4 random words51.75.1 hours
    6 random words77.535 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.

    The same 12-character, all-types password at three assumed guess speeds (our arithmetic)
    Guesses a secondAverage time to find it
    1 billion2.5 million years
    100 billion25 thousand years
    10 trillion248 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.

    Entropy of a passphrase drawn from the 7,776-word EFF list (words x log2 of 7,776)
    WordsEntropy (bits)Average time to find it at 100 billion guesses a second
    338.82.4 seconds
    451.75.1 hours
    564.64.5 years
    677.535 thousand years
    790.5272 million years
    8103.42.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.

    Cost of leaving characters out of a 16-character password (length x log2 of pool size)
    PoolCharacters in poolEntropy at 16 characters (bits)
    All four types, nothing left out88103.4
    Leave out look-alikes (i, I, l, L, 1, o, O, 0)80101.2
    Leave out ambiguous symbols76100.0
    Leave out both6897.4
    No symbols (letters and digits)6295.3
    Lowercase letters and digits3682.7
    Digits only1053.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.

    ⚠️ Disclaimer The page builds each password in your browser and does not send, store or log it. Save the password to a password manager straight away, because a reload or a new Generate removes it. Entropy and time figures are estimates from stated assumptions, not a guarantee of how any real service will hold up.

    Frequently Asked Questions

    At least 15 characters if the password is the only thing protecting the account, and 16 or more if you can: 15 is NIST's minimum for a service to require (SP 800-63B Revision 4, 2025), and 16 is CISA's. This generator starts at 16 characters, which is about 103.1 bits with all four character types.
    Yes. Reuse turns one leak into many, because the email and password from one breached site get tried on other sites (credential stuffing). CISA's advice is a different strong password for every account. In practice that means generating a fresh one here for each new sign-up and letting a manager fill it in.
    Three things: it is long, it came from a random process rather than from you, and it is used on one account only. With this tool that means 16 or more random characters with the one-of-each box on, or six random words, saved in a manager.
    The change in recent guidance is a move from rules to length. NIST SP 800-63B-4 tells services not to impose composition rules and not to require periodic changes, and to check new passwords against a blocklist of known-bad ones. For you, that means a long random password or passphrase, unique per account, plus multi-factor sign-in where it is offered.
    For most people, yes, because nobody can remember a random 16-character password for every account. A manager moves the problem to one password, so make that one a six-word passphrase from this tool and protect the manager with a second factor. NIST notes that managers have been shown to make it more likely that people choose stronger passwords, and CISA recommends one.
    You can check it yourself: open your browser's network tab, generate a few passwords, and you will see no request carrying one. The only request is for the word list, and only after you pick Passphrase. What the page cannot control is your own device, such as extensions that read page content or a clipboard history, so copy straight into your manager.
    Use a random password for anything a manager fills in, and a passphrase for what you type by hand: the manager's master password, a laptop sign-in, a Wi-Fi key. For similar strength a passphrase is longer (six words run about 47 characters), but you can type and remember it.
    Six is the figure EFF suggests as a minimum for its long list, and CISA's range is 4 to 7 unrelated words (5 to 7 on its page for organisations). Three words from this list is only about 38.8 bits by our arithmetic, so if you use three words (NCSC's example), treat it as a starting point and add words for anything valuable. The generator defaults to six.
    Yes, in three ways: the look-alike box for passwords you will read or type by eye, the ambiguous-symbols box for forms and command lines that mishandle brackets and punctuation, and the free-text box for the exact characters a site refuses. The entropy line updates with each change.
    Not for strength, if you add length. At 16 characters with one of each type required, letters and digits alone give about 95.2 bits and all four types give about 103.1, a gap of 7.9 bits that one or two extra characters would close. Use symbols when a site demands them; otherwise length does the same work.
    Because some sites reject a password that is missing a type, and a random draw misses one more often than you would guess: at 16 characters with all four types, about 1 draw in 6 has no digit, no symbol or no letter of some case. Untick the box to allow any draw, which adds back only 0.24 bits.
    Up to 25 in one go. Each is drawn independently with its own random numbers, and the figures shown apply to each one. Bulk output suits setting up several test accounts or handing out one-time passwords; copy sends the whole list, one per line.
    A result of 103 bits means the password was one of about 2 to the power of 103 equally likely strings, and each extra bit doubles the guesses an attacker needs. It describes a password picked at random from the pool; it says nothing about one you chose yourself, because people are not random. NIST sets no entropy target for passwords, and the rating words in the tool are our own guide.
    That depends on the attacker's speed and how the service stores passwords. For a random 12-character password with all four types, our arithmetic gives about 2.5 million years at 1 billion guesses a second and about 248 years at 10 trillion, both assumptions. A slow password hash on the service's side makes the real figure longer, and a leaked plain-text list makes it irrelevant.
    No. NIST SP 800-63B-4 says services shall not impose composition rules such as requiring a mix of character types. If a site still demands them, keep all four boxes ticked and the one-of-each box on, and the password will pass.
    With all four types random, 12 characters give about 77.1 bits. That is fine where the account also has a second factor, which is the case NIST allows a shorter password for (8 characters minimum), but it is under the 15 and 16 characters NIST and CISA ask for when the password stands alone. Add four characters and the question goes away.
    Not if you want it strong. The NCSC advises avoiding common passwords, significant dates and family and pet names, and a word you pick yourself is not random. If you want something memorable, let the tool draw a passphrase and put the words together by chance.

    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.