WordPress Tools Embed Tool
WordPress Salt Key Generator
Generate all eight secure wp-config.php keys and salts in your browser, as PHP, .env or JSON.
WordPress Salt Key Generator
Create the eight authentication keys and salts WordPress needs, using your browser's cryptographic random generator.
Stays localEverything runs in your own browser. Nothing you type is sent to a server or stored.
Found a Bug or Missing a Feature?
Report any problems or suggest new features you want. You can write in English, Urdu, Hindi, or any language! Our AI will analyze your feedback and upgrade the tool.
About This Tool
Generate all eight secure wp-config.php keys and salts in your browser, as PHP, .env or JSON.
WordPress uses eight secret values — four keys and four salts — to encrypt the cookies that keep you logged in. If they are weak, old, or copied from a tutorial, anyone who learns them can forge login cookies. This generator makes all eight in your browser using the cryptographic random number generator your device already has.
How to use it
- Pick the format you need: PHP
define()lines for wp-config.php, an .env file for Bedrock-style setups, or JSON. - Choose a key length. 64 characters is the WordPress default; go longer if you like.
- Press Generate new keys until you are happy, then copy the result.
- Open wp-config.php, find the existing block of eight
definelines and replace it with the new block.
What changes when you replace them
Every logged-in user, including you, is signed out the moment the new values go live, because their existing cookies no longer validate. That is exactly what you want after a hack, a developer leaving the team, or a site migration — it invalidates every stolen session at once. Passwords are not affected.How it works
Each character is chosen withcrypto.getRandomValues, using rejection sampling so that no character is more likely than another. The symbol set leaves out quotes, backslashes, dollar signs and spaces, so the output can be pasted straight into a PHP single-quoted string without escaping.