Format Code Now
/
Hash & generatePassword Generator Next: ULID Generator ›

Password Generator

HG-08

Pick a length and the character sets you want, then click Generate. Passwords are made in your browser from secure random numbers and are not stored or sent anywhere.

Runs in your browser. Nothing is uploaded.

Not used. Press Generate.

Passwords

How to use it

  1. Choose a length from 8 to 128 characters. Longer is stronger.
  2. Tick the sets to use: a-z, A-Z, 0-9 and Symbols. Tick Skip look-alikes if you will read or type the password by hand.
  3. Choose how many passwords you want, then click Generate. Click again for a new set.
  4. Copy the one you want straight away. Nothing is saved, and it is gone when you close the page.

How the passwords are made

Each character is picked with crypto.getRandomValues, the secure random source built into your browser. To keep every character equally likely, the tool uses rejection sampling: random numbers that would favor some characters are thrown away and drawn again, instead of being squeezed in with a remainder. When you select several sets, every set appears at least once, and any password missing one is discarded and redrawn, so the rest stay equally likely.

Character sets and look-alikes

The symbols used are !@#$%^&*()-_=+[]{}:;,.?/~. Quotes, spaces and the backslash are left out because they often break forms and shell commands. Skip look-alikes removes I, l, 1, |, O, 0 and o, which are easy to confuse in many fonts. If a site only accepts some symbols, untick Symbols and use a longer password, since length adds more strength than any one symbol does. Select at least one set or the tool shows an error.

What the tool does not do

It does not store, log or send what it makes, and it does not check a password against lists of leaked passwords or against a particular site's rules. Strength comes from length and from using a different password for every account, so keep the results in a password manager. For 16 characters drawn from all four sets, the number of possibilities is roughly 100 bits of entropy.

Error messages and what to do

MessageWhat it meansFix
Select at least one character set: lowercase, uppercase, digits or symbols.All four boxes (a-z, A-Z, 0-9, Symbols) are unticked, so there are no characters to choose from.Tick at least one of the four sets and generate again.

Questions people ask

How do I generate a strong password online?

Choose a length, tick the character sets you want and click Generate. For most accounts 16 characters or more from all four sets is a good start. Copy the password into a password manager right away. It is made in your browser and is never stored or sent.

Is it safe to generate a password in a web page?

Here the password is created in your browser with secure random numbers and is not sent to a server, so the site never sees it. You still trust the page's code and your own device, so copy it into a password manager and close the tab afterward.

How long should a password be?

Length matters more than symbols. For accounts you protect with a password manager, 16 to 20 random characters is a common choice. Use 24 or more for important accounts or keys, and match any maximum length a site sets. Random passwords need no memorizing, since the manager remembers them.

Why does the tool avoid modulo bias?

Mapping a random number to a character with a simple remainder makes some characters slightly more likely when the set size does not divide the range evenly. The tool redraws numbers from the uneven tail instead, so every character in the set has exactly the same chance.

What does Skip look-alikes remove?

It removes I (capital i), l (lowercase L), 1 (one), the vertical bar, O (capital o), 0 (zero) and o (lowercase o). These are easy to mix up when you read a password aloud or retype it. Use it for passwords people type by hand, and leave it off for the strongest result.

Can I make a numbers-only PIN?

Yes. Untick a-z, A-Z and Symbols and leave 0-9 ticked, and you get digits only, at least 8 long. A numeric PIN has far fewer possibilities than a full password, so it is only safe where the system locks out after a few wrong tries.

About this tool

Each character is picked with crypto.getRandomValues, using rejection sampling so no character is more likely than another. When you pick several character sets, every set appears at least once. Passwords are made in your browser and are never stored, logged or sent anywhere; they disappear when you close the page, so copy the one you want. The symbols used are !@#$%^&*()-_=+[]{}:;,.?/~. Strength comes from length and the size of the character set; this tool does not check a password against breach lists or a site's own rules.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.