Home›Articles›How To›Generate a Strong Password
HOW TO

How to Generate a Strong Password

Learn what makes a password strong — length, character sets, uniqueness — and how to generate one instantly with a free online password generator.

Written by · Reviewed by the thecalcu.com team · Published June 26, 2026 · Last updated August 4, 2026

Free calculators used in this guide

Password GeneratorPassphrase GeneratorPIN Generator

Overview

A strong password isn't about memorable substitutions, swapping a letter for a number, capitalising the first character, tacking on an exclamation mark. Attackers know these tricks cold, and modern cracking tools apply them as some of their first rules. A genuinely strong password is long, random, and unique to one account.

This guide covers what actually makes a password strong (the math behind it), walks through the two main approaches, random character strings versus passphrases, and covers the infrastructure that makes strong, unique passwords realistic across hundreds of accounts. The Password Generator creates a secure password right now, or keep reading to understand why the practices below hold up.

What You Need

  • A password manager (essential, more on this below)
  • Access to a cryptographically secure password generator
  • 2FA (two-factor authentication) turned on for your most critical accounts

Step 1: Understand What Makes a Password Strong

Password strength gets measured in entropy, the number of possible combinations an attacker would need to try before stumbling onto your password by brute force.

Two variables drive that number. Length matters most: more characters means exponentially more combinations. Character set size matters too: more types of characters means more possibilities at every position.

The relationship comes down to Number of combinations = charset_size ^ length.

An 8-character password using only lowercase letters (26 characters) gives you 26^8, or 208 billion combinations. Powerful hardware chews through that in hours.

A 16-character password mixing uppercase, lowercase, digits, and symbols (95 characters) gives you 95^16, a number with 31 digits. Cracking that by brute force would take billions of years on any hardware anyone can conceivably build.

Here's the practical rule: length beats complexity. A 20-character lowercase-only password (26^20, or 19 septillion combinations) actually beats a 10-character password using every character type (95^10, or 59 quadrillion combinations).

That said, combining every character type with real length gets you the best of both worlds, strength plus resistance to the rule-based attacks that target predictable patterns in human-chosen passwords.

Step 2: Choose Between a Random Password and a Passphrase

Two approaches work well here.

Random character passwords pull from the full set, uppercase, lowercase, digits, symbols, to squeeze the most entropy out of every character. A 16-character random password like kR9@mQz#4Np&Wv2L carries roughly 105 bits of entropy. It's the best choice for most accounts, especially ones sitting in a password manager where you never type or memorise the thing manually.

Passphrases string together random words, something like village-marble-frozen-trumpet. Pulled from the Diceware word list (7,776 words), each word adds about 12.9 bits of entropy, so a four-word passphrase lands around 51.7 bits and a five-word one around 64.6 bits. They're faster to type on mobile, easier to remember, and a good fit for your password manager's master password (the one you actually need to memorise) or for anything you type in by hand. The Passphrase Generator builds one for you.

Either approach beats anything a human would invent on their own.

Step 3: Generate a Password

Use a cryptographically secure generator. Not a manual process, not keyboard mashing, not a pattern you come up with yourself. People are bad random number generators. Patterns creep in without anyone noticing.

For a standard strong password, aim for a minimum of 16 characters, include all four character types, and skip repeating characters where the generator allows it.

For a PIN or numeric code, the PIN Generator builds a genuinely random numeric PIN and steers clear of common patterns like 1234, 0000, or a birth year.

The Password Generator on this site runs on the browser's built-in crypto.getRandomValues() API, a cryptographically secure pseudorandom number generator (CSPRNG) that produces statistically random output. Avoid any generator that runs server-side and sends your password over a network.

One rule matters above the rest here: generate a different password for every account. Your email password should differ from your bank's, which should differ from your social media, which should differ from every other service you touch. Nothing else on this list matters as much as that one habit.

Step 4: Store It in a Password Manager

Most people reuse passwords because memorising dozens of unique 16-character strings just isn't realistic. A password manager fixes that outright, and it's probably the single change that improves password security most for an average person.

A password manager generates a strong, unique password for each new account, stores everything in an encrypted vault only you can open, auto-fills credentials in your browser and on mobile, and flags you if a stored password turns up in a known breach.

