How Long Should a Password Be? Length, Strength and Safe Examples

WEBTOOLZHUB · PASSWORD GUIDE

Use 16 to 20 random characters for the accounts that matter most — email, banking and your password manager itself. Our Strong Password Generator starts at 20 characters for this reason. Eight characters is the shortest the tool allows, kept for sites with tight limits — a floor, not a target. Whatever length you choose, use a different password for every account, kept in a password manager so you only remember one.
A laptop with a glowing padlock and a password field of asterisks
Length beats cleverness — the cracking-time table below shows why.

The short answer

Length is the choice that does the most work. A random password is strong because of how many passwords an attacker would have to try, and every extra character multiplies that number by the size of the pool. With every set switched on, the pool is 86, so each added character makes the password 86 times harder to brute-force. Going from 8 to 12 characters does not add half as much safety again — it multiplies the combinations by 86 four times over, about 55 million times more.

So the rule is simple. Use 20 characters for email, banking and the password manager that holds everything else — those accounts unlock all the others. Use at least 16 for anything you would hate to lose, and treat 12 as the lowest sensible length for a low-value account. Use 8 only when a site refuses anything longer — it is supported for compatibility, not recommended — and pair it with multi-factor authentication wherever offered.

Skip the arithmetic and generate one
The Strong Password Generator makes random passwords from 8 to 128 characters, starting at 20, using your browser's Web Crypto API rather than Math.random. It sends and saves nothing.

Why length beats complexity tricks

Most people meet password strength as a list of rules: add a capital, add a digit, swap a letter for a look-alike symbol. The rules were meant to force variety, but people follow them predictably. The capital goes at the front, the digit at the end — often a 1 or a year — and the swaps are the same few every time. Cracking tools know this. They try dictionary words, names, dates and the common swaps first, because that is where human-made passwords live.

A generated password has no pattern to guess. Each position is picked at random from the full pool, so the only way in is to try combinations one after another — a maths problem, where length wins. Complexity tricks change a few characters inside a guessable word; length changes the size of the whole search — a 20-character random password is the 10-character problem multiplied by itself.

Fiddly rules also produce passwords people cannot remember, and those get written on sticky notes or reused across sites. A long random password lives in a password manager, where length costs nothing.

The numbers: length against combinations

Here is the point as a table. The combinations column assumes every set is on — uppercase, lowercase, numbers and symbols — a pool of 86 in each position. The time column answers one question: at 10 billion guesses a second, an offline attack takes about this long to work through every combination. Offline means the attacker holds a stolen copy of a site's password database and guesses on their own hardware, unslowed by the website. Ten billion a second is a round figure for a well-equipped attacker against a fast-stored file; real attacks vary, so read these times as a picture of scale, not a promise.

LengthCombinations (all sets on)About how long at 10 billion guesses/sec
8 characters2.99 × 10^15About 3.5 days
12 characters1.64 × 10^23About 519,000 years
16 characters8.95 × 10^30About 28 trillion years
20 characters4.90 × 10^38About 1.6 billion trillion years

Chart of password length against combinations and cracking time at 10 billion guesses a second, for 8, 12, 16 and 20 characters

Read the 8-character row first: it is the honest warning. At 10 billion guesses a second, an offline attack runs through every combination in about 3.5 days — and finds the right one halfway through on average, in under two days. That is within a motivated attacker's reach, which is why 8 is a compatibility setting, not a recommendation.

Four more characters change everything: the 12-character row is about 55 million times larger as a search, stretching the time from days to about 519,000 years. Sixteen characters reaches about 28 trillion years, 20 about 1.6 billion trillion years. In bits of entropy, the same sizes are about 51, 77, 103 and 129 bits.

Two cautions. These times assume a password picked at random from the whole pool; human-chosen characters — a word, a name, a date with a symbol — are far weaker, because attackers try likely candidates first. And careful sites store passwords so each guess is far slower, stretching every row in your favour. Neither caution changes the ranking: length first, everything else second.

What the character sets add

Length is the big lever, but the pool matters too. Lowercase alone gives a pool of 26. Add uppercase and it is 52. Add numbers and it is 62. Add the generator's 24 symbols — !@#$%^&*()-_=+[]{}:,.?/~ — and the pool reaches 86.

This smaller table changes only the pool: letters and numbers only (62), as on sites that ban symbols, with the same stated guessing rate.

Length (letters + numbers only, pool of 62)CombinationsAbout how long at 10 billion guesses/sec
8 characters2.18 × 10^14About 6 hours
12 characters3.23 × 10^21About 10,000 years

Compare the 12-character rows. Letters and numbers alone give 3.23 × 10^21 combinations; symbols lift that to 1.64 × 10^23, about 50 times more. Worth taking whenever a site allows symbols — but four extra characters multiply the count by about 55 million. Pool-widening helps; lengthening helps far more. If a site bans symbols, add a few characters rather than worry.

Two details of the generator matter here. Every set you switch on is guaranteed to appear at least once, so an all-sets password cannot come out as 20 lowercase letters by chance. And the "exclude similar characters" option leaves out O, 0, I, l and 1 — a slightly smaller pool, but the right trade when you must read a password aloud or type it from a screen, since those five look-alikes cause most typing mistakes. For a password going straight into a manager, leave them in.

Passphrases: the other way to get length

A second route to a long secret: string random words together. A passphrase is easier to say, type and remember — the right shape for passwords you cannot avoid typing, such as your computer sign-in and your manager's master password.

