Skip to content
ToutUtils

Generators

Password generator

Generates a random password of 4 to 64 characters from the character sets you tick, and shows its strength in bits of entropy.

16

How to use this tool

Move the slider to set the length, from 4 to 64 characters, and tick the sets to draw from: lowercase, uppercase, digits and 26 symbols. A new password appears at every change. Regenerate draws another one with the same settings and Copy puts it on the clipboard. Each character is picked independently with crypto.getRandomValues, the cryptographic random generator of the browser. The option to avoid ambiguous characters removes 0, O, 1, l and I, which helps when a password has to be read aloud or typed from paper. Next to the password, the tool shows its entropy: log2 of the number of possible characters, multiplied by the length. Under 40 bits is labeled Weak, 40 to 59 Fair, 60 to 79 Medium, 80 and above Strong. With all four sets, 16 characters give 103 bits.

Concrete examples

  • 16 characters, all four sets (88 possible characters) → 103 bits, Strong
  • 12 characters, letters and digits only (62 possible characters) → 71 bits, Medium
  • 8 characters, all four sets → 52 bits, Fair
  • 20 lowercase letters → 94 bits, Strong: length makes up for a small character set
  • A 4-digit code → 13 bits, Weak

Frequently asked questions

How long should a password be?
Long enough to reach the Strong label, which starts at 80 bits. With all four character sets that takes 13 characters; with letters and digits only, 14. Each extra character multiplies the number of possible passwords by the size of the pool, 88 with everything ticked.
Is the password sent or stored anywhere?
No. It is generated in your browser with crypto.getRandomValues and never leaves the page: no request goes to a server and nothing is saved. Reloading the page discards it, so copy it into your password manager before you move on.
What does entropy in bits mean?
It measures how many guesses a random password can withstand: n bits means 2 to the power n possible passwords, and each added bit doubles the work of an attacker trying every combination. The tool computes log2(pool size) × length. The figure only holds for passwords drawn at random, which is the case here.
Does the password always contain a digit and a symbol?
Not always. Every character is drawn from the whole pool, so a short password can come out with no digit or no symbol. If a site requires one of each, press Regenerate until the password qualifies, or add a character or two to the length.
What if a site refuses some symbols?
The symbol set holds 26 characters, including brackets, punctuation and signs such as @ # $ % & * + = ?. If a site rejects some of them, untick Symbols and lengthen the password by two characters: 18 letters and digits (107 bits) are stronger than 16 characters with symbols (103 bits).

Related tools