Free tool · no sign-up

WordPress salt key generator

Eight fresh security keys for wp-config.php, made on your own computer with the browser's secure random generator. They never touch our server.


      
    

How to use them

  1. Download a copy of wp-config.php first.
  2. Find the eight lines starting define( 'AUTH_KEY' down to define( 'NONCE_SALT'.
  3. Replace all eight with the block above, and save.

Everyone gets logged out, you included, because their login cookies were made with the old keys. That's the point after a hack: anyone holding a stolen login cookie is thrown out too.

When to change them

  • After a hack or a suspected break-in, along with every admin password.
  • When someone who had server access leaves, such as an old developer.
  • If the keys are still the placeholder text put your unique phrase here.

With WP-CLI, wp config shuffle-salts does the same thing in one command.

What they're for

WordPress uses these keys to sign login cookies and security tokens (nonces). They aren't passwords you'll ever type, and you don't need to keep a copy anywhere else.

Hacked and need more than new keys? Hacked Site Cleanup, $249.

FAQ

Questions people ask

What are WordPress salts?

Eight random keys in wp-config.php that WordPress uses to sign login cookies and security tokens. Nobody types them; they just need to be long, random and secret.

Is it safe to use an online salt generator?

This one makes the keys on your own computer with the browser's secure random generator, so they never reach any server. WordPress.org's own generator at api.wordpress.org is also fine.

Will changing the salts break my site?

No. Everyone who's logged in is logged out and has to log in again, including you. Nothing else changes.

How often should I change them?

There's no need for a schedule. Change them after a hack or suspected break-in, when someone with server access leaves, or if they're still the placeholder text.

Can I change them without editing files?

With WP-CLI, wp config shuffle-salts replaces all eight in one command. Some security plugins can also change them for you.

Rather have someone else do it?

A Quick Fix is $69: one problem, about an hour of work, with a backup first and a note of what I changed.

Fixed price before I start · backup first · no fix, no fee · or run the free scan