Skip to content
SEOLOG

WordPress Password Hash Generator

This free WordPress password hash generator turns your new password into a hash WordPress accepts and prepares the SQL query to run in phpMyAdmin. It is for anyone who has lost the admin password and cannot reach the account email.

The password never leaves your browser; the hash is calculated here.

Hash format

WordPress's portable hash format. On first login WordPress converts it to its current format.

Password hash
Type the new password; the hash appears here.

Back up your database first. After logging in, changing your password once more from the WordPress dashboard is recommended.

WordPress Password Hash Generator is built by SEOLOG and offered free for you to use.

  • Completely free
  • No sign-up
  • What you enter stays in your browser

What does a WordPress password hash generator do?

WordPress does not store passwords in the database as plain text; it stores a one-way digest called a hash. If you have forgotten your admin password and cannot reach the email sent by the "Lost your password?" link either, the most direct route is to change the password in the database: you update the user_pass field in the wp_users table through phpMyAdmin with a new hash. A WordPress password hash generator turns the new password you type into the hash that goes into that field.

You can produce two formats: $P$ (phpass), which is WordPress's portable format, and plain MD5. Current WordPress accepts both and converts the hash to its own current format the first time you log in. The tool also gives you a ready UPDATE query built from your username and table prefix; paste it into phpMyAdmin and run it. Use this tool only on sites you own or are authorised to manage.

The password you type never leaves your browser; the hash is calculated here and nothing is sent to our servers. This online WordPress hash generator is free and unlimited, with no sign-up.

How to use the WordPress password hash generator

  1. Type the new password. Enter the strong password you want to use in "New password". Tick "Show password" to see what you are typing.
  2. Choose the hash format. Under "Hash format", "WordPress ($P$)" is selected by default; you can pick "MD5" instead. WordPress accepts both.
  3. Enter the username and table prefix. In "Username", write the username you log in to WordPress with. In "Table prefix", enter the $table_prefix value from your wp-config.php file; the default is wp_.
  4. Run the query. Back up your database first. Open phpMyAdmin from your hosting panel, select your site's database and paste the query from the "SQL query for phpMyAdmin" box into the SQL tab, then run it. To do it by hand, press "Copy hash", paste the hash into the user_pass field of the wp_users table and leave the function column empty.
  5. Log in and renew the password. Log in to WordPress with your new password. Then change your password once more from the WordPress dashboard.

Frequently asked questions

If your answer is not here, write to us.

Is the WordPress password hash generator free?

Yes. The SEOLOG WordPress password hash generator is completely free and asks for no account or email. There is no usage limit; generate as many hashes as you need.

I forgot my WordPress admin password and cannot access my email. What should I do?

If you can get into your hosting panel, you can change the password in the database. Generate a hash for your new password with this tool, open your site's database in phpMyAdmin and run the ready SQL query; it updates the user_pass field in the wp_users table. Then log in with the new password.

What is the difference between WordPress ($P$) and MD5, and which should I choose?

The $P$ format (phpass) digests the password with a random salt over thousands of rounds; plain MD5 is a single round with no salt, so it is far easier to crack if the database leaks. Current WordPress accepts both and converts the hash to its own current format on first login. If in doubt, stay with "WordPress ($P$)".

Can I recover my old password from the hash in the database?

No. Hashing is a one-way operation; a hash is produced from a password, but the password cannot be worked back out of the hash. This tool does not decode an existing hash either; it only creates a hash for the new password you choose. The fix for a forgotten password is to replace it, not to find it.

What should I watch out for when using this method?

Use the tool only on your own site or on sites you are authorised to manage; do not use it to get into someone else's site without permission. Back up your database before running the query and check that the username and table prefix are correct. After logging in, changing your password once more from the WordPress dashboard is recommended.

Similar free tools

All WordPress Tools

Let us look after your WordPress site

Work with our WordPress team for security, speed, updates and urgent fixes.

Our WordPress solutions
Call now