Wordpress Password Generator
Turn a password into its WordPress $P$ hash to set or reset a password in the database. No signup.
Share on Social Media:
This WordPress password generator turns a password you choose into the WordPress hash for it — a 34-character string starting with $P$ that you paste into the user_pass field of the wp_users table to set or reset a WordPress password. It is the tool to reach for when you are locked out of wp-admin, a password reset email never arrives, or you are setting up a user directly in the database. Free, no signup, no install — type a password, click Generate, copy the hash.
On this page
- How to Generate a WordPress Password Hash Step by Step
- What a WordPress Password Hash Is
- A WordPress Hash Versus a Random Password
- Who Uses a WordPress Password Generator
- Pro Tips for WordPress Passwords
- Common WordPress Password Mistakes to Avoid
- Related Tools You May Need Next
- Frequently Asked Questions
How to Generate a WordPress Password Hash Step by Step
- Choose your new password. Decide on a long, unique password first — the tool hashes exactly what you type, so a weak password in means a weak password out. A passphrase of four or more random words works well.
- Type it into the box. Type or paste the password into the box above. There are no options to set: no length slider and no character-type checkboxes.
- Click Generate. The tool returns two rows: your Original Text and the Wordpress Hash.
- Copy the hash. Use the copy button on the Wordpress Hash row — copy the hash, not your original text.
- Paste it into the database. In phpMyAdmin (or your database tool), open the
wp_userstable, edit the user, paste the hash into theuser_passfield, and save. - Log in with the plain password. Go to wp-admin and log in with the password you typed in step 1 — never with the hash.
What a WordPress Password Hash Is
WordPress never stores your password as plain text. It stores a one-way hash of it in the user_pass column of the wp_users table, and checks a login attempt by hashing what you type and comparing the two. The hash this tool produces is the portable WordPress hash format: it always starts with $P$ and is always 34 characters long.
| Part of the hash | What it is |
|---|---|
$P$ | The marker that tells WordPress this is a portable password hash |
| 1 character | The cost — how much work the hashing takes |
| 8 characters | The salt — random characters that make every hash unique |
| 22 characters | The checksum — the scrambled result of hashing your password with that salt |
| Total | 34 characters |
Because of the salt, the same password gives a different hash every time you click Generate. That is normal: WordPress accepts any of them, because the salt is stored inside the hash itself and WordPress re-uses it when it checks your login.
Worked example — a real run of the tool on the demo word hello:
| Field | Result |
|---|---|
| Original Text | hello |
| Wordpress Hash | $P$Bp7TAjyXYtw8PercwCHIBasygCRggZ0 |
Running the same word again gave a different hash ($P$BEa3wA8gRovQDl7QNLgbX5dVqSpfsn.) — same password, fresh salt, still valid. Your hash will look different again, and that is exactly as it should be.
A WordPress Hash Versus a Random Password
| WordPress password hash | Random password | |
|---|---|---|
| What it is | The scrambled, stored form of a password you chose | A new password invented for you |
| What it looks like | Always 34 characters, always starts with $P$ | Any length, any mix of characters |
| Can you log in with it? | No — log in with the plain password you typed | Yes — it is the password |
| Where it goes | Into the user_pass field of wp_users | Into a login form or a password manager |
| Same input twice | A different hash every time (salted) | A different password every time |
| Made by | This tool | The Password Generator |
A hash is one-way: you cannot turn it back into the password. That is the point — even if someone reads your database, they see only hashes, not passwords. It also means if you forget the plain password, the hash cannot recover it; you generate a fresh hash from a new password instead.
Who Uses a WordPress Password Generator
Site owners locked out of wp-admin. The password reset email never arrives, or the admin email address on the account is one you no longer control.
Developers and freelancers. Resetting a client's admin password, or creating a user directly in the database during a build or a migration.
Anyone migrating or restoring a site. Setting a known password on a copied database without going through the WordPress reset flow.
People who manage many WordPress sites. Setting a known admin password across staging copies — a different password per live site is still the safer habit.
Pro Tips for WordPress Passwords
Choose the password before you hash it. Length is the biggest factor in strength: a passphrase of four or more unrelated words beats a short jumble of symbols. The tool cannot strengthen a weak password — it only scrambles what you give it.
Use a unique password for each site. Reusing one admin password across sites means one breach opens them all.
Store the plain password in a password manager. The hash cannot be reversed, so if you lose the plain password you will have to make a new hash.
Your password is sent to the server to be hashed. The form posts your text to the server, so the hashing does not happen in your browser. If that matters for a high-security account, hash it locally instead — for example with WP-CLI: wp user update <username> --user_pass=<password>.
Keep the hash private. A hash cannot be typed into a login form, but a weak password can be cracked from its hash offline, so do not post hashes in tickets, chats, or screenshots.
After you are back in, check the admin email. A reset that works once will fail again next time if the account's email address is wrong — update it while you have access.
Common WordPress Password Mistakes to Avoid
Trying to log in with the hash. The 34-character $P$… string is not your password. Log in with the plain password you typed into the box.
Pasting your original text into user_pass. The database field needs the hash. Paste the Wordpress Hash row, not the Original Text row.
Hashing a weak password and feeling safe. password123 hashed is still password123 — the hash hides it, it does not strengthen it.
Expecting the same hash twice. Every run salts afresh, so the hash changes each time. A different hash does not mean something went wrong.
Using an MD5 or SHA-256 hash in user_pass. Those are different hash formats for other purposes. WordPress passwords belong in the $P$ format this tool produces.
Sharing the hash or the plain password in a support chat. Both stay private: the password because it opens the site, the hash because it can be attacked offline.
Related Tools You May Need Next
Password Generator — when you do not have a password in mind yet: it invents a new random one (length 3–50, your choice of character types). Hash it here afterwards if you need the WordPress form of it.
MD5 Generator — a 32-character MD5 hash of any text, for checksums and legacy uses. Not a WordPress password hash.
SHA256 Generator — a 64-character SHA-256 hash of any text. Not a WordPress password hash.
Password Strength Checker — check how strong the password you chose is before you hash it.
Word Counter — count the words in a passphrase, or check any text while you write.
Frequently Asked Questions
What does this WordPress password generator do?
It turns a password you type into its WordPress hash — a 34-character string starting with $P$ — which you paste into the user_pass field of the wp_users table to set or reset that user's password.
Does it create a random password for me?
No. You choose the password; the tool only hashes it. If you need a random password invented for you, use the Password Generator first, then hash the result here.
Why is the hash different every time I generate it?
Each run uses a fresh random salt, so the same password produces a different hash. That is normal — WordPress accepts any of them, because the salt is stored inside the hash.
How do I use the hash to reset my WordPress password?
Copy the hash, open phpMyAdmin, go to the wp_users table, edit the user, paste the hash into user_pass, and save. Then log in at wp-admin with the plain password you typed.
Can I log in with the hash itself?
No. The hash goes in the database only. At the login screen, type the plain password you chose.
What is the $P$ at the start of the hash?
It is the marker for WordPress's portable password hash format. The full hash is always 34 characters: $P$, one cost character, eight salt characters, and 22 checksum characters.
Can the hash be turned back into my password?
No. Hashing is one-way, which is why WordPress stores hashes instead of passwords. If you forget the password, generate a fresh hash from a new one.
Is my password stored anywhere?
The tool shows your text back in the Original Text row and returns the hash; nothing on the page says it is saved. Your password is sent to the server to be hashed, since the form posts to the server rather than hashing in your browser.
Can I use an MD5 hash as my WordPress password instead?
No — use the $P$ hash from this tool. MD5 and SHA-256 are different formats for other purposes.
Is this tool free?
Yes — free, with no signup and no install. Type a password, click Generate, copy the hash.