WPA Key Generator
Generate a random WPA2/WPA3 key in your browser — up to the 63-character maximum, printable ASCII with no spaces or quotes. Free, private, nothing stored.
Click to copy
A WPA key — the pre-shared key, or PSK, behind WPA-Personal, WPA2-Personal, and WPA3-Personal networks — is defined by IEEE 802.11i as a passphrase of 8 to 63 printable ASCII characters. Access points never use that passphrase directly: on WPA and WPA2 it runs through PBKDF2 with 4,096 rounds of HMAC-SHA1, salted with the network name (SSID), to derive a 256-bit key. This generator fills the field the way a network administrator would — a fully random key at the 63-character maximum by default, adjustable down to the 8-character minimum. Its symbols leave out spaces, quotes, backslashes, and backticks, the characters most likely to trip up a router form or a quoted config value. One honest caveat about length: a random 63-character key carries about 407 bits of entropy, but the network key it is hashed into has 256 bits, so strength stops growing at about 40 characters. Past that, extra length costs nothing when you paste or scan the key, but it buys no extra security. For a key guests will type by hand, the Wi-Fi password generator's 20-character default is the friendlier choice. Everything is generated in your browser with crypto.getRandomValues() — nothing is transmitted, logged, or stored.
WPA key examples
A strong WPA key is a run of random printable characters — at the 63-character default, well past the 256-bit ceiling of the network key it is hashed into. The examples below are generated in your browser on each visit and stored nowhere, so any of them can go straight into your router’s WPA2 or WPA3 settings.
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
What is a WPA key?
It is the shared secret for a WPA-Personal, WPA2-Personal, or WPA3-Personal network — the Wi-Fi password in your router’s settings, also called the pre-shared key (PSK) or network security key. The standard allows 8 to 63 printable ASCII characters, and every device joining the network uses the same key.
How long should a WPA key be?
The standard allows 8 to 63 characters. A random 20-character key (about 129 bits) is already beyond brute force; the 63-character maximum is a common admin convention for keys that are pasted or shared by QR code rather than typed. Avoid the 8-character minimum: a random 8-character key has only about 52 bits.
Is a 63-character WPA key more secure than a 40-character one?
Not meaningfully. A random 63-character key has about 407 bits of entropy, but WPA hashes every passphrase into a 256-bit key, so the effective ceiling is 256 bits — reached at about 40 random characters. Filling all 63 does no harm; it just adds no strength.
Can this generate a 64-digit hex WPA key?
No — it generates passphrases, the 8-to-63-character form every device accepts. Some devices also take the raw 256-bit key as 64 hexadecimal digits; that is what a passphrase is hashed into, with the SSID as salt, and tools such as wpa_passphrase compute it from a passphrase and network name. Most networks never need the hex form.
Which characters can a WPA key contain?
Printable ASCII, character codes 32 to 126: letters, digits, symbols, and the space. This generator uses letters, digits, and 26 common symbols, leaving out spaces, quotes, backslashes, and backticks. If an older device still balks, turn symbols off — 63 letters and digits carry about 375 bits, far above the 256-bit ceiling.
Does WPA3 make a shorter key safe?
Safer, not safe regardless. WPA3’s SAE handshake was designed to stop offline guessing from a captured exchange, but networks in WPA2/WPA3 transition mode still accept the older WPA2 handshake, and researchers have shown downgrade and side-channel attacks against early WPA3 implementations. A long random key protects you either way.
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
- 22-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
- Random PIN Generator
- 4-Digit PIN Generator
- 6-Digit PIN Generator
Written & reviewed by Andrew Ivanov, Fractional CTO. Last reviewed .