22-Character Password Generator
Generate a random 22-character password in your browser — about 142 bits, and past 128-bit strength even without symbols. Free, private, nothing stored.
Click to copy
Twenty-two characters is the length where a password clears the 128-bit line however you configure the character set. That line is the strength of an AES-128 key, the point cryptographers treat as beyond any conceivable brute-force attack. With the full mix of uppercase letters, lowercase letters, numbers, and symbols, 20 random characters already reach it — but many secrets cannot contain symbols: connection strings, environment files, URLs, and legacy forms that reject punctuation. With letters and digits alone, 22 is the shortest length that gets there, at about 131 bits; 21 falls just short. It is no coincidence that 22 characters is also how long a 128-bit key becomes in unpadded Base64. With symbols switched on, a random 22-character password carries about 142 bits of entropy, and an offline attacker testing 10 billion guesses per second would need hundreds of trillions of times the age of the universe. That makes 22 a good fixed default for API secrets, service-account passwords, and shared credentials — one length that is safe under either setting. Generation happens entirely in your browser via crypto.getRandomValues(); nothing is transmitted, logged, or stored. Generate, copy with one click, and keep it in your password manager or secrets vault.
22-character password examples
A strong 22-character password is twenty-two random characters — about 142 bits of entropy with symbols, about 131 without, past the 128-bit line either way. The examples below are generated by your browser’s cryptographic generator on each visit and stored nowhere, so any of them is a real, usable secret rather than an illustration.
These examples were generated in your browser just now — they are not stored, not shown to anyone else, and safe to use. Never use an example password printed in an article or screenshot: anything published is already in attackers’ wordlists.
Frequently Asked Questions
Why 22 characters?
It is the shortest length that clears 128 bits of entropy even without symbols: 22 random letters and digits carry about 131 bits, while 21 fall just short at about 125. With the full character set, 22 characters reach about 142 bits. One length, safe under either setting.
How long would a 22-character password take to crack?
At about 142 bits, an offline attacker testing 10 billion guesses per second would need around 8.8 × 10²⁴ years on average — hundreds of trillions of times the age of the universe. Brute force is not a meaningful threat; attacks go after the service, the transport, or the user instead.
What does 128-bit strength mean for a password?
It means guessing the password is as hard as brute-forcing an AES-128 key: 2¹²⁸ possibilities, a number no amount of hardware can work through. A random password crosses that line at 20 characters with symbols, or at 22 with letters and numbers only.
Is 22 characters good for API keys and service accounts?
Yes. Machine secrets are pasted, never typed, so length costs nothing — and they often end up in places where symbols cause escaping trouble. Switch symbols off and 22 characters still clears 128 bits, which is why it makes a good fixed default for generated secrets.
Is 22 characters better than 20?
With symbols, both clear 128 bits (about 129 versus 142). The difference shows up when symbols are off: 20 alphanumeric characters give about 119 bits, 22 give about 131. If you might ever need the letters-and-numbers option, 22 is the safer default.
Will sites accept a 22-character password?
Almost all will — most modern services allow at least 64 characters, and NIST SP 800-63B tells systems to permit at least 64. If a login fails after you set one, the system may be truncating it: log out and back in to check, and shorten only as far as the system forces you to.
More generators
- 8-Character Password Generator
- 10-Character Password Generator
- 12-Character Password Generator
- 14-Character Password Generator
- 15-Character Password Generator
- 16-Character Password Generator
- 18-Character Password Generator
- 20-Character Password Generator
- 24-Character Password Generator
- 30-Character Password Generator
- 32-Character Password Generator
- 64-Character Password Generator
- Password Generator (No Special Characters)
- Alphanumeric Password Generator
- Easy-to-Read Password Generator
- Wi-Fi Password Generator
- WPA Key Generator
- Random PIN Generator
- 4-Digit PIN Generator
- 6-Digit PIN Generator
Written & reviewed by Andrew Ivanov, Fractional CTO. Last reviewed .