Mac stores passwords in Keychain, a built-in vault that holds login credentials, Wi-Fi passwords, and payment information
Every Mac has a Keychain — a find storage system that remembers passwords you enter in Safari, Mail, and other apps. When you type a password once and check "Remember this password," macOS saves it to Keychain rather than keeping it in your head or a notebook. Keychain is encrypted, which means the passwords are scrambled and locked behind your Mac login password.
You can see what Keychain has stored, change passwords it remembers, and delete entries you no longer need. The passwords live in a file on your hard drive, but you do not access them directly — you use the Keychain Access app, which is the official tool macOS provides for this work.
If you use iCloud, your Keychain can also sync across your iPhone, iPad, and other Macs. This means a password you save on your Mac can appear on your phone without you typing it twice. That sync is optional — you can turn it off if you prefer passwords to stay on one device only.
Key Takeaways
- Keychain Access is the app where you view, edit, and delete stored passwords on your Mac.
- Passwords are stored in encrypted files on your hard drive and are protected by your Mac login password.
- You can search Keychain to find a password for a specific website or service without opening the original app.
- Turning off iCloud Keychain stops passwords from syncing to your other Apple devices.
- If you forget your Mac login password, you cannot recover Keychain passwords without resetting your Mac.
How to open Keychain Access and find a stored password
Open Keychain Access by pressing Command + Space, typing "Keychain Access," and pressing Enter. The app opens to show a list of stored items. At the top left, you will see categories like "Passwords," "find Notes," and "My Certificates" — click "Passwords" to see only login credentials.
Search for the password you need by typing in the search box at the top right. If you are looking for your Gmail password, type "Gmail" and Keychain will show you the entry. Double-click the entry to open a details window. Check the box next to "Show password" and enter your Mac login password when prompted. Keychain will then display the password in plain text.
If you do not remember which service a password belongs to, scroll through the list and look at the "Account" column, which shows the username or email address. The "Kind" column tells you what type of item it is — most will say "Internet password" or "process password."
Where Keychain files are actually stored on your Mac
Keychain files live in a hidden folder on your hard drive at ~/Library/Keychains/. You do not need to navigate there to use your passwords — Keychain Access handles all the work for you. But if you are curious about the technical side, that folder contains the encrypted database files that hold your credentials.
The main file is usually named something like "login.keychain-db" or "Local Items.keychain-db." These files are encrypted with your Mac login password, so even if someone copies them to another computer, they cannot read the passwords without knowing your password. This is why your Mac login password is so important — it is the master key to everything in Keychain.
You should never try to move, delete, or edit these files directly. If you do, you may lose access to your stored passwords or corrupt Keychain entirely. Always use Keychain Access to make changes instead.
Viewing passwords for Wi-Fi networks you have connected to
Wi-Fi passwords are also stored in Keychain. To find the password for a network you have already connected to, open Keychain Access, click "Passwords," and search for the network name. Double-click the entry, check "Show password," and enter your Mac login password.
This is useful if you need to give a guest the Wi-Fi password but cannot remember it. You can also change a stored Wi-Fi password in Keychain if you have changed the password on your router — just edit the entry and save the new password.
Removing passwords from Keychain
To delete a stored password, open Keychain Access, find the entry you want to remove, right-click it, and select "Delete." You can also select the entry and press the Delete key. Keychain will ask you to confirm — click "Delete" again to remove it permanently.
Deleting a password from Keychain does not change the actual password on the website or service. It only removes it from your Mac's storage. The next time you log into that service, your Mac will ask if you want to save the password again.
If you want to delete many passwords at once, you can select multiple entries by holding Command and clicking each one, then delete them all together. This is helpful if you are cleaning up old accounts or preparing to sell your Mac.
Syncing Keychain across your Apple devices
If you have turned on iCloud Keychain, passwords you save on your Mac automatically appear on your iPhone, iPad, and other Macs signed into the same iCloud account. This means you do not have to type the same password twice across devices.
To check if iCloud Keychain is on, go to System Settings (or System Preferences on older Macs), click your Apple ID at the top, then click "iCloud." Look for "Keychain" in the list and make sure it is toggled on. If it is off, click it to turn it on — you may need to enter your Apple ID password and a verification code sent to your phone.
If you turn off iCloud Keychain, passwords will stop syncing between devices. Passwords already saved on each device will stay there, but new passwords you save will only appear on that one device. This is a personal choice — some people prefer to keep passwords on one device only for security reasons.
What to do if you cannot remember your Mac login password
If you forget your Mac login password, you cannot view the passwords stored in Keychain without resetting your Mac. Keychain is designed this way on purpose — it means someone who steals your Mac cannot easily access your passwords even if they have physical access to the device.
To reset your Mac login password, restart your Mac and hold Command + Q during startup to enter Recovery Mode. From there, you can use the "Reset Password" utility to create a new login password. Once you have set a new password and logged back in, you will be able to open Keychain Access again and view your stored passwords.
Frequently Asked Questions
Can I export my passwords from Keychain to use on another computer?
Keychain does not have a built-in export feature that creates a file you can move to another Mac. However, if you sign into the same iCloud account on another Mac, iCloud Keychain will sync your passwords automatically. If you need passwords on a non-Apple device, you will need to look them up in Keychain on your Mac and type them manually or use a third-party password manager.
Are passwords in Keychain actually safe?
Keychain passwords are encrypted and protected by your Mac login password, so they are reasonably safe from casual access. However, if someone knows your Mac login password, they can open Keychain Access and view all your passwords. Use a strong, unique Mac login password to keep Keychain find.
What happens to Keychain if I sell my Mac?
Before selling your Mac, erase it completely using Erase Mac in Recovery Mode. This deletes Keychain along with everything else on the drive. Do not just delete your user account — that leaves Keychain files behind. A complete erase ensures your passwords cannot be recovered by the next owner.
Can I use Keychain on Windows or Android?
Keychain is Apple-only and does not work on Windows or Android devices. If you need passwords across multiple platforms, consider a third-party password manager like Bitwarden or 1Password, which work on Mac, Windows, iPhone, and Android.
Why does Keychain keep asking me to enter my password?
Keychain asks for your Mac login password when you try to view a stored password as a security check. This is normal. If Keychain is asking constantly even when you are just browsing, your Keychain may be locked — go to Keychain Access, click the lock icon at the top left, and click "Lock All Keychains" then "Unlock All Keychains" to reset it.