Skip to content

Password Generator & Strength Checker

Generate strong random passwords in your browser and check any password’s strength: entropy in bits, time to crack and NIST SP 800-63B length rules.

Calculator Details

Entropy:104.6 bitsSee results ↓

Your new password

 

Made in your browser with crypto.getRandomValues. Not saved or sent.

A random string of characters, or a passphrase of random words from the EFF long word list

Number of characters. NIST asks for at least 15 when the password is the only login factor.

Characters to use

26 characters

26 characters

10 characters

The 32 symbols on a US keyboard: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~

Your Results

Entropy: 104.6 bits

Entropy

104.6 bits

Meets NIST’s 15-character minimum

Character pool

94 characters

Possible passwords

about 10^31.5

Time to crack: fast hash

3 trillion years

Offline attack on a fast hash (MD5), one RTX 4090, average

Time to crack: bcrypt

2.6 × 10^18 years

Offline attack on bcrypt (cost 5), one RTX 4090, average

A random 16-character password from 94 characters has about 104.6 bits of entropy and meets NIST's 15-character minimum for a password used on its own.

Detailed Breakdown

Password Strength Checker

Checked in your browser only. Nothing you type here is sent, stored or added to the link.

Try a variation of a password you use, not the real one, if you prefer.

Type a password to check it

How This Calculator Works

How the Strength Is Calculated

Entropy H = log2(number of possible passwords)
Random password: possible passwords = N^L (N characters in the pool, length L)
Average time to crack = (possible passwords ÷ 2) ÷ guesses per second
Your settings: N = 26 lowercase + 26 uppercase + 10 digits + 32 symbols = 94, L = 16
Without the one-of-each rule: H = 16 × log2(94) = 104.87 bits
With one of each type (inclusion–exclusion count): H = 104.59 bits
Possible passwords ≈ 10^31.49
Fast hash: 10^31.49 ÷ 2 ÷ 164.1 billion/s ≈ 3 trillion years

Each character is picked with crypto.getRandomValues and rejection sampling, so every character in the pool is equally likely (no “modulo bias”). With “at least one of each chosen type” on, a password that misses a type is thrown away and drawn again, which keeps every valid password equally likely. The count of valid passwords is then Σ (−1)^|S| (N − n_S)^L over every subset S of the chosen types, where n_S is the number of characters in S.

NIST SP 800-63B-4 sets length minimums of 15 characters for a password used on its own and 8 with a second factor, and tells sites to check new passwords against a list of common or breached ones instead of imposing composition rules.

Frequently Asked Questions

Is it safe to generate a password on a website?

This generator runs entirely in your browser. Passwords are made with the Web Crypto API (crypto.getRandomValues), the same cryptographically secure random source browsers use for encryption keys, and they are never sent to a server, written to the address bar, saved or included in analytics. Only the settings (length and character types) appear in the link, so a shared link makes a new, different password for whoever opens it.

How long should a password be?

NIST SP 800-63B-4 (2025) requires at least 15 characters for a password that is the only thing protecting an account, and at least 8 when it is used together with a second factor such as an authenticator app. Longer is better: each extra random character from the full keyboard multiplies the number of possible passwords by 94. Sites should accept at least 64 characters.

What is password entropy?

Entropy, measured in bits, is the base-2 logarithm of the number of passwords a generator could have produced. A 16-character password drawn at random from 94 characters can be any of 94^16 strings, about 2^104.9, so it has about 104.9 bits. Every extra bit doubles the guessing work. Entropy describes the method that made the password, which is why it is exact for a random generator but only an upper bound for a password a person chose.

How strong is a passphrase of random words?

Passphrase mode picks each word at random from the EFF long word list of 7,776 words, so every word adds log2(7,776) = 12.92 bits. Six words, the number EFF suggests, give about 77.5 bits, a little more than a random 11-character password from the full keyboard, and are far easier to type and remember. Capitals and the separator are applied to every word the same way, so they add no strength; add a word instead. The words must come from the generator, not from you: people choose predictable words.

