Password Generator

INTERNET · CRYPTOGRAPHIC CSPRNG

Configure length & character sets

Generated on this device
Enter a whole number between 6 and 64.

PREPARING CSPRNG

Generating a random password locally in your browser.

HOW IT WORKS

Unbiased CSPRNG & password entropy

Every character is drawn locally using the browser's Web Cryptography API (crypto.getRandomValues) with rejection sampling so no character is favored over another.

01

Build the Active Character Pool

Selected sets combine into a pool of size N: uppercase (26), lowercase (26), digits (10), and symbols (28), optionally excluding 8 ambiguous characters (i, I, l, 1, L, o, 0, O).

Full Pool N = 26 + 26 + 10 + 28 = 90 characters
02

Eliminate Modulo Bias via Rejection Sampling

For pool size N, values at or above ⌊2³² ÷ N⌋ × N are discarded and redrawn so every index in [0, N) has equal probability.

Index = uint32 % N (when uint32 < limit)
03

Measure Entropy in Bits

Password entropy H measures unpredictability on a logarithmic scale using length L and pool size N.

H = L × log₂(N) bits

PASSWORD SECURITY GUIDE

Length vs. complexity, entropy, and safe handling

Why password length beats clever substitutions

Increasing Password Length adds multiplicative combinations far faster than swapping a letter for a symbol. Moving from 12 to 16 characters on a 90-character pool increases entropy from ~77.9 bits to ~103.9 bits—making brute-force guessing exponentially harder.

When to exclude ambiguous characters

Enable Exclude ambiguous characters when you need to read or type a password manually (such as on a TV, router, or recovery screen) where 1, l, and I or 0 and O look alike. For passwords stored in a password manager, keeping the full pool maximizes entropy.

Related internet & utility tools

Working on network configuration alongside account security? Try our IP Subnet Calculator. For everyday calculations, browse the GPA Calculator and Date Calculator.

Frequently asked questions

Are generated passwords sent to or stored on a server?

No. Passwords are generated 100% locally in your browser using crypto.getRandomValues() and are never logged or transmitted.

Why use rejection sampling instead of simple modulo (%)?

Because 2³² is not evenly divisible by most pool sizes (like 90), simple modulo gives slightly higher probability to lower-indexed characters. Rejection sampling eliminates that bias completely.

How many bits of entropy is considered strong?

At least 60 bits is generally strong for online accounts with rate limiting, while 80+ bits (such as 14–16 random characters from all four sets) provides Very Strong protection against offline cracking.

Should I reuse a generated password across multiple sites?

Never. Generate a unique password for each account and store them in a reputable password manager so a breach on one site cannot compromise others.

Passwords are generated locally using your browser's CSPRNG and are never sent to a server.