Password Generator

Pick a length and character types to create a strong password instantly.

AD

Please select at least one character type.

Generating…
Strength -

🔒 Never sent to a server. Passwords are created only inside your browser and are not stored or transmitted anywhere.

How this is calculated

See the formula and an example

Why length and character types matter (entropy)

A password's strength comes from the number of possible combinations. That count, expressed in bits, is called entropy. Entropy is (length × log2(size of the character pool)). For example, eight lowercase letters give about 37 bits, but 16 characters mixing lowercase, uppercase, digits and symbols give more than 100 bits. The higher the bit count, the longer a brute-force attack (trying every possible combination) takes, growing exponentially. That is why a long password that mixes character types is far safer than a short, simple one.

How to use

Set the length with the slider and choose the character types to include
A password matching your choices appears automatically. Press ‘Generate again’ for a new one
Press ‘Copy’ and paste it into the sign-up or login form — done
AD

How this password generator works

This password generator builds a random password from the character types you choose, entirely inside your browser. Move the slider to set a length from 4 to 64 characters, tick the types you want, and a new password appears instantly. The strength meter shows an estimate in bits of entropy. Press Generate again as often as you like; nothing is saved or uploaded.

Where the randomness comes from

Many simple generators call Math.random(), which is fine for games but not designed for secrets. This tool uses the browser’s crypto.getRandomValues(), the same cryptographically secure source websites use for security tokens. It also avoids modulo bias, where a random number squeezed into a smaller range makes some characters slightly more likely, by discarding the few values that would cause it and drawing again. If you select several character types, it guarantees at least one character from each type and then shuffles the result.

How strength is measured

Entropy is the number of bits needed to describe how many equally likely passwords could have been produced. For a random password the formula is simple:

entropy (bits) = length × log2(size of the character pool)

With all four types selected, the pool holds 86 characters: 26 lowercase letters, 26 uppercase letters, 10 digits and 24 symbols. A 16-character password therefore has about 16 × 6.43 = 103 bits. A 12-character lowercase-only password has only 12 × 4.70 = 56 bits. The meter labels anything under 40 bits Weak, 40 to 70 bits Fair and 70 bits or more Strong. For accounts that matter, aim well above 70 bits, which means 14 or more characters from a mixed pool.

What security guidance says about passwords

NIST publishes the digital identity guidelines that many organizations follow in Special Publication 800-63B. It favors length over complicated composition rules, allows long passphrases, discourages forced password changes without a reason, and checks new passwords against lists of known breached passwords. A random password from this tool is not guessable, but it cannot protect you from phishing, password reuse or careless storage. Use a different password for every account, store them in a password manager and turn on two-step verification or passkeys.

Why “exclude look-alike characters” exists

The uppercase letter I, the lowercase l and the digit 1 look nearly identical in many fonts, as do O, o and 0. If you will ever read a password aloud, type it from a printed sheet or enter it on a TV or game console, turn this option on. The pool shrinks from 86 to 80 characters, which costs only about 0.1 bit per character.

Frequently asked questions

Is this password generator safe to use?

Yes. The password is created locally with your browser’s cryptographic random number generator, and it is not stored, logged or transmitted. Avoid generating passwords on a shared computer.

How long should my password be?

For most accounts, 16 characters with a mix of types is a strong default. Use 20 or more for email, banking and your password manager.

Are passphrases better than random characters?

Both work if they are truly random. Four or five randomly chosen common words are easier to remember and type, which makes them ideal for a master password.

Do symbols make a password much stronger?

Less than people think. Symbols widen the pool a little, but each extra character of length helps more.

What does the entropy number mean?

It estimates how many guesses an attacker would need in the worst case, and every added bit doubles that number. A password you choose yourself, such as “Summer2024!”, is far weaker than its length suggests.

Should I change my passwords regularly?

Not on a fixed schedule. Current guidance from NIST advises changing a password when there is evidence it was exposed, not every 90 days, because forced rotation tends to produce weaker passwords.

Related tools

AD

How this tool is checked

Last regular check

How it calculates Characters are drawn from the selected sets with crypto.getRandomValues(), at least one from each set, then shuffled.

How we check Before release, results go through calculation regression tests plus screen and accessibility checks, and the check date changes only when these checks pass again.

Run by Toolssok · About · Report an error