Why does requiring one of each character type lower the entropy slightly?

Passwords that happen to miss a type (no digit, say) are thrown away and redrawn, so there are slightly fewer possible passwords. The calculator counts exactly how many remain using inclusion–exclusion. For 16 characters from all four types the cost is about 0.3 bits, which is negligible; the rule exists only because some sites still insist on it.

How is the time to crack worked out?

An attacker who has stolen a database of password hashes tries guesses offline as fast as their hardware allows. On average they find a random password after trying half of all possibilities, so the time is (possible passwords ÷ 2) ÷ guesses per second. The calculator uses published hashcat benchmarks for one RTX 4090 graphics card: about 164.1 billion guesses a second against MD5, a fast hash, and about 184 thousand against bcrypt at cost 5, a deliberately slow one. Real attackers may use many cards, and well-run sites use slower settings.

Does NIST still require uppercase letters, numbers and symbols?

No. Since 2017 NIST has told sites not to impose composition rules, and SP 800-63B-4 makes that a “shall not”. Rules like “one uppercase and one symbol” push people towards predictable patterns (Password1!) without adding much strength. Length and a check against a list of common or breached passwords matter far more. NIST also says sites should not force regular password changes unless there is evidence of compromise.

How does the strength checker rate my password?

It counts characters as Unicode code points (as NIST does), checks the password against the 1,000 most common passwords from the UK National Cyber Security Centre’s list, applies NIST’s 8- and 15-character minimums, and flags repeated characters, sequences like “abc” or “123” and keyboard runs like “qwerty”. The entropy it shows assumes every character was random, so for a word or a name it overstates the strength. The password is analysed in your browser and never leaves it.

Should I use a password manager?

Yes, for most people. A password manager can generate a long random password for every site and fill it in, so you only need to remember one strong passphrase. Reusing a password is the bigger risk: when one site is breached, attackers try the same email and password everywhere else. Turn on two-factor authentication wherever it is offered, especially for email, banking and the password manager itself.

What are look-alike characters?

Characters that are easy to confuse when reading or typing a password by hand: lowercase l, uppercase I and O, and the digits 0 and 1 (l, I, O, 0, 1). Leaving them out costs a little entropy per character but avoids typing mistakes when you copy a password from paper or read it out.

Passwords are generated and checked in your browser only; the link holds the settings, never a password. Length rules from NIST SP 800-63B-4 (2025); guess rates from public hashcat benchmarks on one RTX 4090; common-password list: the first 1,000 of the NCSC’s PwnedPasswordsTop100k. Entropy for a typed password is an upper bound (it treats every character as random and doesn’t detect words or names), and real attackers can use many GPUs. Passphrase words: EFF’s Long Wordlist (7,776 words) by the Electronic Frontier Foundation, licensed under CC BY 3.0 US; the words are unchanged.

Password Generator: How Random Passwords Work and How Strong Yours Is

By FindMySum · Last reviewed

A password generator does one job: it picks characters at random so that nobody, including you, can predict the result. That sounds trivial, but the details decide whether the password is actually unpredictable. This article explains how a good generator draws its characters, how to turn the settings into a strength figure in bits, how the time-to-crack estimates on the page are worked out, and what the current US federal guidance (NIST SP 800-63B-4, published in 2025) says about length and composition.

Where the randomness comes from

Ordinary random functions in programming languages, such as JavaScript's Math.random(), are designed for games and simulations. They are fast and statistically even, but their output can be predicted by someone who sees enough of it. Passwords need a cryptographically secure source instead. Browsers provide one through the Web Crypto API: crypto.getRandomValues() fills an array with random numbers taken from the operating system's secure generator, the same source used to create encryption keys.

