Skip to main content

Password Generator and Strength Checker

Create a random password with your browser's cryptographic random number generator, or test how strong a password is. Both run locally, and nothing you type or generate is sent anywhere.

Generate a password

Character types

Generated with your browser's cryptographic random number generator. The password never leaves this page.

Check a password's strength

Checked locally. Do not test a password you still use anywhere; use it only for ideas about how strength works.

What this tool does

The page has two parts. The generator builds a random password from the character types you choose, at a length from 8 to 64. The strength checker takes a password you type and estimates how hard it would be to guess. Both run entirely in your browser, and neither makes a network request.

Passwords matter for disposable email too: a throwaway inbox is only as private as the account protecting anything you link to it, and a strong, unique password per site limits the damage if one service leaks.

How the generator is random

Randomness comes from the browser's cryptographic generator, crypto.getRandomValues, which is designed for security uses and is far stronger than the ordinary Math.random function. Choosing a character from a pool also needs care: taking a random number modulo the pool size slightly favours some characters. The generator avoids that with rejection sampling, discarding the few random values that would cause bias, so every character in the pool is equally likely.

It guarantees at least one character from each type you selected, then fills the rest from the whole pool and shuffles the result with the same secure generator. You can remove look alike characters such as I, l, 1, O and 0 if you need to read the password aloud or type it from paper.

How length and variety help

Every extra character multiplies the number of possibilities, so length is the strongest lever. A twenty character password drawn from the full set of letters, digits and symbols has far more possibilities than any human chosen password of the same length. Variety helps too, but only because it enlarges the pool; a long password of lowercase letters can beat a short one with symbols. For a password you must remember, a long phrase of several unrelated words is often better than a short jumble of symbols, and a password manager lets you use a random one for every site.

How the strength checker estimates

The checker estimates entropy in bits from the length and the kinds of characters used, then lowers the estimate when it sees patterns that attackers try first: very common passwords, repeated characters, keyboard and alphabet sequences, few distinct characters, and the shape of a word followed by digits. The bands, weak, fair, good and strong, are rules of thumb on that estimate.

An estimate is not a guarantee. Real attacks use leaked password lists and personal information, which this tool does not have. A password that scores strong here can still be unsafe if it has appeared in a breach, if you reuse it, or if you have been phished. Do not test a password you still use anywhere; the checker is for understanding how strength works.

Privacy

Nothing is sent anywhere. The generator and checker run in your browser, the password is held only in the page while it is open, and we do not log it or include it in analytics. You can confirm this in your browser's network panel, which shows no request when you generate or check. Clear the field and close the tab when you are done on a shared computer.

Good habits

Use a different password for every account, store them in a password manager, turn on two factor authentication where it is offered, and change a password promptly if a service reports a breach. Prefer long passwords over complex short ones, and never share a password or a verification code by email or chat.

Frequently asked questions

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

Here the password is generated by your browser and never sent anywhere. Still, copy it straight into a password manager and avoid generating on a computer you do not trust.

What is rejection sampling?

A technique that discards random values which would make some characters slightly more likely than others, so every character in the pool is chosen with equal probability.

Why does a long all-lowercase password score well?

Length multiplies possibilities faster than adding a character type does. Predictable patterns reduce the estimate, though, so random text is better than a phrase with obvious structure.

Does the strength checker guarantee safety?

No. It cannot know whether a password has leaked, been reused or been guessed from personal details. Treat the estimate as a rough guide.

Related guides and tools