Password Generator

Say what the password is for and get one that fits, with its strength counted from the rules that made it. It is made on this device with its secure random generator, and nothing is sent or kept.

How it works

Every character is drawn with crypto.getRandomValues, the browser's secure random source, evenly from all the characters you allow together. Draws that would favour some characters over others are thrown away and drawn again, so no character is likelier than another.

When every kind of character must appear, a password that misses one kind is discarded whole and drawn again. The common shortcut, swapping a digit in at a random place, makes those swapped-in characters likelier than the rest. Redrawing keeps every allowed password equally likely.

The strength is counted from the settings, not guessed from the string: how many passwords the rules can make, as bits. The page never looks at a password and calls it strong because it has a capital letter in it.

How to use it

  1. 1 Choose what the password is for. Website or password manager gives 20 characters of every kind. Typed by hand gives 16 lowercase letters and digits with no lookalikes, in blocks of four.
  2. 2 Read the strength line under the password. 80 bits or more holds even against an attack on a stolen copy.
  3. 3 To change the length or the kinds of character, open Length and characters. Any change there makes the rules your own.
  4. 4 Copy the password into the sign-up form or your password manager. Press New password for another one.

Good to know

  • Let a password manager keep it. A random password is only better than one you invented if you never have to remember it.
  • If a site rejects a symbol, turn Symbols off and add four characters of length. Length is worth more than variety.
  • Avoid lookalikes when you will read the password off one screen and type it on another, such as a TV or a game console.
  • Use a different password for every account. A strong password used twice is only as safe as the weaker of the two sites.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

What makes a random password strong, counted rather than guessed

A password's strength is the number of guesses an attacker needs. For a password made by a random generator, that number is exact: it is how many different passwords the generator could have produced. Twenty characters drawn from 78 possible characters gives 78 to the power 20, a number with 38 digits. Written as bits, the base 2 logarithm, that is about 125. Each extra bit doubles the guesses. This page shows that count under every password, worked out from the rules that made it, and says what it means.

The strength meters on many sign-up forms work the other way round. They look at the finished password and score it for a capital letter, a digit and a symbol. That rewards Password1!, which is in every attacker's list, and can mark down a long random string of lowercase letters, which no attacker will ever reach. The meters guess because they cannot know how a password was made. A generator does know, so it can count.

Two thresholds matter in practice. Against a website that limits login attempts, an attacker gets a few thousand tries at most, and 50 bits is far beyond that. The danger is a stolen copy of the site's password database. Then the attacker guesses offline, as fast as their hardware allows, and you need around 80 bits for the password to hold. The two presets on this page sit well above that line: about 125 bits for a password kept in a manager, and exactly 80 for one you type by hand.

The typed-by-hand preset trades variety for length. It uses lowercase letters and digits only, with the lookalikes I, l, 1, O, 0 and o taken out. That leaves 32 characters, so each one is worth exactly 5 bits, and 16 of them make 80. It shows the password in blocks of four so you can read it off one screen and enter it on a TV remote or a phone keyboard without hunting for the shift key or a symbol.

Two details keep the count honest. Each character is drawn evenly: the obvious method of taking a random byte modulo the number of characters makes the first few characters come up more often, so draws in the uneven tail are thrown away and repeated. And when the rules demand one character of each kind, a password that misses a kind is thrown away whole and drawn again, rather than patched. The bits shown are reduced by the passwords that rule makes impossible, counted exactly by inclusion and exclusion.

Everything happens in this page, with the browser's crypto.getRandomValues. Nothing is sent to a server, nothing is logged, and nothing is stored. The safest place for the result is a password manager, with a different password for every account, so that one site losing its database never opens any other.

Frequently asked questions

How long should a password be?

For an account kept in a password manager, 20 characters of every kind is about 125 bits, far past any attack. For one you type by hand, 16 lowercase letters and digits is 80 bits, which still holds against an offline attack. Under 50 bits is weak.

Is the password sent anywhere or saved?

No. It is made in this page by your browser's secure random generator. It is not sent to YappyKit or anyone else, and it is gone when you close the tab unless you copy it.

Why does the strength not change when I add a capital letter by hand?

The strength is that of the generator's rules, counted exactly, not a guess read off the password. Editing the password after it is made is not something the page can count.

Does "at least one of each kind" make the password weaker?

Slightly, because a password with no digit is no longer possible. At 20 characters the loss is well under one bit, and the count shown already takes it off. Many sign-up forms demand one of each, so it is on by default.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.