WordPress Salt Keys Generator

Generate secure WordPress Authentication Unique Keys & Salts instantly • Improve website security • No registration required

Suggest a Feature

Have an idea that would make this tool better? We'd love to hear it.

WordPress Salt Keys Generator

Leave your email if you'd like us to contact you about your suggestion.

Report a Bug

Found an issue? Let us know and we'll investigate it.

Leave your email if you'd like us to contact you about this issue.

Results are generated automatically and may not always be accurate or complete. Please verify important information before relying on the output.

How the WordPress Salt Keys Generator Works

Generate secure WordPress salt keys in four simple steps.

1

Configure Options

Choose which authentication keys and salts to generate, along with any advanced generation settings.

2

Preview Your Keys

Review the generated authentication keys and verify they're ready to use in your WordPress configuration.

3

Copy or Download

Copy the generated constants or download them and replace the existing keys in your wp-config.php file.

How to Update Your WordPress Salt Keys

1 Generate New Keys
Use the salt key generator to copy a newly generated set of 8 security keys.
2 Access wp-config.php
Log in to your web hosting control panel (like cPanel) and open File Manager, or connect to your server using an FTP client (like FileZilla). Locate the wp-config.php file in your site's root directory.
3 Backup the File
Download or duplicate a copy of wp-config.php to your local machine before making any changes as a safety precaution.
4 Replace the Existing Keys
Open wp-config.php in an editor. Find the section containing the existing keys (lines beginning with AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, and NONCE_SALT). Select all 8 lines and paste your newly generated keys over them.
5 Save and Verify
Save the changes to wp-config.php. Navigate to your WordPress admin dashboard (/wp-admin), verify that you are prompted to log back in, and enter your credentials.

Need professional help?

I help businesses build, optimize, and secure WordPress websites.

Learn more about WordPress Support

About WordPress Salt Keys Generator

The free WordPress Salt Keys Generator creates secure Authentication Unique Keys and Salts for your wp-config.php file. These cryptographic values help protect user sessions, cookies, and authentication data against unauthorized access.

  • Generate all eight WordPress authentication keys instantly
  • Create strong cryptographically secure random values
  • Improve WordPress login and cookie security
  • Replace compromised or outdated salt keys
  • Compatible with every WordPress version
  • Preview generated keys before using them
  • Copy or download the generated constants instantly
  • No registration required and completely free to use

Examples

Generate All WordPress Keys
define('AUTH_KEY', 'generated-key');
define('SECURE_AUTH_KEY', 'generated-key');
define('LOGGED_IN_KEY', 'generated-key');
define('NONCE_KEY', 'generated-key');
Generate All WordPress Salts
define('AUTH_SALT', 'generated-salt');
define('SECURE_AUTH_SALT', 'generated-salt');
define('LOGGED_IN_SALT', 'generated-salt');
define('NONCE_SALT', 'generated-salt');
Complete Authentication Block
define('AUTH_KEY', 'generated-key');
define('SECURE_AUTH_KEY', 'generated-key');
define('LOGGED_IN_KEY', 'generated-key');
define('NONCE_KEY', 'generated-key');

define('AUTH_SALT', 'generated-salt');
define('SECURE_AUTH_SALT', 'generated-salt');
define('LOGGED_IN_SALT', 'generated-salt');
define('NONCE_SALT', 'generated-salt');

FAQs

What are WordPress salt keys?
 WordPress salt keys are unique cryptographic values stored in the wp-config.php file. They strengthen the security of authentication cookies, user sessions, and login information. 
Why should I update my WordPress salt keys?
 Updating your salt keys invalidates all existing login sessions, making it an effective security measure after a suspected compromise or as part of routine maintenance. 
Where should I place the generated keys?
 Replace the existing Authentication Unique Keys and Salts section inside your WordPress wp-config.php file with the newly generated values. 
Do I need all eight keys and salts?
 Yes. WordPress uses all eight Authentication Keys and Salts to provide the highest level of security for cookies and user authentication. 
What does the Salt Keys Generator do?
 It generates secure random Authentication Keys and Salts that you can copy directly into your WordPress wp-config.php file. 
Will replacing my salt keys affect my website?
 No. Your website will continue to function normally, but all currently logged-in users—including administrators—will need to sign in again. 
Are the generated keys secure?
 Yes. The generator creates high-entropy random values designed for secure WordPress authentication and session protection. 
Is the WordPress Salt Keys Generator free?
 Yes. The tool is completely free to use and requires no registration. 

Stay Updated with New Website Tools

Join our newsletter to receive updates whenever we release new website generators, SEO utilities, WordPress tools, and developer resources. We never send spam—only useful updates that help you build better websites.

We use cookies

We use essential cookies to operate our website and, with your consent, Google Analytics to understand how our website is used.

Cookies Policy