Cryptographically random
Uses your browser's secure random generator, not a predictable pseudo-random one.
Generate fresh wp-config.php authentication keys and salts locally.
Loading tool…
WordPress uses eight keys and salts in wp-config.php to secure login cookies. Replace them after a security incident, when a developer leaves, or when you set up a new environment. These values are generated in your browser with crypto.getRandomValues and never leave your device.
Uses your browser's secure random generator, not a predictable pseudo-random one.
Copy define() lines for wp-config.php or KEY=value lines for an .env file.
Keys are generated and shown only in your browser.
4 quick steps. Going deeper? Read “There has been a critical error on this website”: a step-by-step WordPress fix.
Select Generate to create eight new 64-character values.
Copy the define() block, or the .env format for Bedrock-style setups.
Replace the existing AUTH_KEY…NONCE_SALT lines in wp-config.php.
Save the file. Every logged-in user, including you, will need to log in again.
Typical situations where this tool saves time.
Short answers about privacy, limits and how the tool works.
Yes. The tool uses the Web Crypto API's cryptographically secure random generator, and the keys are never transmitted. You can even use it offline once the page has loaded.
All existing login cookies become invalid, so everyone is logged out. Content, passwords and settings are not affected.
The official API generates keys on WordPress.org's server. This tool generates them locally, which some security policies require.
I build custom calculators, admin utilities and integrations for WordPress, Laravel and Next.js teams.
Generating…
Generated with your browser’s cryptographic random number generator. Nothing is sent or stored.