CompleteSEOTools
Home › Security & Passwords › WordPress Salts Generator

WordPress salts generator

Get a new set of the eight secret keys and salts for wp-config.php, made on your device.

About WordPress Salts Generator

WordPress uses eight secret values to sign login cookies and nonces. They go in wp-config.php as AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY and their four matching salts. This page creates a fresh set from your browser's cryptographic random generator and prints it in the exact define format WordPress expects. You can also get an .env style list. Nothing is requested from another server, so the values you copy are known only to you.

  • Setting up a new WordPress install.
  • Logging out every user after a suspected break-in.
  • Replacing the default values left by a site installer.
  • Copying a site to a new host with its own secrets.

How to use WordPress Salts Generator

1

Step 1

Pick the length and whether to include symbols.

2

Step 2

Press Generate new set if you want different values.

3

Step 3

Replace the old eight lines in wp-config.php with the copied ones.

Good to know

  • Changing the keys logs out everyone, including you, and the next login starts fresh. That is the point after a compromise.
  • Replace all eight lines at once. Mixing old and new values will not break the site but gives less protection.
  • If a value ever causes a parse error, check that your editor did not turn straight quotes into curly ones.

Common questions

Is this the same as the WordPress.org generator?

It does the same job. The values are made in your browser and are not fetched from anyone, so no third party ever sees them.

How long should each value be?

WordPress itself makes 64 characters. That is plenty, since the values are never typed by a person.

Do I need to keep these somewhere safe?

Treat them like a password. They only need to live in wp-config.php, and you can always make new ones.