Password Generator Guide: How to Create a Strong Password

Written and verified by Muhammad Haroon, founder of Numblox · Entropy in plain English · Length vs complexity · How long cracking takes · Safe habits · Updated 23 November 2026

A strong password is not a clever password — it is a long, random one. Strength comes from a measurable quantity called entropy: how many possible passwords an attacker would have to try, which depends on just two things, the length and the size of the character set it is drawn from. This guide explains the maths (it is simpler than it looks), shows verified figures for common choices, and covers the habits that matter as much as strength itself — because the strongest password in the world fails if it is reused on ten sites.

Try it yourself: use the free Password Generator on Numblox — choose a length, toggle uppercase, lowercase, digits and symbols, and generate a password with its strength rating. It is generated locally in your browser with cryptographic randomness; nothing is stored or sent anywhere. Copy it straight into your password manager.

What this generator does

The generator builds a password of your chosen length (4–64 characters) from the character types you select: lowercase letters, uppercase letters, digits and symbols. It uses crypto.getRandomValues — the browser's cryptographic random source, the same one described in the Random Number Generator Guide — and it guarantees at least one character from every type you selected, so a password with all four types ticked can never come out as letters only. It then rates the result by entropy: under 40 bits is Weak, 40–59 Fair, 60–79 Strong, and 80 or more Excellent.

The entropy formula

Entropy (bits) = Length × log2(Character set size)

Character types selectedSet sizeBits per character
Lowercase only26about 4.70
Lowercase + digits36about 5.17
Lowercase + uppercase + digits62about 5.95
All four types (incl. 21 symbols)83about 6.38

Each bit doubles the number of possibilities an attacker must search. That is the entire game: a password's total possibilities are 2 raised to its entropy, so small increases in bits mean enormous increases in work. Every figure below was calculated from this formula (the calculator rounds the bits to a whole number when it rates a password) and cross-checked by direct computation.

Worked examples — what the labels really mean

To make bits concrete, the last column shows how long a brute-force attack trying 10 billion guesses per second — a serious, well-equipped attacker against a poorly protected password database — would take to try every possibility. On average, an attacker finds the password halfway through, so halve the times for the expected case.

Password styleEntropyLabelTime to try every possibility
8 characters, lowercase onlyabout 38 bitsWeakabout 27 seconds
10 characters, lowercase + digitsabout 52 bitsFairabout 5 days
12 characters, letters + digitsabout 71 bitsStrongabout 7,500 years
12 characters, all four typesabout 77 bitsStrongabout 480,000 years
16 characters, all four typesabout 102 bitsExcellentabout 16 trillion years

Read the first and last rows together. The 8-letter password offers about 275 billion combinations (238) — a big number that modern hardware eats in seconds. The 16-character password offers about 5 × 1030 combinations (8316) — at 10 billion guesses a second, working through them all would take roughly a thousand times the current age of the universe. Nothing about the second password is cleverer; it is simply longer and drawn from a bigger set. Note also the honest caveat: these times assume the password was chosen uniformly at random, like this generator chooses. Human-chosen passwords cluster into patterns attackers try first, which is why "let a generator choose" is the real advice.

Length beats complexity

Compare two rows from the full calculation: a 20-character password using lowercase letters only has about 94 bits — Excellent, stronger than the 12-character password using all four types (77 bits). Adding four characters at the full set size gains about 25 bits; adding a character type gains far less per character. Practically: if a site allows long passwords, length is your cheapest strength. This is also why passphrases — several random words strung together — work so well: they are long, and length is what the formula rewards. Symbols and mixed case still help (they enlarge the set, and the generator guarantees each selected type appears), but they are the garnish, not the meal.

Strength is only half the story

Unique beats strong. A 102-bit password reused on ten sites is only as safe as the worst-protected of those sites: when one leaks its database, attackers try the leaked passwords on every other service ("credential stuffing"), and entropy does not help you — they are not guessing, they have the answer. Generate a different password for every account. A password manager makes that possible: you remember one strong master password (make it long — a passphrase is ideal), and the manager remembers the rest. Turn on two-factor authentication for important accounts, so a stolen password alone is not enough. And be clear about what brute-force numbers assume: they apply to attackers who have stolen a password database and can guess offline at full speed. Attacks through a website's login page are far slower and usually locked out after a few tries — which is why leaked-database resistance, and never reusing, is where your effort belongs.

Common questions

How long should my passwords be? Let the generator's labels guide you: aim for Strong (60+ bits) at minimum for ordinary accounts and Excellent (80+ bits) for email, banking and your password manager itself. In practice that means about 12 characters with all types, or 16 to be comfortably future-proof — the worked examples show 16 characters from the full set reaching about 102 bits.

Is a password generated in a web page safe? This one is generated entirely in your browser, using cryptographic randomness, and is never transmitted or stored — the page works the same with your connection unplugged. As with any generator, the remaining risk is your own device: generate on a machine you trust, and put the result straight into your password manager rather than a notes file.

Do I really need symbols? They help — moving from letters+digits (62) to the full set (83) lifts a 12-character password from 71 to 77 bits on the calculator's scale — but length helps more. If a site rejects symbols, compensate with extra characters: the table shows even lowercase-only reaches Excellent at 20 characters.

How often should I change my passwords? Current guidance from security bodies such as NIST is: do not change them on a schedule — change them when there is a reason (a breach, a shared password, a suspicious login). Forced regular changes tend to produce weaker, patterned passwords. A unique, high-entropy password that is never reused does not expire.

Check your own numbers

Open the Numblox Password Generator, slide the length up and down with different character types selected, and watch the strength label follow the entropy maths in this guide — then generate the passwords your accounts actually deserve. Curious about the randomness underneath? The Random Number Generator Guide explains crypto-grade randomness and what fair odds look like.

Note: This article provides general information about password strength. Brute-force times are illustrations based on a stated guessing rate and uniformly random passwords; real-world account security also depends on the service's own protections, which is why unique passwords, a password manager and two-factor authentication matter as much as entropy.

Related: Password Generator · Random Number Generator · All free calculators