WordPress Password Hash
Inspect WordPress password-hash formats
How WordPress stores passwords
WordPress never stores your actual password. It stores a hash — a one-way transformation — and verifies logins by hashing what you type and comparing. Since WordPress 6.8, new hashes use bcrypt; before that, the default was the phpass portable hash (an MD5-based stretching scheme). Old formats stay valid so existing users can log in, and are silently upgraded to the current format the next time they log in.
| Format | Looks like | Algorithm | Status |
|---|---|---|---|
| $2y$ (or $2a$, $2b$) | 60 chars: $2y$13$ + 22-char salt + 31-char hash | bcrypt (adaptive, slow by design) | Current default (WP 6.8+) |
| $P$ | 34 chars: $P$ + cost char + salt (9) + hash (23) | phpass portable hash — MD5 repeated 2^cost times | Legacy default (pre-6.8), still accepted |
| 32 hex characters | e.g. 5d41402abc4b2a76b9719d911017c592 | plain MD5 (unsalted, one pass) | NOT a valid current WP hash |
Common misconception: a plain MD5 hash is not a valid modern WordPress password hash. Very old WordPress versions (pre-2.5) stored unsalted MD5, and such hashes may still be accepted on login — but WordPress immediately rehashes the password to phpass/bcrypt afterwards. If you paste an MD5 into wp_users.user_pass, you're creating a legacy-format entry, not the secure format current WordPress produces. Never confuse "WordPress once used MD5" with "MD5 is the WordPress hash."
Inspection happens entirely in your browser — the hash is never sent anywhere. (And remember: hashes can't be "decrypted" back into passwords anyway.)
About this tool
This free WordPress Password Hash Generator creates hashes in the exact format WordPress stores in its wp_users table, so you can update a password directly in the database when the normal 'reset password' flow is not an option — locked-out admin accounts, migrated sites, staging copies with unknown credentials, or broken mail servers. Choose a hash type, enter the password, and paste the result straight into the user_pass column using phpMyAdmin or any database tool. WordPress has used several hashing formats across its history, and this tool generates the ones you will actually meet in a modern database. The framework behind them is the Portable PHP hashing implementation (phpass), which hashes the password many times with a random salt and marks the result with the recognizable $P$ prefix. Newer WordPress versions use PHP's native bcrypt ($2y$ prefix) or Argon2id, both of which are deliberately slow algorithms designed so that even powerful GPUs cannot guess passwords quickly. Everything runs locally in your browser. The password you type is never uploaded, logged or stored on any server — the hashing is performed entirely by client-side JavaScript. That matters more here than on most tools, because the input is by definition a credential: you can hash real passwords for your own database updates while keeping them completely on your device. A note on scope: this generator is for legitimate access recovery and development work on sites you own or administer. Hashes produced here are standard WordPress format, so they work exactly like the ones WordPress itself creates — and like WordPress, the tool never shows you an existing password, because WordPress does not store passwords in any reversible form. It stores only these one-way hashes, and logging in means hashing the entered password and comparing.
Frequently asked questions
What is a WordPress password hash?+
It is the one-way encoded string WordPress stores in the user_pass column of the wp_users table instead of the actual password. When someone logs in, WordPress hashes the password they typed and compares it against this stored value — the real password itself is never saved anywhere. The hashes look like $P$B9x0fJ8... or $2y$10$... strings of 60+ characters, and the prefix identifies the algorithm: $P$ for phpass, $2y$ for bcrypt, $argon2id$ for Argon2.
How do I reset a WordPress password directly in the database?+
Generate a hash for the new password with this tool, copy it, then open your database in phpMyAdmin (or any SQL tool), find the wp_users table, locate your user, and paste the hash into the user_pass column — making sure the field is long enough to hold all 60+ characters. Save, and log in with the new password. No plugin, email, or dashboard access is needed, which is exactly why this method works when you are locked out.
Which hash type should I choose?+
For a modern WordPress installation, bcrypt ($2y$) or Argon2id are what current PHP and WordPress prefer, and either will authenticate correctly. The classic phpass ($P$) portable hash is the most compatible choice across older WordPress versions. In practice: if you are not sure which your site uses, phpass is the safe universal option — WordPress accepts and re-hashes any of these formats transparently on the next successful login.
Can I decrypt a WordPress password hash to see the password?+
No — and this is worth understanding clearly. WordPress hashes are one-way functions: there is no decryption, no hidden reverse, and no tool that can reveal the original password from the hash. The only path from hash back to password is guessing: trying candidates and comparing hashes. That is why 'recovering' an old password from the database is not possible, and why setting a new password with this generator is the correct approach when you do not know the current one.
Is it safe to hash my real password with this tool?+
Yes, in the sense that matters here: the password never leaves your device. All hashing runs locally in your browser via client-side JavaScript — nothing is transmitted, logged or stored, and you can go offline after loading the page and the tool keeps working. The hash itself is safe to handle, since it is exactly what your database already stores. As with any online tool, the deeper safety rule still applies: use passwords that are unique per site, so even a fully revealed credential cannot hurt anything else.
Why does the same password generate a different hash every time?+
Because every hash includes a fresh random salt — and that is a security feature, not a bug. Two users with identical passwords get completely different stored hashes, so anyone stealing the database cannot tell which accounts share a password. WordPress verifies a login by reading the salt embedded in the stored hash, re-hashing the entered password with it, and checking that the results match. It also means you cannot compare two hashes to find duplicate passwords.
Can I use this tool on WordPress multisite or with plugins?+
The hash format is the same across single sites, multisite networks and most membership or security plugins, because they all authenticate through WordPress's core password functions (wp_hash_password and wp_check_password). A hash generated here will validate on any of them. The rare exceptions are plugins that replace the password system entirely with their own algorithm — for those, follow the plugin's own documentation rather than the standard user_pass workflow.