Your vault gets encrypted with your master password using strong encryption, typically AES-256. Nobody, not even the password manager company, can read what's inside. The master password is the only one you'll need to remember or type from scratch, so a five-word passphrase works well here.

Bitwarden (open source, a strong free tier), 1Password, and Dashlane are all well regarded. All three sync across devices and offer browser extensions and mobile apps.

Step 5: Enable 2FA Alongside Your Password

A strong password by itself won't cut it for your most critical accounts. Phishing, keylogger malware, and social engineering can compromise credentials no matter how strong they are. Two-factor authentication asks for a second piece of evidence, something you have rather than something you know, before a login goes through.

Ranked from strongest to weakest, hardware security keys (FIDO2/WebAuthn) are physical devices like a YubiKey or Google Titan that resist phishing outright, since the browser cryptographically verifies the site before the key ever responds. Authenticator apps generate time-based one-time codes through something like Google Authenticator, Authy, or your password manager, and hold up against SIM-swap attacks. SMS one-time codes are vulnerable to SIM-swapping but still a real step up from no 2FA at all.

Turn on 2FA everywhere it's offered, starting with your email account (top priority, since email resets every other password you own), then your password manager, your bank and investment accounts, and your main social media accounts.

Common Mistakes to Avoid

Reusing passwords is the most dangerous habit on this list, and also the most common. Billions of credentials leak in breaches every year, and reusing a password across sites means a breach at any one of them exposes your account everywhere else. No site is "safe enough" to reuse a password on.

Making slight modifications to old passwords doesn't fool anyone. Password1 becoming Password2 becoming Password! is a well-known attack pattern, and rule-based cracking tools run through every common variation of dictionary words and previously breached passwords automatically. A tweak doesn't make an old password meaningfully stronger.

Using personal information hands attackers a shortcut. Your name, your partner's name, a pet's name, a birthday, an anniversary, an address, a favourite team, these are the first things anyone guessing tries, and much of it sits in plain view on social media.

Writing passwords in plain text defeats the whole point. A sticky note, a file named "passwords.txt", a spreadsheet, none of that counts as acceptable storage. Anyone who gets into your computer, phone, or cloud storage gets every password at once. Stick to a password manager's encrypted vault instead.

Trusting browser-saved passwords without a master password leaves a gap most people don't realise is there. Most browser password stores aren't encrypted behind a user-specific master password by default, so anyone with your unlocked computer can open browser settings and see every saved password. A dedicated password manager closes that gap.

Formula & Methodology

Password entropy: Entropy (bits) = length × log₂(charset_size)

Common entropy values:

Configuration Entropy
8 chars, lowercase only 37.6 bits
12 chars, uppercase + lowercase 68.5 bits
16 chars, all ASCII printable (95 chars) 105 bits
20 chars, all ASCII printable (95 chars) 131 bits
4-word Diceware passphrase 51.7 bits
5-word Diceware passphrase 64.6 bits
6-word Diceware passphrase 77.5 bits

Security researchers generally treat 80+ bits of entropy as computationally infeasible to crack by brute force with current technology. A 16-character password drawing on the full printable ASCII set (105 bits) sits well above that line.

The Password Generator defaults to 16 characters across all four character classes, which puts most generated passwords in the 100+ bit range, plenty for ordinary accounts of any kind.

Frequently Asked Questions

How long should a strong password be?

16 characters is the minimum most security guidance recommends for online accounts in 2026. Length is the single biggest factor in password strength, since every added character multiplies the number of possible combinations. A 16-character password from a 95-character ASCII set has 95^16 possible combinations, which takes billions of years to crack by brute force with current hardware. Push to 20+ characters for high-value accounts like email, banking, and your password manager vault.

What characters should a strong password include?

