Password Generator

Length—
Strength—
Entropy (bits)—

How Password Generator is calculated: Entropy = length × log2(charset size). Default: 16 chars from 62 symbols (a–z, A–Z, 0–9) = 95.3 bits, rated Very strong.

What is a password generator?

A password generator makes a random password for you — a string of letters, numbers, and symbols that no one can guess and no dictionary can crack. The default on this page is 16 characters from 62 symbols, with an entropy of 95.3 bits and a rating of Very strong. Press the button and a new one appears. Press it again and a different one appears. Once you have one, a password strength checker scores it on length and character variety, so you can see whether the generated password is actually strong.

The need is simple: humans are bad at passwords. We reuse them, we pick names and dates, and we make them short so we can remember them. Attackers know all of this. A password like password123 falls in under a second; a random 16-character password takes centuries. The generator removes the human from the process, which is exactly the point.

This generator covers the choices people actually make: length from 4 to 64 characters, with toggles for uppercase letters, numbers, and symbols. It shows the length, a strength rating, and the entropy in bits, so you can see how strong the password is instead of guessing. Everything runs in your browser — the password never leaves your device, nothing is stored, and there is no account to create.

How a password generator works

The generator builds a character set from your toggles. Lowercase letters are always included — 26 symbols. Uppercase adds 26 more, numbers add 10, and symbols add 26. With uppercase and numbers on and symbols off, the set is 62 symbols. With everything on, it is 88 symbols. Then it picks one character at random for each position, using Math.random, until the password is as long as you asked.

Strength is measured in entropy — bits. Entropy is length times log2 of the character set size. The default password is 16 characters from 62 symbols, and log2 of 62 is about 5.95, so 16 × 5.95 = 95.3 bits. That is the number shown on this page. The rating follows the entropy: under 40 bits is Weak, under 60 is Fair, under 80 is Strong, and 80 or more is Very strong.

To see the scale, take an 8-character password from lowercase letters only. The set is 26 symbols, log2 of 26 is about 4.70, and 8 × 4.70 = 37.6 bits — Weak. A 12-character password with everything on uses 88 symbols, log2 of 88 is about 6.46, and 12 × 6.46 = 77.5 bits — Strong. Every extra character multiplies the guesses an attacker needs, which is why length matters more than anything else.

Length, character sets, and what actually makes a password strong

Length is the single biggest factor. Each extra character multiplies the number of possible passwords by the size of the character set. Going from 8 to 16 characters does not double the strength — it squares it. An 8-character password from 62 symbols has about 47.6 bits of entropy; a 16-character one has 95.3 bits. That is the difference between crackable and practically uncrackable.

Character sets matter, but less than people think. Adding uppercase letters to a lowercase password helps, and adding symbols helps more — but adding four characters helps most of all. A 20-character password of lowercase letters only has 94.0 bits of entropy, which beats a 12-character password with every symbol turned on at 77.5 bits. If you remember one rule, remember this: longer beats fancier.

The real enemy is reuse. A strong password used on ten sites is weaker than ten medium passwords used on one site each, because one breach exposes all ten. A random number generator makes the same point for numbers — randomness is the defence — and a base64 encoder decoder can carry a generated password safely inside a config file or a URL when you need to move it.

A worked example: three passwords, three strengths

Here is a real comparison, using the exact numbers this page shows. First, the default: 16 characters, uppercase and numbers on, symbols off. The character set is 62 symbols, the entropy is 95.3 bits, and the rating is Very strong. That is the password to use for your email, your bank, and anything else that matters.

Second, a short password: 8 characters, lowercase only, everything else off. The character set is 26 symbols, the entropy is 37.6 bits, and the rating is Weak. A modern computer can try that many combinations in hours. Never use an 8-character lowercase password for anything that matters.

Third, a middle option: 12 characters, everything on. The character set is 88 symbols, the entropy is 77.5 bits, and the rating is Strong. It is good enough for most accounts, and it is easier to type than a 16-character one. If you have to type a password by hand, 12 characters with everything on is a fair trade; if a password manager types it for you, use 16 or more.

Who uses a password generator, and why

Everyone with an account is the honest answer. Email, banking, social media, work systems — each one needs its own password, and no one can invent twenty strong passwords by hand. A generator makes one per account in a second, and a password manager remembers them all.