The maths is the same, with the word list as the pool. Take 7,776 words (the standard Diceware list size). Four words picked at random give 7,776^4 combinations, 3.66 × 10^15 — about the same as an 8-character random password with every set on (2.99 × 10^15), and nowhere near a 12-character one (1.64 × 10^23, about 45 million times more). Five random words give 2.84 × 10^19 combinations, and six give 2.21 × 10^23, roughly level with 12 random characters. So a passphrase needs about six random words to match 12 random characters; it earns its place by being memorable, not stronger per character.

The catch is the word "random". The words must be picked by dice or a generator, not chosen by you. A song line, a film quote, your address or your pets' names are all phrases an attacker can guess — cracking tools carry lists of exactly those. Random words you have no attachment to beat a clever sentence you made up, every time.

Safe examples: copy the shape, never the text

A 20-character generated password: vR8#kzQ!w2$zX9&mK4p7 — twenty characters, all four sets present, no word hiding inside it. A six-word passphrase looks like this: lantern gossip trumpet velvet harbor cactus — ordinary words, randomly picked, unconnected.

Both are burned: they are printed on a public page, and a password anyone can read is not a password. Never use either, or any example from any website, for real. Copy the shape — length, randomness, no pattern — and let the Strong Password Generator produce the actual characters.

What actually gets accounts hacked

If long random passwords are this hard to brute-force, why do accounts still get taken over? Because attackers take cheaper routes first.

Reuse. When a site you use is breached, its email and password pairs end up in lists tried automatically against other sites. This works because so many people use one password everywhere — and it is the easiest attack to defeat: a different password per account means one breach hands over nothing that opens another site. This, more than length, is why the generator and a password manager belong together.

Phishing. A fake sign-in page does not care how long your password is; it records what you type. What helps: check the address before signing in, distrust links in messages that push you to hurry, and use multi-factor authentication so a stolen password alone is not enough.

The site's own storage. You cannot control how carefully a site stores passwords, and some store them badly. Unique passwords limit the damage to that one site.

How to store passwords

Nobody can memorise a different 20-character password for every account; that job belongs to a password manager. It stores them in an encrypted vault, fills them in, warns you about reuse, and syncs between phone and computer. Your part shrinks to one strong master password — a six-word passphrase — plus multi-factor authentication on the manager itself.

Turn on multi-factor authentication everywhere it is offered, starting with email and banking. An authenticator app beats text messages, whose codes can be redirected if your number is taken over — but any second factor is far better than none.

Avoid storage that undoes the point: passwords in a notes app or spreadsheet, passwords emailed to yourself, one password with a different number per site. Each hands every account to whoever gets that file or spots that pattern. A written backup of your master password belongs on paper at home, not in a file named "passwords" on a shared computer.

How to use the generator step by step

  1. Open the Strong Password Generator.
  2. Set the length. The tool opens at 20 and accepts 8 to 128, so match a site's stated limit if it has one.
  3. Tick the sets the site accepts. Leave "exclude similar characters" off unless you will read or type this password by hand.
  4. Select Generate password. The tool builds it in your browser with the Web Crypto API, picking uniformly from your pool, until every set you ticked appears at least once.
  5. Copy the result into your password manager and the site's password field. Nothing is sent or saved by the tool, so if you close the page first, the password is gone — generate a fresh one.
  6. Select Clear once it is safely stored, so it does not sit on your screen or clipboard.

Change any setting after generating and the old result clears itself — deliberate, so you cannot copy a password made with settings no longer on screen. Related tools on this site: the Character Counter counts characters in pasted text, and the QR Code Generator works the same free, no-signup way.

Frequently asked questions

Is an 8-character password enough?

Only when a site forces it: 2.99 × 10^15 combinations, worked through in about 3.5 days at 10 billion guesses a second. Keep it unique and back it with multi-factor authentication.

Is 12 characters enough?

For most accounts, yes — 1.64 × 10^23 combinations, about 519,000 years at 10 billion guesses a second. Prefer 16 to 20 for email, banking and your password manager: those accounts protect all the rest, and guessing hardware only gets faster.

Do symbols matter more than length?

No. Symbols widen the pool from 62 to 86, multiplying a 12-character password's combinations by about 50; four extra characters multiply them by about 55 million. Use symbols when allowed, but reach for length first.

What if a site limits my password length or bans symbols?

Use the longest length and every set allowed, keep it unique, and turn on multi-factor authentication. A 12-character letters-and-numbers password still has 3.23 × 10^21 combinations — about 10,000 years at the stated rate — so a symbol ban is a reason to add length, not a disaster.

Is it safe to use an online password generator?

This one runs entirely in your browser, uses the Web Crypto API rather than Math.random, and does not send or save anything it makes. The password exists only on your screen and clipboard until you store it. Generate on a device you trust, and clear the result once saved.

Sources and method

The counts are computed from the pool sizes: combinations = pool raised to the power of the length, with a pool of 86 when all four sets are on (26 uppercase + 26 lowercase + 10 numbers + 24 symbols) and 62 for letters and numbers only. Entropy in bits is length × log2 of the pool: 51, 77, 103 and 129 bits for 8, 12, 16 and 20 characters at the full pool. Cracking times divide the combinations by 10 billion guesses a second — a stated round assumption for an offline attack on a fast-stored database; real attacks vary, and a password is found about halfway through the search on average. Passphrase figures use a 7,776-word list, the size of the standard Diceware list: four words give 3.66 × 10^15 combinations, five give 2.84 × 10^19, six give 2.21 × 10^23. The generator details — 8 to 128 range, default of 20, Web Crypto API, uniform selection, every chosen set appearing at least once, the similar-characters option, nothing sent or saved — come from the tool itself.

Reviewed 22 November 2026. Cracking times are an illustration of scale based on the stated guessing rate, not a guarantee — use a unique password per account, store it in a password manager, and turn on multi-factor authentication.