Pull from all four character classes: uppercase letters (A to Z, 26 characters), lowercase letters (a to z, 26 characters), digits (0 to 9, 10 characters), and symbols (roughly 33 commonly available ones, like !@#$%^&*()_+-=[]{}|;:,.<>?). Using all four from a standard keyboard gives you a character set of about 95 characters, which pushes entropy per character higher and makes pattern-based attacks much less effective than they'd be against a single character class.

What is password entropy and how is it calculated?

Password entropy measures how unpredictable a password is, in bits. The formula is entropy (bits) = log2(charset_size ^ password_length), which simplifies to length times log2(charset_size). A 16-character password from a 95-character set works out to 16 × log2(95) = 16 × 6.57 = 105 bits of entropy. Security researchers generally treat anything above 80 bits as effectively uncrackable by brute force with current technology, so 105 bits leaves a wide margin.

What is a passphrase and is it as secure as a random password?

A passphrase strings together random words, something like 'correct horse battery staple', and uses that as a password. A four-word passphrase built from the Diceware word list (7,776 words) carries log2(7776^4) = 51.7 bits of entropy, solid but lower than a 16-character random password's 105 bits. Passphrases are much easier to remember, though, which makes them the practical pick for credentials you type regularly, like your password manager's master password. Five random words gets you to roughly 64.6 bits.

Can I reuse a strong password across different sites?

Reuse is the single most dangerous password habit, no matter how strong the password itself is. If one site suffers a breach and your password leaks, even in hashed form, attackers will try that same password everywhere else, a technique called credential stuffing. Data breaches expose hundreds of millions of credentials every year, so reusing any password carries real statistical risk. Every account needs its own password, and that's only realistic with a password manager doing the remembering.

What is a password manager and why do I need one?

A password manager is an encrypted app that generates, stores, and auto-fills a unique password for every site you use. It's really the only workable answer to needing hundreds of unique, strong passwords, since nobody can memorise a 16-character random string for each account they own. Your credential vault gets encrypted with a master password only you know, and most managers add biometric login for convenience on top. Bitwarden (open source, solid free tier), 1Password, and Dashlane are the leading options.

Is a randomly generated password better than one I make up myself?

It usually is, by a wide margin. Human-made passwords fall into predictable patterns almost every time: a capital letter up front, a number or exclamation mark at the end, real words from the user's own language, or personal details like a name or birth year worked in. Attackers exploit exactly these patterns with rule-based cracking that tears through human-chosen passwords far faster than truly random ones. A cryptographically secure generator strips out that predictability entirely.

What makes a password weak?

A handful of things show up over and over: length under 12 characters, relying on just one or two character classes, dictionary words or names in any language, personal details like birthdays or pet names, keyboard patterns like qwerty or 123456, or a password that's just a tweak of one used before (Password1 becomes Password2). The ten most common passwords worldwide are used by tens of millions of accounts and get cracked instantly by any cracking tool available.

How does two-factor authentication relate to password strength?

Two-factor authentication (2FA) adds a second check, usually a time-based code from an app like Google Authenticator or a hardware key like a YubiKey, that an attacker needs on top of your password. Even a weak password gets harder to exploit once 2FA is on, and pairing 2FA with a genuinely strong password holds up well against both credential stuffing and phishing. For anything critical, email, banking, your password manager, treat strong password plus 2FA as the floor, not the ceiling.

How often should I change my passwords?

NIST (the National Institute of Standards and Technology) now recommends against forced regular rotation unless you suspect a breach. Mandatory frequent changes just push people toward small, predictable tweaks, adding a number, swapping one letter, which weaken security rather than help it. Change a password right away instead when the service reports a breach, you suspect your account got compromised, you shared the password with someone, or you typed it into a device you don't trust.

Are SMS-based one-time codes a good form of 2FA?

SMS-based 2FA beats no 2FA by a wide margin, but it's the weakest form on offer. SIM-swapping attacks, where someone convinces your mobile carrier to move your number onto their SIM, can intercept those codes. Authenticator apps generate codes locally with no network transmission involved and hold up against SIM-swap attacks. Hardware security keys (FIDO2/WebAuthn) sit at the top of the list and resist phishing outright.

What should I do if my password appears in a data breach?

Change it immediately, both on the affected site and anywhere else you used the same or a similar password. Have I Been Pwned (haveibeenpwned.com) will tell you which of your email addresses turn up in known breach datasets. If the breached site stored passwords in plain text or with weak hashing (MD5, unsalted SHA1), assume attackers already have your exact password and update every account that shared it. Turn on 2FA for the affected site once you've reset the password.

Related Articles

GUIDE

API Security Guide — Keys, Auth & Best Practices

HOW TO

How to Decode a JWT Token

COMPARISON

MD5 vs SHA-256 vs bcrypt — Hashing Algorithm Comparison

GUIDE

Security & Identity Validators: Passwords, Barcodes & Crypto Addresses

About the author