Reset Keychain Password on Mac (Step-by-Step)
In this article
Resetting your macOS keychain password lets you regain access to saved passwords, Wi-Fi networks, and other secure data when you've forgotten your login password or the keychain is out of sync. The process is straightforward, but it requires your Mac's administrator password or your Apple ID (depending on your setup). You'll also need to know whether you want to reset the login keychain (which contains most of your saved items) or just change the password if you already know the old one. Here's how to do it safely.
What You'll Need
- Your Mac's administrator username and password (the one you use to log in).
- Your Apple ID and password if you use iCloud Keychain (to re-sync after reset).
- Access to the Keychain Access app (found in Applications > Utilities).
- Optional: a backup of your keychain if you plan to keep it (see Tips).
Step-by-Step
Important: Menu names and button labels can vary slightly depending on your macOS version and region. The steps below are based on current macOS (Ventura and later) but are similar on older versions.
If you know your current keychain password (just want to change it)
- Open Keychain Access from Applications > Utilities.
- In the menu bar at the top, click Edit > Change Password for Keychain "login".
- Enter your current password in the first field.
- Enter a new password in the second field, then re-enter it in the third field.
- Click OK. Your keychain password is now updated.
If you forgot your keychain password (reset it)
- Open Keychain Access from Applications > Utilities.
- In the menu bar, click Keychain Access > Preferences.
- Click the Reset My Default Keychain button at the bottom of the preferences window.
- A dialog will appear asking for your administrator password (your Mac login password). Enter it and click OK.
- You'll see a confirmation that the default keychain will be deleted and a new one created. Click OK.
- Log out and back in (or restart your Mac). A new login keychain will be created automatically.
- If you use iCloud Keychain, you'll be prompted to sign in with your Apple ID to re-sync your saved passwords. Enter your Apple ID password when asked.
Note: Resetting the keychain deletes all saved passwords, Wi-Fi network passwords, and other secure notes that were in the old keychain. You'll need to re-enter them as you use apps and websites.
Common Mistakes
- Using the wrong password field: When resetting, you must enter your administrator password (the one you use to log into macOS), not your Apple ID password or the old keychain password.
- Not logging out after reset: If you don't log out or restart, the new keychain may not be created correctly, and you might still see errors.
- Ignoring the warning: The reset dialog clearly says it will delete your current keychain. Clicking through without reading can cause you to lose data you wanted to keep.
- Forgetting iCloud Keychain sync: If you use iCloud Keychain, resetting the local keychain doesn't erase your iCloud data, but you must sign back in to iCloud Keychain to retrieve it. Skipping this step leaves you without your saved passwords.
Tips
- Back up your keychain before resetting: In Keychain Access, select the login keychain in the left sidebar, then go to File > Export Items. Choose a location and set a password for the export. This creates a backup file you can import later (File > Import).
- Use the same password as your login password: To avoid confusion, set your keychain password to match your Mac's login password. That way, you won't be prompted separately.
- Keep a written record: Store your keychain password in a secure password manager (not on a sticky note) to avoid future lockouts.
- If you only forgot the keychain password but remember your login password: You can simply reset the keychain as shown, but you might also try changing the keychain password to match your login password using the first method (if you can guess the old one).
Troubleshooting
If the reset didn't work as expected, try these in order:
- Restart your Mac: A simple restart often resolves issues with keychain creation after a reset.
- Check if the new keychain was created: Open Keychain Access and look in the left sidebar. You should see a keychain named "login" with a lock icon. If it's missing, go to File > Add Keychain and navigate to
~/Library/Keychains/– you may need to create a new one by going to File > New Keychain and saving it as "login". - If you still get "keychain password incorrect" prompts: This can happen if the keychain file is corrupted. Delete the keychain file manually: Go to
~/Library/Keychains/in Finder (use Go > Go to Folder), find the folder namedlogin.keychain-db(or similar), and move it to the Trash. Then log out and back in – a fresh keychain will be created. - If iCloud Keychain won't sync: Go to (or iCloud Keychain on older macOS) and toggle it off and on again. You may need to sign out of iCloud entirely and sign back in.
- If you can't reset because you don't have administrator rights: You'll need to ask an administrator on your Mac to perform the reset for you, or log in as an administrator account.
Frequently Asked Questions
Will resetting my keychain delete all my saved passwords?
Yes. Resetting the default login keychain deletes all items stored in it, including saved website passwords, Wi-Fi network passwords, and secure notes. You'll need to re-enter them as you go.
Can I recover my old passwords after resetting?
Only if you backed up the keychain before resetting (using File > Export Items). Without a backup, the old data is gone permanently.
Why does my Mac keep asking for the keychain password even after I reset it?
This usually happens if the new keychain wasn't created properly, or if an app is still trying to access the old keychain. Try restarting your Mac, and if the issue persists, delete the keychain file manually as described in Troubleshooting.
Do I need to reset my keychain if I change my login password?
No. When you change your Mac login password, macOS automatically updates the keychain password to match it. If you see a keychain prompt after changing your login password, enter your old login password once to update it.
Is resetting the keychain the same as disabling FileVault?
No. FileVault encrypts your entire disk, while the keychain stores passwords and secure data. Resetting the keychain does not affect FileVault encryption.
Can I reset the keychain from the command line?
Yes, but it's not recommended for most users. You can use the security command in Terminal (e.g., security delete-keychain login.keychain), but it's easy to make mistakes that can cause more problems. The graphical method above is safer.