WordPress password generator

A strong password built the way WordPress's own wp_generate_password() builds one — plus the $wp$2y$ hash WordPress 6.8+ would store for it, and the SQL to set it. Everything is generated in your browser.

Character pools
Generated password
WordPress 6.8+ hash · $wp$2y$ · cost 10
SQL to set it
The SQL appears once the hash is ready.

Save the password somewhere safe before you run the SQL — the hash cannot be turned back into it. Prefer the normal reset flow or WP-CLI where you have them; the phpMyAdmin guide covers when SQL is the right tool.

How WordPress generates passwords

When WordPress suggests a password — on the profile screen, on a reset link, or for a new user — it calls wp_generate_password(). That function draws characters from up to three pools: letters and digits always, the ten "special" characters !@#$%^&*() by default, and an "extra special" pool of punctuation and a space only when asked. The options above map one-to-one onto those pools, so a password from this page is one WordPress itself could have produced. Length is the setting that matters most: every extra character multiplies the search space far more than any single extra symbol.

Randomness comes from crypto.getRandomValues with rejection sampling, so every character in the chosen pool is exactly equally likely — no modulo bias. The password is then hashed exactly as wp_hash_password() does on WordPress 6.8 and later: trimmed, HMAC-SHA-384 with the wp-sha384 key, Base64, bcrypt at cost 10, and the $wp prefix. The password hash generator does the same for a password you choose yourself.

Quick answers

How long should a WordPress password be?

WordPress's own suggestion on the profile screen is 24 characters, which is the default here. Twelve is Core's minimum default for wp_generate_password(), and anything you will store in a password manager can comfortably be 32 or longer.

Should I turn on extra special characters?

Only if every place the password will be typed accepts them. They add strength, but the space and characters such as backtick or pipe can break poorly written forms, shell commands, or config files. A longer password with the default pool is usually the better trade.

Is this password sent anywhere?

No. The password, its hash and the SQL are all created by JavaScript in this page and are never sent to WPSalt. The privacy page lists the requests the page itself does make.

Which hash should I use on WordPress 6.7 or earlier?

Those versions cannot read $wp$2y$ hashes. Copy the password and hash it with the legacy phpass generator instead, or set it through the normal WordPress reset flow, which always writes the right format for the running version.