Skip to content
KazamTools

Password Generator

Strong random passwords and passphrases, with the maths behind their strength.

8 to 128. Use 16 or more for anything important.

Character types

Generating…

Strength: Very strong

104.6 bits of entropy

E = L × log2(N) = 16 × log2(94) = 104.9 bits

Requiring every selected type removes the passwords that miss one, which costs 0.3 bits: 104.6 bits in total.

Average time to guess it by brute force
AttackGuesses per secondAverage time
Online loginGuessing through a website or app that limits attempts10longer than the age of the universe
Stolen database, slow hashOffline guessing against bcrypt-style password hashes10,000longer than the age of the universe
Stolen database, fast hashOffline guessing against MD5/SHA-1-style hashes on a rig of graphics cards100 billionlonger than the age of the universe

Average time = 2bits − 1 ÷ guesses per second, because an attacker finds a random password after trying half of all possibilities on average. This only holds for randomly generated passwords like these. A reused or leaked password is cracked instantly, whatever its length.

Made on your device with crypto.getRandomValues; nothing is sent or saved. Sharing Wi-Fi access? Turn the password into a Wi-Fi QR code.

How to use the Password Generator

  1. 1Choose Password for random characters or Passphrase for random words.
  2. 2Set the length or number of words, and tick the character types the site accepts.
  3. 3Check the strength meter and the crack-time table, then press Generate for a fresh one.
  4. 4Copy it into your password manager, or make up to 100 at once and download them as a text file.

How the generator picks each character

Every character comes from crypto.getRandomValues, the random number source your browser uses for encryption. It is designed to be unpredictable, unlike Math.random, which is fine for games but not for secrets.

Turning a random number into a character needs care. Say you take a random byte (0 to 255) and divide by 94, the number of characters on offer. The remainder picks the character. But 256 is not a multiple of 94, so the first 68 characters would come up slightly more often. This is called modulo bias. The generator avoids it by throwing away the few random values that would cause it and drawing again. Every allowed character is exactly as likely as every other.

When Include at least one of each selected type is on, the generator builds the whole password and checks it. If a type is missing, it throws the password away and starts again. That keeps every valid password equally likely. The shortcut many tools take, forcing one digit and one symbol into the password, makes some patterns more likely than others.

How strength is measured

Strength is shown as entropy in bits: the number of possible passwords, written as a power of two. For random characters the formula is:

E = L × log2(N)

L is the length and N is the number of characters in the pool. Each character adds log2(N) bits:

Characters allowed Pool size (N) Bits per character
Lowercase only 26 4.70
Lowercase and uppercase 52 5.70
Letters and digits 62 5.95
Letters, digits and symbols 94 6.55
All four, look-alikes removed 84 6.39

Worked example. A 16-character password from all 94 characters has 16 × 6.555 = 104.9 bits. Requiring every type removes the passwords that miss one, such as those with no digit. That trims the total to 104.6 bits, so the rule costs almost nothing at this length. The tool counts the remaining passwords exactly instead of guessing.

For passphrases, every word comes from a list of 4,096 words, and log2(4,096) = 12:

E = words × 12

Six words give 72 bits. The Add a random digit option puts one digit (10 choices) on one of the words (6 choices), adding log2(60) = 5.9 bits, for 77.9 in total. Capitalising every word adds nothing, because an attacker can simply assume it.

How long would it take to crack?

On average, someone guessing at random finds a password after trying half of all possibilities:

average time = 2^(E − 1) ÷ guesses per second

The speed depends on the attack. Guessing through a login page is slow, because good sites limit attempts. Guessing against a stolen database is much faster, and the speed depends on how the site stored the passwords. A slow hash such as bcrypt might allow about 10,000 guesses a second. A fast hash such as MD5 on a rig of graphics cards can reach around 100 billion.

Password Entropy 10,000 guesses/s 100 billion guesses/s
8 lowercase letters 37.6 bits about 4 months about 1 second
6-word passphrase 72 bits about 7.5 billion years about 750 years
16 characters, all types 104.6 bits far longer than the universe’s age about 5 trillion years

These numbers only apply to passwords made at random, like the ones here. A password you have used before, or one that leaked in a breach, is tried first and falls instantly, however long it is.

Password or passphrase?

  • Use a random password for accounts you open through a password manager. Length is free there, so 16 to 20 characters is easy.
  • Use a passphrase for the few passwords you must type or remember: your password manager, your computer login, your phone backup. Pick at least six words; seven or eight for a master password.
  • Follow the site’s rules. If a site rejects symbols, untick them and add four or five characters to make up the difference.

Tips for keeping passwords safe

  1. Never reuse a password. Store a different one for every account in a password manager.
  2. Turn on two-factor authentication wherever you can. It protects you even if a password leaks.
  3. Change a password straight away if the site reports a breach.
  4. Share a Wi-Fi password with a Wi-Fi QR code instead of reading it aloud.
  5. Need an ID rather than a secret? Use the UUID generator. To check a download has not been tampered with, compare its checksum with the hash generator.

Want to know why length matters more than symbols, and what NIST now recommends? Read how to create a strong password.

About the word list

The passphrase words come from KazamTools’s own list of 4,096 common English words, written for this tool. Every word is 3 to 9 lowercase letters, with no names, no offensive words and only one spelling of words that sound alike. The idea of building passwords from random words is called Diceware; Arnold Reinhold published it in 1995. The Electronic Frontier Foundation’s 2016 article on its own word lists is a good read if you want to learn more.

Cite this tool

Using this tool in an essay, report or article? Copy a ready-made reference. Check your teacher's or publisher's style guide for small differences.

APA
KazamTools. (2026, October 21). Password generator. Retrieved October 30, 2026, from https://kazamtools.com/generators/password-generator/
MLA
"Password Generator." KazamTools, 21 Oct. 2026, https://kazamtools.com/generators/password-generator/. Accessed 30 Oct. 2026.
Chicago
KazamTools. "Password Generator." Last modified October 21, 2026. Accessed October 30, 2026. https://kazamtools.com/generators/password-generator/.
Plain link
Password Generator (KazamTools): https://kazamtools.com/generators/password-generator/
HTML link
<a href="https://kazamtools.com/generators/password-generator/">Password generator</a> by KazamTools

Frequently asked questions

Is it safe to generate passwords on a website?

Here, yes. Passwords are created in your browser with crypto.getRandomValues, the secure random source browsers use for encryption keys. Nothing is sent to a server or stored, so nobody else ever sees them.

How long should a strong password be?

For most accounts, 16 random characters using all four character types is plenty: about 104 bits of entropy. If a site caps the length, use the longest it allows and turn on two-factor authentication.

Is a passphrase as secure as a password?

It can be. Each word from our 4,096-word list adds exactly 12 bits, so six words give 72 bits and eight words give 96 bits. Passphrases are easier to type and remember, which makes them good for a password manager’s master password.

What does “bits of entropy” mean?

It measures how many equally likely passwords the generator could have made: 60 bits means 260 possibilities. Each extra bit doubles the number of guesses an attacker needs.

Why would I exclude look-alike characters?

Characters such as I, l, 1 and |, or O, 0 and o, are easy to misread when you copy a password by hand. Excluding them makes the pool smaller, so add a couple of characters to keep the same strength.

Can I use one strong password for all my accounts?

No. When one site is breached, attackers try the leaked password on other sites. Give every account its own password and keep them in a password manager.

Guides

Was this tool helpful?