By · Updated

WiFi Password Generator

Random WPA2 and WPA3 Router Keys Without Look-Alike Characters, Made in Your Browser

No ratings yet

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the WiFi Password Generator works

This WiFi password generator makes keys your router will accept. Set a length between 8 and 63 characters, the range WPA2 and WPA3 allow, and choose whether you want random characters or capitalised words with digits. The random style leaves out the letters and digits that look alike, so a key printed on the fridge or read over the phone is typed correctly first time. Generated locally, never sent anywhere.

WiFi password generator: what the router actually accepts

A WPA2 or WPA3 personal network is protected by a pre-shared key of 8 to 63 printable ASCII characters. Eight is the minimum and far too short; the router will accept it, but a captured handshake can be run through an offline cracking rig at hundreds of thousands of guesses a second, and eight lowercase letters fall in under an hour. Sixty-three is the maximum, and nobody wants to type it into a television remote. Twenty random characters, the default here, is over 110 bits and comfortably beyond any practical attack while still fitting on a card.

Two styles for two situations

Random characters gives the most strength per character and is the right choice when the key is typed once per device and then remembered by it. The alphabet drops capital I, lowercase l, digit 1, capital O and digit 0, because a guest squinting at a printed key cannot tell them apart, and that costs less than a tenth of a bit per character. Words and digits produces something like Falcon7Meadow2Quartz9, which is easier to read out loud to a visitor and to type on a phone; it carries less entropy per character, so let the generator run a little longer than the minimum.

Length Random characters Words and digits
12 70 bits about 32 bits
16 93 bits about 32 to 48 bits
20 117 bits about 48 bits
32 187 bits about 65 to 81 bits
63 367 bits about 130 bits

The words style stops at exactly the requested length, so the last word may be cut short. Each word-and-digit pair adds 16.2 bits regardless of its length.

Why WiFi keys need to be stronger than website passwords

A website can lock an account after ten wrong tries. A WiFi network cannot: anyone within range can record the four-way handshake when a device connects and take it away to attack at leisure, with no rate limit and no trace. That makes a WiFi key an offline-cracking target like a disk encryption password, and it is why the default here is twenty characters rather than the twelve that would be adequate behind a login form. WPA3 improves on this with a handshake that resists offline attack, but most home networks still run WPA2 or a mixed mode.

Changing the key

The key is set in the router's admin page under wireless security, along with the network name. Choose WPA3 or WPA2-AES if the option exists, never WEP or WPA-TKIP. Every device will need the new key, so do it at a time when reconnecting the printer and the thermostat is not a nuisance, and put guests on a separate guest network with its own key so the main one is shared as rarely as possible.

Generated locally, never sent

The key is produced in your browser by its cryptographic random generator, with no request to any server. Nothing is logged and nothing persists after you close the tab, so copy it into the router and somewhere safe before you leave the page.

FAQ

How long should a WiFi password be?

At least 16 characters if random, and 20 is a comfortable default. WPA2 allows 8 to 63, and because a captured handshake can be cracked offline with no lockout, the short end of that range is unsafe. Longer costs nothing once devices have remembered it.

Why are some letters and digits missing from the random style?

Capital I, lowercase l and the digit 1 look alike in most fonts, as do capital O and 0. A key that will be printed, photographed or read aloud should not contain them, so the alphabet leaves them out. The remaining 57 characters still give 5.8 bits each.

Is a words-and-digits key strong enough?

For a home network, yes, at 20 characters or more. Three word-and-digit pairs is about 49 bits, which takes an offline attacker years at typical WPA2 cracking speeds. If the network protects anything sensitive, use the random style or a longer words key.

Does the key have to include symbols?

No. WPA2 accepts any printable ASCII, but symbols are not required and they are the characters most often mistyped on phones, televisions and games consoles. Length and randomness are what provide the strength, so this generator uses letters and digits only.

Is the WiFi password sent anywhere?

No. It is generated in your browser using the same cryptographic random source the operating system uses, with no network request, and the page keeps working if you disconnect before you click generate.

See also: all Security & Identifiers tools, Dev Utilities, Formatters & Validators, Data & Encoding, SEO, Accessibility, AI.

Related tools