%3C/text%3E%3C/svg%3E">
💻
💻 Tech & IT

Random Password Generator (crypto-secure)

Results update as you type.

Your numbers

Understanding the random password generator — concept and principle

This tool creates a random password on your own device using the browser's cryptographically secure random number generator, and reports its entropy in bits. Unlike a password you invent, a generated one has a strength that can be calculated exactly, which makes it ideal for accounts stored in a password manager, Wi-Fi keys and API secrets.

Character set and entropy of a generated password24 capitals, 25 lowercase letters, 8 digits and 13 symbols make 70 characters; 20 draws would give 20 × log₂ 70 = 122.59 bits, and requiring every kind leaves 122.43 bits.20 draws from a bag of 70 charactersA–Z24no I, Oa–z25no l2–98no 0, 1!@#…13symbols= 70kindsw%?tKmFrSfMhitxK4R?_each of the 20 characters: log₂ 70 = 6.13 bitsFair draw (rejection sampling)random 32-bit number, values ≥ 4,294,967,250(the last 46) are thrown away and redrawn122.43 bits (all 4 kinds required)20 × 6.13 = 122.59 if any string counted
Look-alike characters are left out, and every valid password is equally likely.

How it is calculated

The principle

Entropy counts how many equally likely passwords the generator could have produced. With 70 symbols and 20 positions there are 70^20 possibilities. That is only true if every character is equally likely: taking a raw random number modulo 70 would slightly favour some characters, because 2^32 is not a multiple of 70. Rejection sampling removes that bias, so each character carries the full log₂ 70 ≈ 6.13 bits.

Worked example

  1. Inputs: length 20, symbols included.
  2. Set size: 57 + 13 = 70; bits per character = log₂ 70 = 6.129283.
  3. 20 × 6.129283 = 122.5856603 bits counts every string, but about 10.4% miss a class and are never produced, so entropy = 122.4267914 bits.
  4. A sample output is w%?tKmFrSfMhitxK4R?_. Your password will be different every time; that is the point.
  5. Without symbols the set has 57 characters and the same length gives about 116.6 bits.

How to read the result

Above about 80 bits a random password is out of reach of offline brute force even against fast hashes; 128 bits matches the strength of modern encryption keys. If a site rejects symbols, switch them off and add a character or two.

Common mistakes

Keep in mind: The entropy figure assumes the browser's random generator is working correctly and the device is not compromised. Strength also depends on the site storing passwords with a proper slow hash.

Frequently asked questions

What length should a random password be?

For accounts kept in a password manager, 16 to 20 characters from this set gives roughly 95 to 120 bits, more than enough for most uses.

Is the password sent or stored anywhere?

No. It is generated locally and disappears when you leave the page.

Sources: W3C Web Cryptography API, Crypto.getRandomValues() · NIST SP 800-90A Rev. 1, Recommendation for Random Number Generation Using Deterministic Random Bit Generators

Checked 8 Nov 2026. Standard formulas and RFC/IEEE definitions, computed locally in your browser — nothing you type is sent anywhere.

💻 All tech & IT tools →🌍 Calculators by country →