OnlineTextLab
Esc

Password Generator

A random password from your browser's secure generator, with its real strength in bits.

20

Runs on your device. Your files and text are not uploaded.

About Password Generator

A strong password is a long random one, and people are bad at producing those. This tool makes one the moment the page opens. Adjust the length and the character types to match what a site allows, and it regenerates as you go. A meter tells you how strong the result is, using the math behind it and not a guess based on how it looks.

The password exists only on this page. It is not sent anywhere or stored, and it disappears when you close the tab or press New. So you need somewhere to put it: a password manager is the right home, since a password this random is not meant to be memorized.

How it works

Every character is chosen with crypto.getRandomValues, the secure source built into browsers, with no fallback to Math.random. A plain modulo would make some characters slightly more common, so values that fall outside an even range are thrown away and drawn again, which keeps the odds even. One character from each set you ticked goes in first, so the result passes rules such as "must contain a digit", and then the whole string is shuffled so those characters follow no pattern.

Strength is the length multiplied by the base 2 logarithm of the pool size. All four sets give a pool of 88 characters, so 20 of them make 129 bits. The labels are Weak under 50 bits, Fair under 72, Strong under 100 and Very strong above that. The guaranteed characters take away a tiny amount, too small to change a label.

How to use Password Generator

  1. A password is ready when the page opens. Drag the Length slider to set between 4 and 128 characters.
  2. Tick the sets you want: Lowercase, Uppercase, Numbers and Symbols.
  3. Turn on Skip look-alikes if someone might have to read it or type it by hand.
  4. Press New for another, then Copy, and save it in your password manager.

What the settings do to strength

Output
20 characters, all four sets:
?94$H89b#]zu5|KVb#!;  129 bits, Very strong

20 characters, all four sets, skip look-alikes:
.A;mz;v]w6c=aj4[2BW3  127 bits, Very strong

16 characters, no symbols:
u3UAgNqpRVDb6KUO  95 bits, Strong

12 characters, lowercase only:
enlbhdzzkslg  56 bits, Fair

8 characters, lowercase and numbers:
b657tsz6  41 bits, Weak

These came from the generator and are shown for comparison, so do not use them. Length does more than variety: going from 8 to 12 characters adds more than adding a whole new character set does.

When it helps

  • Creating a unique password for a new account, to store in a password manager
  • Generating a database password or service credential during setup
  • Producing a short readable code with look-alikes skipped, for reading aloud or printing
  • Meeting a strict site policy by adjusting length and sets until it accepts the result

Tips for a better result

  • Use a different password for every account. Reuse means one site's leak opens your others, however strong the password is.
  • If a site rejects symbols, turn them off and raise the length. Sixteen letters and digits still reach 95 bits.
  • For the one password you must remember, such as a password manager's, a long passphrase of random words is easier to type. This tool does not make those.

Good to know

  • It makes random characters only, with no passphrases or pronounceable patterns.
  • It cannot tell whether a site will accept a given symbol. The symbol set is !@#$%^&*()-_=+[]{}|;:,.<>?, and you can only turn it on or off as a group.
  • The bits figure assumes the password stays secret and was generated here, so it says nothing about a password you already use.
  • Your clipboard is outside the page's control, so a clipboard history tool could keep what you copy.

Questions people ask

Is a password made on a website safe to use?

This one is generated by a script in your browser, and no request is made. You can check by watching the network panel, or by loading the page and going offline before you press New.

How long should my password be?

For an account behind a login, 16 or more random characters is plenty. Keys and master secrets can go higher, and the meter labels anything above 100 bits as more than a login needs.

What are look-alike characters?

Those easily confused in many fonts: 0, O, 1, l, I and |. Skipping them costs about 2 bits at 20 characters, which is a fair trade if someone has to type the password.

Why is at least one of each type included?

Many sites demand it, and a random draw could miss a set. Each ticked set is therefore represented once, then the order is shuffled.

What to use next

Learn more

Last reviewed . Read our editorial policy.