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.
Generate a complete wp-config.php with database details, newly generated security keys, debug settings and useful constants. Keys are created in your browser.
The tool writes a standard wp-config.php. The eight security keys and salts are generated with your browser’s cryptographic random number generator; nothing you type is sent anywhere.
wp-config.php connects WordPress to its database and controls important behaviour such as debugging and file editing in the dashboard. A clean, well-commented file is easier to maintain.
The page builds the file with JavaScript in your browser and makes no network requests with it. If you prefer, generate the file with placeholders and edit the password locally.
Any short prefix of letters, numbers and underscores ending in an underscore. Changing the prefix on an existing site also requires renaming the database tables.
Generate a fresh set of WordPress security keys and salts in your browser, ready to paste into wp-config.php.
Generate a WordPress .htaccess file with the default rewrite rules and optional HTTPS and www redirects, file protection,…
Generate recommended HTTP security headers for your site and get them as Apache, Nginx or WordPress PHP code.
Generate clean, translation-ready register_post_type() code for WordPress with labels, supports, archives and block editor settings.
Paste old and new URLs to generate exact-match redirect rules for Apache (.htaccess), Nginx or a WordPress snippet.…