All tools › Everyday Calculators › Converters & Utilities
Choose a length and character types to make a random password right in your browser.
What the password generator does
This password generator creates a random password from the character types you choose: uppercase letters, lowercase letters, numbers and symbols. You set the length, press the button, and copy the result. It also shows how large the character pool is and how many bits of entropy the password has, so you can compare settings.
The password is made by code running in your own browser. It is not sent to this site or to anyone else, and it is not saved. Once you leave or refresh the page it is gone, so copy it into a safe place first.
How to use the password generator
- Set the Password length, from 4 to 128 characters.
- Tick the character types to include: Uppercase letters (A-Z), Lowercase letters (a-z), Numbers (0-9) and Symbols (!@#$…). At least one must be ticked.
- Tick Skip look-alike characters (O, 0, l, 1, I) if you will ever need to read or type the password by hand.
- Press Generate new password. Press it again for a different one.
- Copy the password and store it, ideally in a password manager.
How the password is built
The tool joins the ticked character sets into one pool. With everything ticked the pool has 84 characters: 26 uppercase, 26 lowercase, 10 digits and 22 symbols. It then:
- picks one random character from each ticked set, so every chosen type appears at least once;
- fills the remaining positions with random picks from the whole pool;
- shuffles all the characters so the first ones are not always in the same order of types.
Random numbers come from the browser’s built-in cryptographic random source when the browser provides one, which current browsers do.
Entropy: the number behind “strength”
Entropy measures how many equally likely passwords the settings could have produced, written as a power of two. Each extra bit doubles that number.
entropy (bits) = length x log2(pool size)
- length is the number of characters.
- pool size is how many different characters each position can be.
- log2 is the base-2 logarithm.
Because the tool forces one character of each ticked type, the true figure is very slightly below what the formula gives. The difference is small and the number should be read as an estimate for comparing settings.
Worked examples
These figures come from running the generator with the settings shown. The passwords themselves are random and different every time, so none is printed here.
| Settings | Character pool | Entropy | Strength shown |
|---|---|---|---|
| 8 characters, numbers only | 10 | 26.6 bits | Weak |
| 12 characters, lowercase only | 26 | 56.4 bits | Fair |
| 12 characters, all four types | 84 | 76.7 bits | Strong |
| 16 characters, all four types | 84 | 102.3 bits | Very strong |
| 20 characters, no symbols, look-alikes skipped | 57 | 116.7 bits | Very strong |
Take the fourth row: log2 of 84 is about 6.39, and 16 × 6.39 gives about 102.3 bits. The last row is worth a look too. Dropping symbols and look-alike characters shrinks the pool from 84 to 57, yet four extra characters more than make up for it. Length adds entropy faster than variety does.
What the strength labels mean
| Entropy | Label |
|---|---|
| Under 40 bits | Weak |
| 40 to under 60 bits | Fair |
| 60 to under 80 bits | Strong |
| 80 bits or more | Very strong |
These bands are this tool’s own labels, chosen to make comparison easy. They are not an official standard, and they say nothing about how a particular website stores or protects your password.
What a generated password cannot do
- It does not protect you if you type it into a fake login page or if the device you use is infected.
- It does not help if the same password is reused and one of those sites leaks it. Use a different password for every account.
- It is not a substitute for two-step sign-in where a site offers it.
- It is hard to remember by design. The tool makes random character strings only; it does not make word-based passphrases or check passwords you already have.
- Some sites reject certain symbols or cap the length. If a password is refused, untick Symbols or shorten it and generate again.
Frequently asked questions
How long should my password be?
Longer is better, within what the site accepts. The tool starts at 16 characters, and each extra character with all four types ticked adds about 6.4 bits of entropy.
Where should I keep the password?
A password manager is the practical answer, since random passwords are not meant to be memorized. Avoid plain notes or email drafts that sync without protection.
Why did my password come out with only one number?
Each ticked type appears at least once, but beyond that every position is a random pick from the whole pool, so the mix varies from one password to the next.
Does skipping look-alike characters make the password weaker?
Slightly. It removes five characters from the pool, which lowers entropy a little. Adding one more character more than restores it.
Can I make several passwords in a row?
Yes. Press the generate button again each time. Every press makes a new password with the same settings.
Related calculators
- Random Number Generator – random whole numbers in any range, for PINs, draws and picks.
- Scientific Calculator – check a base-2 logarithm yourself.
- Unit Converter – bits, bytes and other digital storage units.
- Everyday calculators – more day-to-day tools.
