Skip to content
Utilities Updated September 2026

Secure Password Generator

Generate strong random passwords in your browser, with a strength estimate.

Enter your figures

Everything is worked out inside your browser. Nothing you type is uploaded, saved or shared.

Length matters more than complexity. Sixteen characters or more is a sensible minimum for anything that matters.
Worth keeping on for anything you may need to type from a screen or read aloud.

What this calculator does

The passwords people invent share the same weaknesses: a name, a date, a place, a predictable substitution of a three for an e, and a number on the end. Attackers know all of these patterns, and automated tools work through them far faster than most people assume.

This generator produces genuinely random passwords in your browser. Set the length, choose which character types to include, and it generates several at once along with an estimate of how much randomness each one actually contains.

Nothing is transmitted. The generation uses the cryptographic random number source built into your browser, the results never leave your device, and they disappear when you close the page. Copy what you need into a password manager and close the tab.

How the calculation works

The generator builds a character pool from the types you select, then draws characters from it using the browser cryptographic random number generator rather than an ordinary random function. That distinction matters: ordinary random functions are predictable enough to be unsuitable for anything security related.

It guarantees at least one character from each selected pool, then fills the remaining length from the combined pool and shuffles the result, so the guaranteed characters are not always at the start.

Strength is measured in bits of entropy, which is the length multiplied by the base two logarithm of the pool size. Entropy describes how many guesses an attacker would need on average. Every additional bit doubles that number, which is why adding length is so much more effective than adding complexity: each extra character adds roughly six bits, while switching on symbols adds only a few bits in total.

The formula

Entropy in bits = Password length × log2(Size of the character pool)

Possible combinations = Pool size raised to the power of the length

Rough guide: under 45 bits is weak · 60 bits is reasonable · 75 bits is strong · 100 bits or more is very strong

A worked example

An eight character password using upper and lower case letters and digits draws from a pool of 62 characters. That is about 48 bits of entropy, which sounds substantial and is not. Modern hardware works through that range quickly when a password database has been stolen.

Extend the same character set to sixteen characters and entropy roughly doubles to 95 bits. Nothing about the character types changed. Only the length did, and the number of possible combinations went from around 200 trillion to a figure with 28 digits.

This is why the single most useful thing you can do to a password is make it longer. Adding symbols to an eight character password takes it from 48 to about 52 bits. Adding eight more characters takes it to 95.

Things worth knowing

Length beats complexity

Each extra character adds roughly six bits of entropy. Switching on symbols adds about four bits in total. If you have to choose one, choose a longer password every time.

Never reuse a password

When any one service is breached, attackers try the same combination everywhere else. Reuse is what turns a single breach at an unimportant site into a compromise of your email and bank. A password manager exists precisely to make this practical.

Turn on two factor authentication

A second factor protects an account even when the password is known. Enable it on email and banking first, since email is the reset path for everything else. An authenticator app is stronger than SMS codes, which can be intercepted through SIM swap fraud.

Use a password manager

Nobody can remember twenty long random passwords, and the attempt is what drives reuse. A manager stores them, fills them in and means you only have to remember one strong passphrase.

Common mistakes to avoid

  • Using personal information such as names, dates of birth or phone numbers.
  • Substituting characters predictably, such as an at sign for an a, which attack tools account for.
  • Reusing the same password across multiple services.
  • Choosing short passwords with many symbols instead of long ones.
  • Storing passwords in a plain text file, a note app or a browser without a master password.
  • Sharing a password over chat or email, where it remains readable indefinitely.

Frequently asked questions

How long should a password be?
At least sixteen characters for anything that matters, and longer for email and banking. Length contributes far more to strength than character variety does.
Are these passwords safe to use?
They are generated locally using your browser cryptographic random generator and never leave your device. As with any tool, generate on a device you trust, and move the password straight into a password manager.
Are passphrases better than random passwords?
A passphrase of several genuinely random words can be both strong and memorable, and is a good choice for the one password you have to remember, such as a password manager master password. For everything else, random strings stored in a manager are simpler and stronger.
How often should I change passwords?
Current security guidance advises against routine forced changes, because they push people towards weak predictable variations. Change a password immediately if a service is breached or you suspect compromise, and otherwise focus on length, uniqueness and two factor authentication.
What is entropy?
A measure of how unpredictable a password is, expressed in bits. Each additional bit doubles the number of guesses needed on average. Sixty bits is reasonable for most purposes, and above seventy five is strong.

Related calculators

Further reading on this site

If this calculator was useful, these sections of the site go deeper into the same subject.

A note on accuracy. This calculator is provided for general information and planning. It performs arithmetic on the figures you supply and does not constitute financial, legal, tax, medical or academic advice. Rates, rules, fees and institutional policies change, and your own circumstances may differ from the assumptions used here. Verify anything important with the relevant institution or a qualified professional before acting on it. See our full disclaimer for more.