Skip to content
My Blog

Search WPDesignVault

Try "image", "json", "schema" or "contrast". Use arrow keys to move through results.

WordPress Tools

WordPress Salt & Security Key Generator

Generate a fresh set of WordPress security keys and salts in your browser, ready to paste into wp-config.php.

Runs in your browser. Nothing you enter is uploaded. Last updated

Generated in your browser with crypto.getRandomValues(). Nothing is sent to a server.

How to use

  1. The keys are generated as soon as the page loads; click Regenerate for a new set.
  2. Copy the eight lines and replace the matching lines in wp-config.php.
  3. Save the file. Everyone, including you, will be logged out and must sign in again.

What this tool does

It creates eight 64-character random strings with the Web Crypto API, avoiding quote and backslash characters so they can be pasted straight into PHP.

Why it matters

Keys and salts secure login cookies. Replacing them is a quick way to sign out every session, for example after a suspected compromise.

Frequently asked questions

How often should I change salts?

There is no fixed schedule. Change them after a security incident, after removing someone's access, or when you hand over a site.

wp-config.php Generator

Generate a complete wp-config.php with database details, newly generated security keys, debug settings and useful constants. Keys are…

SHA-256 Hash Generator

Generate SHA-256, SHA-512, SHA-384 and SHA-1 hashes of text or files to verify downloads and compare data. Everything…

301 Redirect Generator

Paste old and new URLs to generate exact-match redirect rules for Apache (.htaccess), Nginx or a WordPress snippet.…

WordPress .htaccess Generator

Generate a WordPress .htaccess file with the default rewrite rules and optional HTTPS and www redirects, file protection,…

Custom Post Type Generator

Generate clean, translation-ready register_post_type() code for WordPress with labels, supports, archives and block editor settings.