Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

WordPress Password Hash Generator & Verifier

Locked out? Generate a WordPress-compatible password hash and paste it into wp_users.user_pass to log in. Supports the WordPress 6.8+ $wp$ bcrypt scheme and legacy phpass — or verify an existing hash against a password. Everything runs in your browser.

A fresh random salt is used each time, so the hash differs on every click — that's expected.


      


    

When to use this

Use it when you can't log in to WordPress — lost admin password, broken email so the reset link never arrives, or a staging site with no mail configured — but you do have database access via phpMyAdmin, Adminer, or the MySQL CLI. Generate a hash for a new password and write it into the user's user_pass column, or paste an existing hash into Verify to check what password it holds.

WordPress 6.8+ ($wp$ bcrypt)

Since 6.8, WordPress stores passwords as $wp$2y$…. It first computes base64(HMAC-SHA384(password, "wp-sha384")) — a pre-hash that avoids bcrypt's 72-byte input limit — then bcrypts that value and adds the $wp marker. Because of the pre-hash, a generic bcrypt tool cannot verify a $wp$ hash; this tool performs the full scheme.

Legacy phpass ($P$)

WordPress 6.7 and earlier used phpass (MD5-based, 8192 iterations, $P$B prefix). Every WordPress version still verifies phpass hashes and upgrades them to bcrypt on the next successful login, so a phpass hash is the most broadly compatible choice if you're unsure of the version.

Steps

1. Type the new password, pick the format, and enter the username. 2. Copy the SQL. 3. Run it against your WordPress database. 4. Log in with the new password. WordPress accepts the hash and, for phpass, re-hashes it to its current format.

Security

Everything is computed locally in your browser — the salt comes from the Web Crypto random generator and the password is never transmitted. Treat any password you type here as one to rotate afterwards if the machine isn't fully trusted, and never paste a real production password into a browser you don't control. Related: a general bcrypt hash & verify tool, htpasswd lines, and fresh wp-config.php salts.

Related tools