Smart Unit ConvertersSmart Unit Converters

Password Generator

Generate strong random passwords with customizable length and character sets.

Select at least one option
16

?What is the Password Generator?

A password generator creates cryptographically secure random passwords using your browser's Web Crypto API — the same random-number source used by banks and encryption libraries. You can customize the length (6 to 64 characters) and choose which character sets to include: uppercase letters, lowercase letters, numbers, and special symbols. A built-in strength meter shows how resistant the generated password is to brute-force attacks. Generated passwords are never transmitted or stored; they exist only in your browser and on your clipboard once you copy them, ready to save into your password manager.

The Formula

Password = sequence of random characters drawn uniformly from the chosen sets, using crypto.getRandomValues (a cryptographically secure pseudo-random number generator).

The Web Crypto API's crypto.getRandomValues fills an array with cryptographically-strong random values — unpredictable even if past outputs are known, unlike Math.random which is seed-based and unsuitable for security. Each random value is mapped into the allowed character set. Entropy per character equals log₂(charset size); for the full 94-character printable set at 16 characters, total entropy is about 105 bits — far beyond the reach of current and foreseeable brute-force hardware.

Practical Examples

1

A 16-character mixed-set password like K3v@9Pn$bXj!7Lq2 provides ~105 bits of entropy — unbreakable with current computing power.

2

A 20-character alphanumeric (letters + digits only) like a7Nk3Rm9PqBx5WvG2LzY gives ~119 bits — extremely strong.

3

An 8-character lowercase-only password like hfjkqoda has only ~38 bits — crackable by modern GPUs in under a day.

4

Best practice is to store every generated password in a reputable password manager (Bitwarden, 1Password, iCloud Keychain) rather than memorizing or writing them down.

5

Master passwords for vaults should be memorable but long — a 5-word Diceware passphrase like 'correct horse battery staple smile' provides strong entropy and is easier to remember than a random string.

6

For websites that reject special characters, use alphanumeric-only mode with 20+ characters to maintain strong security.

Frequently Asked Questions

With all four character classes (uppercase, lowercase, digits, symbols — 94 possible characters), a 16-character password has roughly 94^16 = 3.7 × 10^31 combinations. Even an attacker with a trillion guesses per second would need more than the age of the universe to brute-force it. This is considered uncrackable by any currently known technology.