PWPassword Generator
–

Rate this tool

No ratings yet — be the first to rate!

Free Password Generator

Reusing one short password across sites means a single leak can open many accounts. A strong password needs length, a wide mix of characters and true randomness, which is hard to invent by hand. This generator creates one for you in your browser using the browser's cryptographically secure random generator, and shows a live strength meter based on entropy. Nothing is stored or sent anywhere: the password exists only on your device until you copy it.

Author’s note

I ran this test myself, generating passwords at lengths 4 to 32 and with different character sets, and counting every output. The result that stuck with me is that a 20-character lowercase-only password beat a 12-character password using every set — length matters more than I expected. I now set 16 as my floor and 20 where a site allows it.

How to use the Password Generator

  1. Set the length with the slider. Sixteen characters or more is recommended for important accounts, and the slider runs from 4 to 64.
  2. Tick the character sets you want: uppercase, lowercase, digits and symbols.
  3. Keep “Exclude similar characters” ticked if you will type the password by hand, since it removes look-alikes such as l, 1, I, O and 0.
  4. Press Generate for a fresh random password, read the strength label, and press Copy to copy it.
  5. Paste it into the site or app straight away, and save it in a password manager. Do not keep it in a photo, note or chat message.

Example: a 16-character password for a new email account

Instead of a made-up example, here is what the tool actually produced when I ran it. With length 16, all four character sets ticked and “Exclude similar characters” on, the tool generated 4$gn3x#{q~n#:&a@ — 16 characters, exactly as set — and the meter read “Excellent (entropy ≈ 102 bits)” with the bar full. The character pool behind that number is 84 characters: 26 uppercase plus 26 lowercase plus 10 digits plus 27 symbols, minus the 5 look-alikes the tool excludes (l, 1, I, O, 0). Entropy = length × log2(pool size) = 16 × log2(84), about 102 bits, and the meter rates anything from 80 bits up as Excellent.

Password generator showing a 16-character password with all four character sets and the strength meter reading Excellent, entropy about 102 bits
Length 16, all four character sets, similar characters excluded: the meter reads “Excellent (entropy ≈ 102 bits)” with a full green bar.

I ran the generator at four lengths with the same settings. Length 12 gave 4TNq)y}#x6}2 — 12 characters, “Strong (entropy ≈ 77 bits)”. Length 20 gave &SX[$WZ>,8;u_.Vnn[,r — 20 characters, “Excellent (entropy ≈ 128 bits)”. Length 32 gave N;AHQ}/zqR){fE<*P]Tz5ULsx)twDTV~ — 32 characters, “Excellent (entropy ≈ 205 bits)”. Every run came back at exactly the length I set, and the meter reading moved with the length.

These printed passwords are test outputs, not passwords to use: anyone reading this page can see them, so they are not secret. Press Generate for a fresh password that only you have seen.

What the strength meter actually measures — length vs variety, tested

The meter measures one thing: entropy, which is length × log2(pool size). Length is how many characters you asked for; pool size is how many different characters the generator can pick from, set by the character sets you tick. From the readings I recorded, the meter’s bands are: under 40 bits Weak, 40–59 Fair, 60–79 Strong, and 80 bits and up Excellent.

Length setCharacter setsActual lengthMeter reading
16All four sets16Excellent (≈ 102 bits)
16Letters only16Excellent (≈ 90 bits)
16Lowercase only16Strong (≈ 74 bits)
16Digits only16Fair (≈ 48 bits)
20Lowercase only20Excellent (≈ 93 bits)
12All four sets12Strong (≈ 77 bits)
8All four sets8Fair (≈ 51 bits)
4All four sets4Weak (≈ 26 bits)

The comparison that settled it for me: a 20-character password using lowercase letters only scored 93 bits (Excellent) and beat a 12-character password using all four sets, which scored 77 bits (Strong). At the same length of 16, variety mattered a lot — letters only scored 90 bits, lowercase only 74, digits only 48 — but adding 4 characters of plain lowercase beat adding three whole character sets to a short password. Length moves the meter more than variety does, once you have more than one set.

Password generator showing a 16-character digits-only password with the strength meter reading Fair, entropy about 48 bits
The same length, 16 characters, with digits only: “Fair (entropy ≈ 48 bits)” — less than half the 102 bits of the all-sets password at the same length.

Two smaller findings. First, switching “Exclude similar characters” off at length 16 moved the reading only from 102 to 104 bits — 2 bits — because the pool grew from 84 to 89 characters; excluding look-alikes costs almost nothing, so keep it on if you type passwords by hand. Second, the generator does not guarantee every ticked set appears: in my runs one 12-character output had no digit, the 8-character output had no digit, and the 4-character output had no uppercase letter. If a site demands a digit, check the output before copying it, and press Generate again if a set is missing. And with no character set ticked at all, the tool refuses and shows “Please select at least one character set.” with the meter at “–”.

Practical tips

Frequently asked questions

Are the passwords truly random?

Yes. Passwords are generated with your browser's crypto.getRandomValues(), a cryptographically secure random number generator — much stronger than Math.random().

Are my passwords stored anywhere?

No. Everything happens locally in your browser. PDF Prem never sees, stores or sends your passwords anywhere.

What password length should I use?

Use at least 16 characters for important accounts. Longer passwords with mixed character sets are exponentially harder to crack.

Is it free?

Yes, completely free with unlimited generation — no sign-up required.

Why did a website reject my generated password?

Some sites ban particular symbols, require a specific character type, or cap the length. Generate again, or uncheck a set and increase the length to keep the strength up, until the password fits that site's rules.

Is a longer password always better than a more complex one?

Both matter, and entropy combines them: entropy = length × log2(pool size). Twenty lowercase letters give about 94 bits, while twelve characters from an 84-character pool give about 77 bits, so a long simple password can beat a short complex one.

Can I use the example password shown on this page?

No. It is printed here for illustration, so it is not secret. Always press Generate for a fresh password that only you have seen.

Is the password sent to a server when I generate it?

No. Generation runs locally in your browser using its secure random generator, and the password is never stored or sent anywhere by this tool.