Password & secret generator

Generate a strong random password or API secret. Values come from crypto.getRandomValues and are never stored or sent anywhere.

How strength is measured

Entropy is the number of bits an attacker must guess: length × log2(character-set size). Every extra bit doubles the work.

bits = length × log₂(pool size)

Character setPoolBits per charLength for 80 bits
Digits only103.3225
Lowercase264.7018
Upper + lower + digits625.9514
All 4 sets (here)866.4313
Hex secret16420 chars (10 bytes)

Secrets for apps

For session keys, JWT HMAC secrets and API tokens use at least 32 random bytes (256 bits). The hex option gives 64 characters for 32 bytes; base64url gives 43.

Frequently asked questions

Is the generator truly random?
It uses the operating system's cryptographically secure random source through the Web Crypto API, with rejection sampling so every character is equally likely.
How long should a password be?
With a password manager, 16–20 random characters is plenty for any account. For passwords you must type, longer passphrases are easier.