Random Password Generator
Free random password generator for 12, 15, 16 or up to 128 characters. Runs in your browser, shows the entropy in bits, and rates the length against NIST.
Updated
Options
Select Generate to create a password.
Runs in your browser. What you enter is not sent anywhere.
What Is a Random Password Generator?
The random password generator picks each character of a password at random from the character sets you select and shows the entropy of the result in bits, with the alphabet size and length behind the figure. Under each result, a reading compares the length with the NIST SP 800-63B-4 minimums for a password used alone and one used with multi-factor authentication. Every random pick uses crypto.getRandomValues in your browser.
How to Use the Random Password Generator
- Type a length, or select 8, 12, 15, 16, 20, or 32 characters.
- Select the character sets the password may use.
- Under Options, leave out look-alike characters, turn off the rule that every set must appear, or create 5 or 10 passwords at once.
- Read the password, its entropy, and the NIST length reading at the top of the panel. A new setting creates a new password, and Generate creates another with the same settings. Copying never changes it.
- Copy the password into your password manager or the site's password field.
How It Works
Every character on this page is picked with crypto.getRandomValues. MDN describes its generator as suitable for cryptographic purposes, and the Web Cryptography specification calls for a cryptographically strong generator seeded with truly random values. The page does not use Math.random, which MDN says does not provide cryptographically secure random numbers. To keep every character equally likely, the page draws again whenever a random value falls at or above the largest multiple of the alphabet size below 2^32, so the remainder it takes has no bias.
NIST defines entropy as the amount of uncertainty an attacker faces to determine a secret, usually stated in bits. A value with n bits of entropy is as uncertain as a uniformly random n-bit value. A password of L characters, each picked uniformly from an alphabet of A characters, has L × log2(A) bits. All four sets give an alphabet of 94 characters and about 6.55 bits per character, so 16 characters give about 104.8 bits. Each added bit doubles the number of guesses an attacker needs (EFF).
NIST SP 800-63B-4 says services shall not impose composition rules such as required mixtures of character types, but some sites still require one character of each type. With Include every selected set on, the page draws the whole password again until each selected set appears, instead of inserting one character of each set. Every password that contains all the sets stays equally likely, so the entropy is the log2 of their exact number, counted by inclusion and exclusion. At 16 characters from all four sets the rule lowers the figure from 104.8 to 104.5 bits.
The option to leave out look-alike characters removes 0, O, 1, l, I and |, which are easy to misread when a password is read aloud or typed from paper. NIST SP 800-63B-4 suggests fonts that clearly distinguish easily confused characters, such as the capital letter O and the number zero. With all four sets the alphabet drops from 94 to 88 characters, about 0.1 bits less per character.
NIST SP 800-63B-4, final since July 2025, sets rules for the services that check passwords. A service must require at least 15 characters for a password used as the only factor and at least 8 for one used only with multi-factor authentication, should permit at least 64 characters, and should accept all printing ASCII characters and the space. NIST calls password length a primary factor in password strength. The reading under each result compares its length with the two minimums: Single factor at 15 characters or more, MFA only from 8 to 14, and Too short below 8.
NIST notes that attackers who obtain hashed passwords can compute many billions of hashes per second offline, without rate limiting, so passwords need to be orders of magnitude more complex than those that only have to resist online guessing. For a random password, the length and the alphabet size set that cost.
The UK NCSC says machine-generated passwords eliminate the passwords that are simple to guess and can be random and unique, but most are very difficult for people to remember. It encourages the random password generator built into most password managers, and calls complexity requirements a poor defence against guessing attacks. For a password you have to remember, a passphrase of random words is easier to recall.
Character Sets
The sets this page draws from, with their size before and after leaving out look-alike characters.
| Set | Characters | Count | Without look-alikes |
|---|---|---|---|
| Lowercase | abcdefghijklmnopqrstuvwxyz | 26 | 25 |
| Uppercase | ABCDEFGHIJKLMNOPQRSTUVWXYZ | 26 | 24 |
| Digits | 0123456789 | 10 | 8 |
| Symbols | !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ | 32 | 31 |
Entropy by Length
Bits of entropy when every character is drawn from the whole alphabet, rounded down. Requiring every set lowers the figure slightly.
| Length | a-z (26) | a-z, 0-9 (36) | a-z, A-Z, 0-9 (62) | All four sets (94) |
|---|---|---|---|---|
| 8 characters | 37.6 | 41.3 | 47.6 | 52.4 |
| 12 characters | 56.4 | 62.0 | 71.4 | 78.6 |
| 15 characters | 70.5 | 77.5 | 89.3 | 98.3 |
| 16 characters | 75.2 | 82.7 | 95.2 | 104.8 |
| 20 characters | 94.0 | 103.3 | 119.0 | 131.0 |
| 32 characters | 150.4 | 165.4 | 190.5 | 209.7 |
| 64 characters | 300.8 | 330.8 | 381.0 | 419.4 |
Standards
Scope
What It Checks
- +Picks every character with crypto.getRandomValues and rejection sampling, so each one is equally likely.
- +Includes every selected character set by drawing the whole password again, so every valid password stays equally likely and the entropy figure stays exact.
- +Leaves out the look-alike characters 0 O 1 l I | when asked.
- +Rates each length against the NIST SP 800-63B-4 minimums: 15 characters for a password used alone and 8 for one used with multi-factor authentication.
- +Creates 1, 5, or 10 passwords at once, each with its own copy button.
- +Creates a new result when you select Generate or pick settings you have not used yet. Copying, Reset, and switching back to earlier settings show the earlier result again.
What It Does Not Check
- -It does not send or store anything it generates, and it writes nothing to the page address.
- -It does not rate passwords you type. The entropy figure and the length reading apply only to results this page generated.
- -It does not check passwords against breach lists.
Defensive Use
NIST SP 800-63B-4 lets a service assign passwords randomly, and it counts machine-generated random passwords among the mitigations that are more effective against modern brute-force attacks than extra password requirements. The UK NCSC says machine-generated passwords eliminate the passwords that are simple for an attacker to guess, and it advises using the random password generator built into a password manager.
Frequently Asked Questions
What is a Random Password Generator?→
The random password generator picks each character of a password at random from the character sets you select and shows the entropy of the result in bits, with the alphabet size and length behind the figure. Under each result, a reading compares the length with the NIST SP 800-63B-4 minimums for a password used alone and one used with multi-factor authentication. Every random pick uses crypto.getRandomValues in your browser.
What is the Random Password Generator used for?→
Creating a random password for a new account or a password reset, a shared Wi-Fi or service account password, or a password that a site with fixed length and character rules accepts, and checking how many bits a given length and character set give.
Is my data sent anywhere?→
No. The Random Password Generator runs in your browser. What you enter stays on this page and is not sent to ImmunitySec or anyone else.
How is the Random Password Generator used defensively?→
NIST SP 800-63B-4 lets a service assign passwords randomly, and it counts machine-generated random passwords among the mitigations that are more effective against modern brute-force attacks than extra password requirements. The UK NCSC says machine-generated passwords eliminate the passwords that are simple for an attacker to guess, and it advises using the random password generator built into a password manager.
Is a 12-character password strong enough?→
NIST SP 800-63B-4 requires services to set a minimum of 15 characters for a password used as the only factor, and allows a minimum of 8 for a password used with multi-factor authentication. A 12-character password meets the second minimum, not the first. From all four character sets, a random 12-character password from this page has about 78 bits of entropy.
How long should a password be?→
NIST SP 800-63B-4 sets the minimum a service must require at 15 characters for a password used alone and 8 for one used with multi-factor authentication, and says services should permit at least 64 characters. NIST calls password length a primary factor in password strength.
Do I need symbols and numbers in a password?→
NIST SP 800-63B-4 says services shall not impose composition rules such as required mixtures of character types, and the UK NCSC calls complexity requirements a poor defence against guessing attacks. A larger alphabet adds bits per character, which the entropy figure on this page shows, but a longer password adds bits too.
Is it safe to generate a password on a website?→
This page generates in your browser with crypto.getRandomValues, which MDN describes as suitable for cryptographic purposes, and nothing leaves the page. MDN also notes that the Web Cryptography specification sets no minimum degree of entropy. The UK NCSC encourages the random password generator built into a password manager, which creates and stores the password in one step.
Where should I keep a generated password?→
Store it in a password manager. The UK NCSC says most machine-generated passwords are very difficult for people to remember and that most password managers include a random password generator. NIST SP 800-63B-4 requires services to allow password managers and autofill.
What does leaving out look-alike characters change?→
It removes characters that are easy to confuse when a password is read or typed by hand. NIST SP 800-63B-4 suggests fonts that clearly distinguish easily confused characters, such as the capital letter O and the number zero. With all four sets, the alphabet shrinks from 94 to 88 characters, so each character carries about 0.1 bits less.