The calculator asks for random 32-bit numbers and turns each into a position in the character pool. A naive way to do that is to take the remainder after dividing by the pool size, but because 2³² is not a multiple of 94, a few characters would come up very slightly more often than others. This is called modulo bias. The generator avoids it with rejection sampling: any random number above the largest multiple of the pool size is thrown away and another is drawn. Every character in the pool is then exactly as likely as every other.

From settings to bits of entropy

If each of L characters is drawn independently from a pool of N characters, there are N^L possible passwords. Entropy is the base-2 logarithm of that number:

H = log₂(N^L) = L × log₂(N)

The pool sizes are 26 lowercase letters, 26 uppercase letters, 10 digits and 32 symbols, the printable punctuation on a US keyboard. With all four types on, N = 94 and each character is worth log₂(94), about 6.55 bits.

The default setting also requires at least one character of each chosen type. A password that misses a type is thrown away and redrawn, so slightly fewer passwords are possible. The calculator counts the survivors exactly using inclusion and exclusion: start with all 94^L strings, subtract those missing each type, add back those missing each pair of types, and so on.

A worked example with the default settings

The calculator opens with a 16-character password using all four character types, one of each required.

  • Without the one-of-each rule there would be 94^16 passwords, which is 16 × 6.55 = 104.87 bits.
  • After removing strings that miss a type, about 2^104.59 remain, so the generator's output has 104.59 bits of entropy. The rule costs about 0.3 bits.
  • That is roughly 10^31.5 possible passwords.

To estimate how long an attacker would need, assume they have stolen a database of password hashes and are guessing offline. On average they hit the right password after trying half of the possibilities. Using the published hashcat benchmark for a single RTX 4090 graphics card against MD5, a fast and outdated hash, of about 164.1 billion guesses per second:

time = (2^104.59 ÷ 2) ÷ 164.1 × 10⁹ ≈ 9.3 × 10¹⁹ seconds, about three trillion years.

Against bcrypt at cost 5, a deliberately slow hash that runs at about 184,000 guesses per second on the same card, the figure rises to around 2.6 × 10¹⁸ years. Either way, a random 16-character password is not going to be guessed; the realistic threats are phishing, malware and reuse of the same password on another site that gets breached.

How length and character types trade off

Because entropy is length times bits per character, length usually wins. Each extra character from the full pool adds 6.55 bits. Dropping symbols takes the pool from 94 to 62 characters and costs about 0.6 bits per character, so an 18-character password of letters and digits (107 bits) is a little stronger than the 16-character default with symbols. Lowercase letters alone give 4.7 bits per character, and 23 of them (108 bits) beat the default setting.

Avoiding look-alike characters (lowercase l, uppercase I and O, and the digits 0 and 1) shrinks the pool to 89 and costs under 0.1 bits per character. It is worth it for any password you will read off paper or type on a TV remote.

Passphrases of random words

Switch the generator to passphrase mode and it picks whole words instead of characters. The words come from EFF's Long Wordlist, published by the Electronic Frontier Foundation in 2016 for dice-based passphrases and used here under the Creative Commons Attribution 3.0 US licence. It has 7,776 words, which is 6 to the power 5, so five dice rolls pick one word. EFF chose words that are easy to spell and recognise and removed ones that are offensive or easily confused; they are 3 to 9 letters long, about 7 on average.

The maths is the same as for characters, with words in place of characters. Each word is drawn uniformly and independently from 7,776, so it adds log2(7,776) = 12.92 bits, and a passphrase of k words has k × 12.92 bits:

  • 4 words: 51.7 bits, too few for anything valuable (about three hours against a fast hash on one graphics card).
  • 6 words, EFF's suggestion and the default: 77.5 bits, about 7,776^6 ÷ 2 ÷ 164.1 billion = 6.7 × 10¹¹ seconds, or roughly 21,000 years, against the same fast hash.
  • 8 words: 103.4 bits, about the same as the 16-character random default.

