Password Generator: Strong Random Passwords

Create random passwords with your browser's cryptographic generator. Pick letters, numbers and symbols; by default all four groups are mixed and look-alikes such as 0 and O are left out.

The output will appear here.
Advertisement icyabmod — get a website for your business, design it on a live demo

How Password Generator: Strong Random Passwords works

Create random passwords with your browser's cryptographic generator. Pick letters, numbers and symbols; by default all four groups are mixed and look-alikes such as 0 and O are left out.

Input Password rules
Output Strong password
Works done 4,708

How to use it

This password generator creates random passwords that are practically impossible to guess. Choose any length from 8 to 128 characters, with 16 as the default, and decide which character types to use: upper-case letters, lower-case letters, digits and symbols are all switched on at first, and every type you keep appears at least once. The randomness comes from your browser's cryptographic generator, crypto.getRandomValues, and the password is created on your device, so it is never sent to our server.

How to use the password generator

  1. Set Length to a value between 8 and 128 with the box or the slider; 16 to 20 suits most accounts.
  2. Under Include, tick the character types you want and enter How many passwords to make, up to 20 at once; the strength line below updates as you change the settings.
  3. Press Run tool or hit Ctrl + Enter.
  4. If a site rejects a character type, usually symbols, untick it and run the tool again.
  5. Click Copy output and paste the password straight into your password manager or the sign-up form.

Password strength in plain numbers

Strength is about how many possibilities an attacker must try, usually expressed as bits of entropy; every extra bit doubles the work. With the default settings this tool draws from a pool of 65 characters: 24 upper-case letters, 25 lower-case letters, 8 digits and 8 symbols. Each random character therefore adds about 6 bits, so a 16-character password sits in a search space of roughly 96 bits. Switching a type off shrinks the pool: with look-alikes excluded, digits alone leave 8 characters worth about 3 bits each. The strength line under the options does this arithmetic for your own settings.

The table uses the default settings and assumes a bad case: a leaked database where passwords were stored with a fast hash, attacked offline at one trillion guesses per second. Well-run services use deliberately slow hashing, which makes real attacks far slower than this.

LengthApproximate entropyTime to try every combination
8 characters~47 bitsAbout 2 minutes
12 characters~72 bitsAbout 110 years
16 characters~96 bitsAbout 2.5 billion years
20 characters~120 bitsMillions of times the age of the universe
32 characters~193 bitsBeyond any meaningful timescale

The rule that every selected group must appear trims the number of possible short passwords slightly, and the figures above account for that. On average an attacker would find a password after searching about half of the space.

Why length beats complexity

Widening the character set multiplies the number of possibilities, while adding length raises it to a higher power. A random 16-character password made only of lower-case letters (about 75 bits) is stronger than a random 10-character password using all four groups (about 60 bits). If a site lets you, adding characters does far more than adding symbols.

All of this only holds for truly random passwords. Human-chosen passwords such as Summer2024! tick every complexity box yet sit near the top of every attacker's guessing list, because a capital letter first and digits plus an exclamation mark last is exactly what people do when rules are forced on them.

What current NIST guidance recommends

The US National Institute of Standards and Technology publishes digital identity guidelines, SP 800-63B, that many password policies now follow. The key points:

  • Length first: the current revision requires at least 15 characters when a password is the only authentication factor, and asks systems to accept passwords of at least 64 characters.
  • No forced composition rules: requirements such as one capital letter and one symbol should not be imposed.
  • No scheduled resets: passwords should change when there is evidence of compromise, not on a fixed calendar.
  • Screen against breaches: new passwords should be checked against lists of leaked and commonly used passwords.
  • Allow paste and password managers: blocking paste only pushes people toward short, easily typed passwords.

By default this tool still puts all four groups into every password. That is for compatibility, not strength: it means the result is accepted first time by sites that still enforce composition rules. If a site refuses symbols, untick them and add a few characters instead. Length and randomness are what actually protect you.

Look-alike characters are left out

By default, generated passwords contain no 0 (zero), O, 1 (one), lower-case l or upper-case I. In many fonts these are almost impossible to tell apart, which causes errors whenever you read a password off a screen or a sheet of paper and type it on another device, such as a TV or a games console. Symbols are limited to !@#$%^&*, a set that most sites accept and that is easy to find on phone keyboards. Dropping the look-alikes costs a tiny amount of entropy per character, which one extra character more than makes up for. If you only ever paste your passwords and never type them, untick Exclude look-alikes to use the full alphabet.

Storing what you generate

Nobody is expected to memorise a random 20-character string. A password manager makes unique passwords for every account practical: it keeps them in an encrypted vault, recognizes sites, fills in the right password and asks you to remember a single master password. For that master password, a long passphrase of five or six unrelated words is both strong and memorable. Turn on two-step verification for the password manager and for your email account, since email is the reset key for almost everything else.

Reusing a password undoes all of this. When one site leaks, attackers try the same email and password pair everywhere else, a technique known as credential stuffing. The guide on strong passwords and secure identifiers goes deeper into length, randomness and storage habits.

Choosing a length

UseSuggested lengthNotes
Everyday website accounts16–20Keep them in a password manager
Email and banking20–24Add two-step verification
Wi-Fi network (WPA2/WPA3 personal)16–20The standard allows 8 to 63 characters; guests may have to type it
API keys, database and service passwords32–64Never typed by hand, so length costs nothing
Legacy systems capped at 88Only when forced; enable extra protection if possible

Privacy and how the randomness works

Passwords are generated entirely in your browser and never sent to our server; the page only increments an anonymous counter recording that the tool was used. Characters are picked with rejection sampling to avoid modulo bias: random numbers that would favour some characters over others are discarded, so every character in the pool is exactly as likely as any other. That is the key difference from simple generators built on non-cryptographic functions such as Math.random. Need unique identifiers rather than secrets? Try the UUID generator. To check a password against a site's length limit, the character counter helps. Everything on this site that deals with passwords and identifiers is collected under security tools.

Advertisement icyabmod — 7 sections × 10 designs and 10 color palettes: design your site yourself, preview ready in 48 hours

Frequently asked questions

The password is created on your device with the browser's cryptographic random number generator; it is not sent to our server or stored anywhere. Characters are chosen with equal probability, so no predictable patterns appear. The real risk is the device itself: malware on a computer can read whatever you copy. Keep your operating system and browser updated, and paste the password straight into a password manager.

For everyday accounts stored in a password manager, 16 characters is comfortably enough; for critical accounts such as email and banking, go for 20 or more. With the default settings, a fully random 16-character password from this tool offers about 96 bits of strength. Using the maximum a site allows does no harm; only passwords you must type by hand benefit from being a little shorter.

You are not; that is what a password manager is for. It keeps passwords in an encrypted vault and fills them in when you sign in. The only password you need to memorise is the master password, and for that a long phrase of five or six unrelated words works well. Never reuse the master password anywhere else, and switch on two-step verification.

Some sites cap the maximum length or only accept certain characters. Read the rule first, set the length to fit and untick any character type the site does not allow, most often symbols, then run the tool again. When you switch symbols off, adding a few characters keeps the strength where it was. If a site only allows very short passwords, be sure to enable two-step verification on that account.

A strong, unique password does not need changing on a schedule. NIST guidance also advises against forced periodic changes, because they push people into small, predictable edits. Change a password when a service announces a breach, when you notice a sign-in you do not recognize, or when you have shared the password with someone else.