Skip to content
ZeroServer.tools

WordPress Salts Generator

Generate cryptographically random WordPress authentication keys and salts as PHP constants — ready to paste into wp-config.php.

Click Generate Salts to create 8 unique authentication keys. All randomness comes from crypto.getRandomValues — no server calls.

What are WordPress salts and why rotate them?

WordPress uses 8 secret keys and salts to strengthen session tokens and stored password hashes. They are defined as PHP constants in wp-config.php. Rotating them after a security incident or breach immediately invalidates all active sessions, forcing every user to log back in. This tool uses crypto.getRandomValues for cryptographically strong entropy — the same as the official api.wordpress.org/secret-key/ service but with no network request.

Private & free — this tool runs entirely in your browser.

Recommended: Cloudways Managed cloud hosting on AWS, GCP & DO — from $11/mo.affiliate

Related Generators tools