Skip to content

Generators

Password Generator

Generate strong, random passwords with custom length and character sets. Everything runs locally in your browser for maximum privacy.

Generators · Password GeneratorRuns in your browser
Select at least one character set
16

How to generate a strong password

  1. A 16-character password drawn from all four character sets is waiting the moment the tool loads. The circular-arrows button draws a fresh one whenever you like.
  2. Drag the Length slider anywhere between 6 and 48 characters. The password is rebuilt immediately after every change, so you never need to click Generate.
  3. Tick or untick Lower, Upper, Numbers and Symbols to shape the pool. With all four unticked the box reads 'Select at least one character set' instead of a password.
  4. Click the copy icon. It turns into a tick for a second and a half to confirm the password is on your clipboard, ready to paste into your password manager.

Where the randomness comes from

Every character is chosen with crypto.getRandomValues, the browser's cryptographically secure random source, not with Math.random. For each position the tool asks for one unsigned 32-bit integer (a value from 0 to 4,294,967,295) and takes it modulo the size of the pool you selected. With all four sets ticked the pool holds 87 characters, so a 16-character password consumes 16 separate 32-bit draws.

Taking a 32-bit value modulo 87 leaves a tiny bias, because 4,294,967,296 divided by 87 is not a whole number (the remainder is 16). Sixteen of the 87 characters are therefore favoured by one part in roughly 49 million. That is far too small to help an attacker, but it is worth knowing if you are auditing the code.

Each position is drawn independently. Nothing forces a symbol or a digit to appear just because its box is ticked. With all sets on, the chance that a 6-character password contains no symbol at all is (62/87)^6, about 13%; at 12 characters it falls to 1.7%, and at 16 characters to 0.4%. If a site insists on at least one symbol, glance at the result or regenerate.

The exact character sets

The symbol set deliberately leaves out the space, both quote marks, the backslash, the backtick, the tilde, the pipe and the forward slash. Those are the characters most likely to be mangled by a shell, a URL or a badly written sign-up form. The flip side is that a site which demands a specific symbol outside this list will need you to add it by hand.

No similar-looking characters are excluded: lowercase l, capital I, the digit 1, capital O and the digit 0 can all appear. If you will ever read the password aloud or type it from paper, regenerate until the ambiguous ones are gone, or stick to copy and paste.

SetCharactersCount
Lowera to z26
UpperA to Z26
Numbers0 to 910
Symbols! @ # $ % ^ & * ( ) - _ = + [ ] { } ; : , . < > ?25
All four together87

Entropy for each slider setting

Password strength is measured in bits of entropy: bits = length × log2(pool size). The pool sizes above give 4.70 bits per character for lowercase only, 5.70 for mixed-case letters, 5.95 for letters plus digits and 6.44 for all 87 characters. A 16-character password from the full pool is therefore 16 × 6.443 = 103.1 bits.

LengthSets tickedPoolBits of entropy
6All four8738.7
8Lower only2637.6
8Letters + numbers6247.6
8All four8751.5
12Letters + numbers6271.5
12All four8777.3
16Letters + numbers6295.3
16All four87103.1
24All four87154.6
48All four87309.3

Entropy of passwords this tool can produce (rounded to 0.1 bit)

What those bits mean against a guessing attack

On average an attacker finds the password halfway through the search, so halve those figures for the expected time. A trillion guesses a second is a reasonable estimate for an offline attack on a leaked database of fast hashes; against a website that rate-limits logins the attacker gets perhaps a few guesses a second, which makes even the 8-character row survive for decades. The slider default of 16 is a comfortable margin for anything that matters, and 20 or more costs nothing when a password manager types it for you.

PasswordCombinationsExhaustive search
8 lowercase letters26^8 ≈ 2.1 × 10^110.2 seconds
8 chars, all sets87^8 ≈ 3.3 × 10^15about 55 minutes
12 chars, all sets87^12 ≈ 1.9 × 10^23about 6,000 years
16 chars, all sets87^16 ≈ 1.1 × 10^31about 340 billion years

Time to try every combination at one trillion (10^12) guesses per second

Things this generator does not do

  • It has no passphrase or pronounceable mode; the output is always a string of independent random characters.
  • It does not check the result against breach lists, nor enforce 'at least one of each type' rules.
  • It keeps no history. Moving the slider or toggling a checkbox replaces the current password instantly, and the previous one cannot be recovered, so copy a password you like before adjusting anything.
  • Length stops at 48. For a longer secret, generate two and join them.
  • Whatever you copy sits on the system clipboard until you copy something else, where other applications may be able to read it.

Frequently asked questions

Are the generated passwords safe to use?

Yes. Passwords are generated locally using your browser's cryptographically secure random number generator and are never transmitted or stored.

Why does the password sometimes contain no symbol although Symbols is ticked?

Ticking a set only adds its characters to the pool; every position is still an independent random draw. At short lengths a symbol-free result is fairly common (about 13% at 6 characters). Regenerate or lengthen the password if a site requires one.

Which slider length should I use?

Leave it at the default 16 for ordinary accounts (103 bits with all sets on). Use 20 to 24 for email, banking and anything protecting other passwords. Drop below 12 only when a legacy system refuses longer input.

Can I exclude look-alike characters such as 0 and O?

Not with a setting. The tool has no 'avoid ambiguous characters' option, so either regenerate until none appear or rely on copy and paste, where look-alikes cause no trouble.

Does the generator store the passwords it has made?

No. Each password exists only in the page until it is replaced by the next one, and nothing is written to local storage, cookies or any server.

Explore

113 tools. Zero uploads. One place.

Every tool opens instantly, works on your phone and keeps your files on your device.

Password Generator guides