The separator (hyphen, space, full stop, underscore or nothing) and the capitalisation (all lower case, a capital at the start of each word, or all capitals) are settings rather than random choices, so they apply to every word the same way and add no entropy: an attacker who suspects you used this list will try those variants too. They exist to satisfy sites that insist on a capital or reject spaces. If you want more strength, add a word. The words are loaded only when you choose passphrase mode, picked in your browser with the same crypto.getRandomValues source as the passwords, and never placed in the page's address; the link records only the number of words, the separator and the capitalisation.

Because the shortest EFF words have 3 letters, the shortest possible six-word passphrase with hyphens is 23 characters, well over NIST's 15-character minimum. With no separator, four words can be as short as 12 characters, so the page rates the shortest passphrase your settings could produce.

What NIST SP 800-63B-4 says

The National Institute of Standards and Technology's digital identity guidelines are written for US federal systems, but they have become the reference for password policy everywhere. The 2025 revision says:

  • A password that is the only authentication factor must be at least 15 characters. One used only alongside another factor, such as an authenticator app or security key, must be at least 8.
  • Sites should allow passwords of at least 64 characters, and accept spaces, all printing ASCII characters and Unicode.
  • Sites must not impose composition rules, such as requiring a mix of character types, and must not force periodic changes.
  • New passwords must be checked against a blocklist of common, expected or compromised values.
  • Failed login attempts on one account must be limited to 100 in a row.

The strength checker on the page follows those rules: it counts Unicode code points as characters, checks the password against the 1,000 most common entries in the UK National Cyber Security Centre's list of breached passwords, and reports which NIST minimum it meets.

Using the generator well

Generate a different password for every account and store them in a password manager rather than trying to remember them. Keep the default length or go longer for important accounts. Copy the password straight into the site's password field and into your manager, then close the page. For the handful of passwords you must type from memory, such as your computer login or the manager itself, a long passphrase of random words is easier to live with than a random string of the same strength.

More questions

Is a passphrase of four random words better than a random string?

It can be just as strong and much easier to type and remember, as long as the words are picked at random from a large list rather than chosen by you. A word list of 7,776 words (the size of the EFF diceware list) gives about 12.9 bits per word, so six random words carry about 77.5 bits, roughly the same as a 12-character random password from the full keyboard. Four words is only about 52 bits, which is too few for a password protecting something valuable.

Can a website see the password this generator makes?

No. The password is created by JavaScript running in your own browser and stays in the page's memory. The page's address only records the settings, such as the length and which character types are on, so sharing the link lets someone else generate their own password with the same settings, not see yours. Reloading or closing the tab discards the password.

Why do some sites reject the symbols in my generated password?

Some older systems only accept letters and digits, or block characters such as quotes, angle brackets or spaces because of how they were built. NIST SP 800-63B-4 says sites should accept all printing ASCII characters and spaces, but not every site follows it. If a site refuses a password, turn symbols off and add four or five characters of length to keep about the same strength.

How often should I change my passwords?

Only when there is a reason to: the site reports a breach, you see a login you don't recognise, or you shared the password with someone. NIST stopped recommending scheduled changes because people respond to them with predictable tweaks (Summer2025! becomes Autumn2025!), which makes passwords weaker, not stronger. A long, unique password per site plus two-factor authentication is a better use of the effort.

What does 'bits of entropy' mean for a password I made up myself?

Strictly, very little. Entropy measures the process that produced a secret, so it is exact for a random generator and only an upper bound for a human choice. A made-up password such as a pet's name with a year on the end has far less real entropy than its length and character mix suggest, because cracking tools try names, words, dates and common substitutions long before they try random strings.

Is 128 bits of entropy ever needed for a password?

Rarely. Around 80 bits already puts an offline attack against a fast hash beyond the reach of any realistic attacker for decades, and most websites store passwords with slow hashes and lock accounts after repeated failures. 128 bits matches the strength of the encryption keys used to protect data, so it is a sensible target for a password manager's master passphrase or an encryption key you type, not for every website login.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy