Random Password Generator

Quick answer

A random password generator builds a password from characters picked by a cryptographically secure random number generator. Strength is measured in bits of entropy: length x log2(pool size). A 20-character password from 80 characters has about 126 bits. NIST SP 800-63B favors length over composition rules.

Updated 2026-09-30Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Password generator
Lowercase a-z
Uppercase A-Z
Digits 0-9
Symbols such as ! # $ % * @
Brackets ( ) [ ] { } < >
Remove look-alikes 0 O o 1 l I
At least one from each set
Allow repeated characters
Characters give the most strength per character; a passphrase is easier to type and remember.
4 to 128. Used in character mode. 15 or more is a good floor.
3 to 20. Used in passphrase mode; each word adds about 10.3 bits.
Passphrase mode only.

Your password

--
Entropy--
Pool--
Possible passwords--
Average time to guess offline (10 billion guesses per second)--
Length--
Randomness source--

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How to Use the Random Password Generator

  1. Choose the type. Random characters give the most strength for the length; a passphrase of random words is easier to type on a phone or TV.
  2. Set the length and character sets. Length matters most. Turn on the sets the site accepts, and remove look-alike characters if you will read the password aloud or type it by hand.
  3. Copy it into your password manager. Press Generate new for another one. The page never stores the password, so save it before you leave.
ResultWhat it tells you
Your passwordA fresh random password, made in your browser each time you change a setting or press Generate new.
EntropyThe strength in bits. Each extra bit doubles the number of guesses an attacker needs.
PoolHow many characters (or words) each position is drawn from.
Possible passwords2 raised to the entropy: the number of different passwords these settings can produce.
Average time to guess offlineHalf the possibilities divided by 10 billion guesses per second, a stated assumption for a stolen, fast-hashed password list.
Verdict bandWeak, fair, strong or very strong, from our entropy bands (explained under Accuracy).

What Is a Random Password?

A random password is a string whose every character (or word) is chosen by a random process, with no pattern a person picked. That makes its strength measurable: it depends only on the length and on how many symbols each position can take.

Human-chosen passwords are different. NIST SP 800-63B notes that people pick predictable passwords, and that composition rules push them to variants such as "Password1!". Attackers try those first, so a password that merely looks complex can fall fast.

A passphrase is a random password made of words. The EFF short wordlist used here has 1,296 words, so each word adds log2(1,296) = 10.34 bits. EFF notes that eight words from this list give about 82 bits.

A random password is not a password manager or a second factor. It solves one problem, guessability; NIST requires services to allow password managers and asks them to permit pasting, which is how a long random password stays usable.

How Does the Password Generator Work?

The generator draws each character with the browser's cryptographic random number generator, uses rejection sampling to keep every character equally likely, and computes entropy from the pool size and length.

Formula: entropy (bits) = length x log2(pool size); passphrase: words x log2(1,296); possible passwords = 2^entropy
  1. Build the pool from the sets you turned on: 26 lowercase + 26 uppercase + 10 digits + 18 symbols = 80 characters by default.
  2. Draw a random number with crypto.getRandomValues, which MDN describes as cryptographically strong and suitable for cryptographic purposes.
  3. Reject biased draws. A 32-bit value has 4,294,967,296 outcomes, which is not a multiple of 80. Values at or above the largest multiple of 80 are thrown away and redrawn, so each character has exactly a 1 in 80 chance. Taking the value modulo 80 without this step would favor the first 16 characters slightly.
  4. Apply your rules. With "at least one from each set" on, a password missing a set is discarded and regenerated, which keeps all valid passwords equally likely.
  5. Compute entropy. 20 x log2(80) = 20 x 6.32 = 126.4 bits. The one-of-each rule removes the passwords that miss a set, about 0.11 bits here, counted exactly by inclusion-exclusion.

Nothing is sent to a server. The random numbers, the password and the entropy all stay on your device, and this page does not store the password.

Password Strength Examples

These figures come from the same formula the tool uses, with the offline attack assumed at 10 billion guesses per second.

SettingsEntropyAverage time to guess offline
8 lowercase letters37.6 bitsAbout 10 seconds
8 characters from 8050.6 bitsAbout 23 hours
12 lowercase letters56.4 bitsAbout 55 days
6-word passphrase (short list)62.0 bitsAbout 7.5 years
12 characters from 8075.9 bitsAbout 109,000 years
8-word passphrase (short list)82.7 bitsAbout 12.6 million years
16 characters from 80101.2 bitsAbout 4.5 x 10^12 years
20 characters from 80126.4 bitsAbout 1.8 x 10^20 years

Reading the Table

Going from 8 to 16 characters from the same pool does not double the strength; it doubles the bits, from 50.6 to 101.2, which multiplies the guesses by about 1.7 x 10^15 (80 to the 8th power). Length is the lever, which matches the NIST emphasis on length.

The time column is an illustration, not a promise. A slow password hash, such as the "computationally expensive algorithm" NIST prefers, cuts the guess rate by orders of magnitude, while specialized hardware can raise it.

Factors That Change Password Strength

Length, pool size and the rules you add decide the entropy; how the password is stored decides how fast it can be attacked.

Length

Every extra character adds log2(pool) bits: 6.32 bits per character with the 80-character pool. NIST SP 800-63B calls length a primary factor in password strength.

Character Sets

Adding symbols to letters and digits grows the pool from 62 to 80, or 5.95 to 6.32 bits per character. That is less than one extra character is worth, so a longer letters-only password can beat a shorter mixed one.

Removing Look-Alikes

Dropping 0, O, o, 1, l and I shrinks the default pool to 74, costing about 0.11 bits per character. Add a character to make up for it.

One-of-Each and No-Repeat Rules

Both remove some possible passwords, so both lower entropy slightly. The tool counts the loss exactly rather than ignoring it.

Online Versus Offline Attacks

NIST explains that login rate limiting stops fast online guessing, but a stolen list of hashes can be attacked at billions of guesses per second. Offline resistance is what long random passwords buy.

Random Password vs Passphrase: Comparison

Both are secure when chosen randomly; the choice is about typing and remembering.

MeasureRandom charactersRandom-word passphrase
Bits per unit6.32 per character (pool of 80)10.34 per word (1,296 words)
About 80 bits needs13 characters8 words, roughly 31 to 47 characters with separators
Typing on a phone or TVSlow; symbols need extra keysEasy; lowercase words
RememberingHard; keep it in a password managerPossible for a few key passwords
Best forAccounts stored in a password managerThe password manager's own master password, device logins, Wi-Fi

Which Should I Choose?

Use random characters for everything your password manager fills in. Use a passphrase for the few secrets you must type or remember, and make it long: EFF recommends six words from its long list for most uses, and notes that eight short-list words give slightly more strength.

When to Use a Random Password Generator

Creating or Changing an Account

Generate a new password for every account. CISA advises a different password for each account, at least 16 characters long, so a breach at one site does not unlock others.

After a Breach Notice

NIST says services must force a change when there is evidence a password was compromised. Replace it with a fresh random one, not a small edit of the old one.

Shared or Device Secrets

Wi-Fi keys, router admin passwords and encrypted backups benefit from long random values, since they can often be attacked offline.

Teaching Probability

The entropy formula is a counting problem: 80 choices for each of 20 positions. The combination and permutation calculator shows the same counting rules, and the exponent calculator handles powers like 80^20.

Common Password Mistakes

1. Reusing a Password

A strong password used on two sites is only as safe as the weaker site. Generate one per account.

2. Choosing Complexity Over Length

"P@ssw0rd1" looks complex but follows patterns attackers try first. NIST SP 800-63B says services must not impose composition rules, because users respond predictably.

3. Editing a Generated Password by Hand

Swapping characters for a favorite word or date adds a human pattern and does not add real entropy. Generate a longer one instead.

4. Picking Passphrase Words Yourself

Words you choose are far from random. The entropy figure is only true when a random process picks every word.

5. Relying on the Password Alone

Phishing and keyloggers capture any password, long or short. NIST notes these attacks work equally well on lengthy and complex passwords, so turn on multi-factor authentication.

6. Storing It Unsafely

A password in a plain text file or a sticky note undoes the work. Keep it in a reputable password manager.

Accuracy and Limitations

The entropy shown is exact for how this tool generates passwords: every allowed password is equally likely, so entropy is simply log2 of how many there are.

What it calculates accurately

  • Uniform random characters and words, with no modulo bias.
  • Entropy for any mix of sets, including the one-of-each and no-repeat rules.
  • The number of possible passwords for your settings.
  • Passphrase entropy for the 1,296-word EFF short list.

What it does not account for

  • The strength of passwords you made up yourself; entropy formulas overrate human choices.
  • How a website stores passwords, which sets the real attack speed.
  • Phishing, malware, shoulder surfing and breaches.
  • Site rules such as maximum length or banned characters; check the site's requirements.

About the Verdict Bands

The bands are this site's rule of thumb, not a NIST standard: under 40 bits weak, 40 to 59 fair, 60 to 79 strong, 80 or more very strong. NIST SP 800-63B sets password length rules for services rather than entropy targets for users.

How We Generate and Score the Password

Method
Each character or word index is drawn with crypto.getRandomValues (32-bit values) and rejection sampling: values at or above floor(2^32 / n) x n are discarded, so each of the n choices is exactly equally likely.
Inputs used
Type, length (4 to 128) or word count (3 to 20), separator, the five character sets, look-alike removal, the one-of-each rule and the repeat rule.
Assumptions
The attacker knows your settings but not the random draws. The offline time uses 10 billion guesses per second and the average case, half of all possibilities.
Scoring
Entropy = log2(number of passwords the settings allow). The one-of-each rule is counted by inclusion-exclusion; no-repeat uses falling factorials. Shown to 0.1 bit.
Privacy
No network requests are made by the generator. Save is disabled on this page and Copy copies only the password.
Sources
NIST SP 800-63B (2025), MDN Crypto.getRandomValues, CISA password guidance and the EFF wordlist notes. See Sources below.
Last reviewed
2026-09-30.

The 18 symbols are ! # $ % * + - . / : ; = ? @ ^ _ ~ plus the ampersand. Quote marks, backslash, backtick and space are left out because many forms and command lines mishandle them. To check the large numbers yourself, the logarithm calculator computes log2 of any pool size.

Frequently Asked Questions About Random Passwords

How long should a password be?

At least 15 characters for a password used on its own, which is the minimum NIST SP 800-63B asks services to require. Longer is better when a password manager fills it in.

Is this password generator safe to use?

Yes. Passwords are made in your browser with crypto.getRandomValues, nothing is sent over the network, and the page does not store them.

What is password entropy?

Entropy is the number of bits of randomness: log2 of how many passwords the settings could produce. Each extra bit doubles the guesses needed.

How many bits of entropy is a strong password?

This page calls 60 to 79 bits strong and 80 or more very strong. Those bands are a rule of thumb, not a formal standard.

Do I need symbols in my password?

Not for strength. Symbols add less than one extra character does, and NIST says services must not force character mixes. Include them when a site demands them.

Is a passphrase better than a random password?

Neither is better per bit. A passphrase is easier to type and remember; random characters are shorter for the same strength.

Why not use Math.random for passwords?

Math.random is not designed for security. crypto.getRandomValues is the browser function built for cryptographically strong random values.

What is modulo bias?

It is the slight unfairness from taking a random number modulo the pool size when the range is not an exact multiple. Rejection sampling removes it.

Should I change my passwords regularly?

Not on a schedule. NIST says services must not force periodic changes, but must force a change when there is evidence of compromise.

Can I use the same strong password on several sites?

No. Use a unique password for each account, so one breach cannot unlock the others.

What are ambiguous characters?

Characters that look alike in many fonts, such as 0 and O or 1, l and I. Removing them helps when you type a password from paper or read it aloud.

Where do the passphrase words come from?

From the EFF short wordlist of 1,296 words, published by the Electronic Frontier Foundation under a Creative Commons Attribution license.

Sources

Related Calculators

Looking for more everyday tools?

Explore lifestyle calculators

This generator is a general security aid, not a security audit. A random password protects against guessing, but not against phishing, malware or a breached site; use a unique password per account, a password manager and multi-factor authentication where offered. Passphrase words come from the EFF short wordlist, used under CC BY 4.0. Spotted an error? Let us know.

Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~ More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.