Developers are the second group. Test accounts, API keys, database passwords, and temporary credentials all need random strings, and a generator makes them on demand. A JSON formatter reads the config files those credentials often live in, and a random number generator makes the same kind of randomness for test data.

The generator on this page handles all of these uses — pick a length, pick the character sets, press the button, copy the result — which covers ninety percent of what anyone needs. The one thing it does not do is remember the password for you. That is a password manager's job, and you should use one.

Families are a fourth group, and they use the generator for shared accounts — a streaming service, a Wi-Fi password, a child's school portal. One strong password per account, stored in the family password manager, beats a single easy password that everyone knows and no one can change. The generator makes the password; the manager shares it safely.

Password generator vs other security tools

A password generator makes secrets; other tools check them or move them. The same developer-tools family on this site does both jobs. A random number generator makes random numbers the same way this tool makes random characters — the maths is identical, only the alphabet changes. A base64 encoder decoder moves a secret safely, but it does not protect it: base64 is encoding, not encryption.

The difference matters for workflow. Generate first, then store: make the password here, save it in a password manager, and only then use it. Never generate a password and leave it in a chat message, an email, or a note on your desk. The generator makes the secret; the manager keeps it.

A password manager is the tool this page does not replace. It remembers twenty passwords so you do not have to, and it fills them in for you. And a percentage calculator answers an unrelated but common question: if 95.3 bits is Very strong, what percentage of accounts still use a weak password? Studies say most of them — which is why this tool exists.

Common password mistakes

The most common mistake is reuse. One password for every site means one breach opens every account. Use a different password for every site that matters, and let a password manager remember them. Reuse is the single biggest password risk in the world.

Second: short passwords. Eight characters was fine in 2005; it is not fine now. Computers got faster, and 8-character passwords fall in hours. Use 16 characters for anything important, and 12 as a minimum everywhere else.

Third: patterns. Passwords like qwerty123, letmein2024, and your-name-123 are in every attacker's dictionary. Randomness is the defence, and humans are bad at randomness — which is why you should let the generator pick, not your brain.

Fourth: sharing passwords in plain text. Sending a password by chat, email, or a sticky note defeats the purpose. If you must share one, use your password manager's sharing feature, or a one-time secret link. Never paste a password into a document that other people can read.

How to use this password generator

Using this password generator is simple. Set the length — 16 is the default, and it is a good choice. Tick uppercase, numbers, and symbols as you like; uppercase and numbers are on by default. Press Generate Password, and a new password appears in the box below, with its length, strength rating, and entropy shown above it.

To copy the result, use the Copy button next to the output box. To make another one, press the button again — every press makes a fresh password. If the password looks hard to type, shorten it to 12 characters, or turn symbols off; if it looks too simple, lengthen it to 20.

Everything runs in your browser. No sign-up, no account, no data sent anywhere — the password never leaves your device, and it is never stored. It works offline once the page has loaded, so you can use it anywhere. Try it with something real before you need it: generate a password for your email, save it in a password manager, and use it. Once you have used it twice, you will never invent a password by hand again.

Frequently Asked Questions

Use 16 characters for anything important — email, banking, and work accounts. A 16-character password from 62 symbols has 95.3 bits of entropy, which is rated Very strong. Use 12 characters as a minimum everywhere else. Length matters more than symbols: a 20-character lowercase password beats a 12-character one with every symbol on.

Entropy measures how hard a password is to guess, in bits. It is the length times log2 of the character set size. A 16-character password from 62 symbols has 95.3 bits; an 8-character lowercase password has 37.6 bits. Under 40 bits is Weak, under 60 is Fair, under 80 is Strong, and 80 or more is Very strong.

Yes, if you can. Symbols grow the character set from 62 to 88 symbols, which adds about 0.5 bits per character. But length helps more: adding four characters beats adding symbols. If a site rejects symbols, use a longer password instead — 20 lowercase characters is stronger than 12 with symbols.

Yes. Everything runs in your browser — the password is never uploaded, stored, or sent anywhere. It exists only on your screen until you copy it. You can use it offline once the page has loaded. Save it in a password manager, not in a note or a chat message.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.