X-Calculator
Utility Updated November 23, 2026

Password Generator

Generate strong random passwords with the length and character types you choose, right in your browser.

Advertisement
Advertisement

This password generator creates strong, random passwords from 4 to 64 characters using the character types you choose: uppercase letters, lowercase letters, numbers and symbols. Each password is built in your browser with a cryptographically secure random number generator, and the strength meter shows its entropy in bits and roughly how long a brute-force attack would take.

How to use the password generator

  1. Drag the Length slider. 16 characters is the default and a good minimum for important accounts.
  2. Tick the character sets to include. Every password is guaranteed to contain at least one character from each set you select, which satisfies most “must include a number and a symbol” rules.
  3. Turn on Exclude look-alikes if you will ever read or type the password by hand. It removes I, l, 1, O, 0, o and |.
  4. Turn on Generate 5 at once to get a list to choose from, then press Copy next to the one you want.

Nothing is sent over the network or stored. The passwords exist only on this page until you copy them, and a new set is generated every time you change a setting or press the button.

How password strength is measured

Strength is expressed as entropy: the number of bits an attacker must guess. For a password chosen uniformly at random, entropy is:

entropy (bits) = length × log2(pool size)
pool: A–Z 26 + a–z 26 + 0–9 10 + symbols 28 = 90 characters
16 characters × log2(90) = 16 × 6.49 = 103.9 bits

Each extra bit doubles the work for an attacker. The time estimate assumes an offline attack at 10 billion guesses per second, which is realistic for a GPU rig against a fast hash, and that the password is found halfway through the search on average.

Advertisement
Advertisement

Password strength by length and character set

Password Pool Entropy Average time to crack*
6-digit PIN 10 19.9 bits Instant
8 lowercase letters 26 37.6 bits About 10 seconds
8 mixed letters + digits 62 47.6 bits About 3 hours
8 characters, all 4 types 90 51.9 bits About 2.5 days
12 characters, all 4 types 90 77.9 bits About 450,000 years
16 characters, all 4 types 90 103.9 bits About 29 trillion years
20 characters, all 4 types 90 129.8 bits Far beyond any attack

*Offline guessing at 1010 guesses per second, half the keyspace on average. Online attacks are far slower because sites limit login attempts, but leaked password databases are attacked offline.

How the generator stays random

  • Secure source. Characters come from crypto.getRandomValues(), the browser’s cryptographically secure generator, never from Math.random().
  • No modulo bias. Random 32-bit values that would make some characters slightly more likely are rejected and redrawn, so every character in the pool has exactly the same chance.
  • Required sets without patterns. One character from each selected set is placed first, the rest are drawn from the full pool, and the whole string is shuffled with a Fisher–Yates shuffle so the required characters do not sit in predictable positions.

Tips for using strong passwords

  • Length beats complexity. Adding 4 characters to a 12-character password adds about 26 bits; switching from letters and digits to all four types adds only about 6.
  • Use a unique password for every account. Most account takeovers reuse passwords leaked from another site. A password manager makes unique 16–20 character passwords practical.
  • Turn on multi-factor authentication for email, banking and cloud accounts. CISA recommends passwords of at least 16 characters, random and unique.
  • Current NIST guidance (SP 800-63B) favors long passwords and screening against breached lists over forced periodic changes and composition rules.
  • Symbol restrictions. If a site rejects some symbols, untick Symbols and add 2–3 extra characters of length to keep the same strength.

Random passwords vs passphrases

A passphrase strings together random words, such as four words drawn from a 7,776-word Diceware list. Each word adds log2(7,776) = 12.9 bits, so four words give about 52 bits and six words about 78 bits, roughly the same as 8 and 12 random characters from this generator. Passphrases are easier to type and remember, which makes them a good choice for the one master password you must memorize. For everything stored in a password manager, a 16–20 character random password is stronger and costs you nothing to use.

What makes a password weak

  • Human patterns: names, dates, keyboard walks such as qwerty, and words with predictable substitutions like P@ssw0rd are tried first by cracking tools, whatever their length.
  • Reuse: a strong password stops protecting you once it leaks from any site where you used it.
  • Short length: under 12 characters, even fully random passwords fall to offline attacks within days or months.

Frequently Asked Questions

Is this password generator safe to use?

Yes. Passwords are generated locally in your browser with crypto.getRandomValues and are never sent to a server or saved. Close the page and they are gone.

How long should a password be?

Use at least 16 random characters for important accounts. With all four character types, 16 characters gives about 104 bits of entropy, far beyond the reach of brute-force attacks.

What does entropy in bits mean?

Entropy measures how many guesses an attacker needs: n bits means 2^n possible passwords. Every added bit doubles the search, so 80 bits is about a million times harder to crack than 60 bits.

Why exclude look-alike characters?

Characters such as I, l, 1, O and 0 are easy to confuse when reading a password aloud or typing it from paper. Excluding them shrinks the pool from 90 to 83 characters, a loss of about 0.1 bit per character.

Does every password include a number and a symbol?

Yes. When a character type is selected, each generated password contains at least one character from it, and the positions are shuffled randomly.

Advertisement
Advertisement
Related

You may also need

All Utility Calculators
Advertisement