Password Generator

Create a strong random password of any length. It is made in your browser and never sent anywhere.

characters

4 to 128. Longer is stronger. 16 or more is a good habit.

Some sites do not accept every symbol.

Avoid them if you will read the password out or type it from paper.

1 to 50.

Your password

)sq^1,OYaTsR0Zii

Very strong: about 102 bits of strength.

Length
16
Characters to pick from
85
Strength
Very strong (102 bits)

A random password of 16 characters drawn from 85 possible characters has about 102 bits of strength.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

The tool picks each character at random from the sets you switch on. The randomness comes from your browser's secure random source (crypto.getRandomValues), the same one used for security keys, not from Math.random. Each pick avoids a subtle bias, so no character is more likely than another.

It makes sure one character from every chosen set is included, fills the rest from all sets together, and then shuffles the result so the guaranteed characters do not sit at the start.

Strength is shown in bits: length × log2 of the number of characters to pick from. Each extra bit doubles the number of guesses an attacker needs. It assumes the password is truly random, which is why a password made here is stronger than one you invent, even if the one you invent looks complicated.

Everything happens on your device. The password is not sent to a server, stored or logged, and it disappears when you close the page.

Check it by hand: with capitals (26), small letters (26), digits (10) and symbols (23) the pool has 26 + 26 + 10 + 23 = 85 characters. Each character adds log2(85) = 6.41 bits, so 16 characters give 16 × 6.41 = 102.5 bits, shown as 102. Without symbols the pool is 62, and a 12 character password has 12 × log2(62) = 12 × 5.954 = 71.4 bits.

Strength (bits) = length × log2(number of possible characters)

Worked example

A 16-character password using capitals, small letters and numbers has 62 possible characters. 16 × log2(62) is about 95 bits. Adding symbols raises the pool to 85 and the strength to about 102 bits.

Both are far beyond what can be guessed by brute force today. The weak point is then not the password but where you keep it, so use a password manager and a different password for every account.

Good to know

  • The strength figure only holds if the password is used as generated. If you change it to be easier to remember, it gets weaker.
  • A strong password does not protect you if the site is breached, if you type it into a fake page, or if you reuse it. Turn on two-step sign-in where you can.
  • The tool does not store passwords. Copy the result into a password manager before you close the page.

Questions people ask

Is it safe to generate passwords online?

It is safe here because the password is made inside your browser and never sent to a server. You can check this by switching off your internet connection after the page loads. It still works.

How long should a password be?

At least 12 characters, and 16 or more for important accounts such as email and banking. Length adds more strength than symbols do.

Should I use symbols?

They help a little, but a longer password helps more. If a site rejects some symbols, leave them out and add length instead.

Does it save the passwords it makes?

No. Nothing is stored or sent. Copy the password to a password manager before you leave the page.

What does the strength in bits mean?

It is how many yes/no guesses an attacker would need on average, as a power of 2. Under 40 bits is weak, 60 is decent, and 80 or more is very strong for most uses.

How many possible passwords does 16 characters from 85 give?

85^16, which is about 7.4 × 10^30. That is about 2^102.5, the 102 bits the tool reports.

Part of the guide: Developer and design tools: QR codes, passwords, JSON, colors and timestamps

Formulas and text last checked on 14 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.