Skip to content
SEOLOG

WordPress Security Keys (Salt) Generator

This free WordPress salt generator creates the eight random security keys for your wp-config.php file and gives them as lines ready to paste. The keys are generated only in your browser.

Security keys

Keys are generated in your browser and sent nowhere. Changing the keys logs out every session on the site; everyone signs in again.

WordPress Security Keys (Salt) 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 security keys (salt) generator do?

WordPress security keys are eight random values kept in the wp-config.php file: AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY and their four counterparts ending in SALT. WordPress signs the session cookies of logged-in users with these keys; someone who does not know them cannot forge a valid session cookie.

This WordPress salt generator creates eight keys of 64 characters each and gives them in a form ready to replace the eight define lines in wp-config.php; there is also an .env format for setups that use an environment file. Changing the keys logs out every session on the site, and everyone signs in again. That is why renewing the salt keys is one of the steps to take when cleaning up a compromised site or when wp-config.php has fallen into someone else's hands.

The keys are created with your browser's cryptographic random number generator; they are not sent to our servers or stored. This online secret key generator is free and unlimited; generate new keys as often as you like.

How to use the WordPress security keys (salt) generator

  1. Choose the format. Press "wp-config.php" for a standard install or ".env" for setups that use an environment file.
  2. Generate the keys. Eight keys are ready when the page opens. Press "Generate new keys" if you want a fresh set.
  3. Copy them. "Copy keys" puts all eight lines on your clipboard; "Download" saves them as a file instead.
  4. Paste them into wp-config.php. Back up the file first. Delete the eight define lines that start with AUTH_KEY and end with NONCE_SALT, and paste the copied lines in their place.
  5. Save and sign in again. As soon as you save the file, every session on the site is logged out; sign in again with your username and password.

Frequently asked questions

If your answer is not here, write to us.

Is the WordPress salt generator free?

Yes. The SEOLOG WordPress security keys generator is completely free and asks for no account or email. There is no usage limit; generate keys for as many sites as you like.

What happens to my site when I change the keys?

Every session on the site is logged out; everyone, including you, signs in again. Your posts, settings, users and passwords do not change. If members or customers are logged in at that moment, bear in mind that they will have to sign in again too.

When should I change the security keys?

Renew the keys if you suspect someone has got into your site, if wp-config.php or a site backup has reached someone else, or when you stop working with a person who had access. If your wp-config.php still shows "put your unique phrase here" in place of the keys, replace it with real keys straight away.

Where in wp-config.php do I paste the keys?

wp-config.php is in the root folder of your site; open it with your hosting file manager or over FTP. The file contains eight consecutive lines starting with define( 'AUTH_KEY', ... ). Delete those eight lines, paste the eight lines copied from the tool in their place and leave the rest of the file untouched.

Do I need to keep a note of the keys?

No. Only WordPress uses the keys; you never type them anywhere, so there is no need to memorise them or save them in a password manager. It is enough that they sit in wp-config.php. What matters is that you do not share that file or its backups with anyone.

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