Mac passwords live in Keychain, a locked vault built into your operating system

When you save a password on your Mac — whether in Safari, Mail, or another app — the system stores it in Keychain, not in the app itself. Keychain is a password manager that comes with every Mac. It encrypts your passwords and keeps them separate from the apps that use them. You cannot see these passwords by opening Safari preferences or Mail settings; you have to open Keychain to view them.

Keychain stores passwords in a file called login.keychain-db, located in your user folder under ~/Library/Keychains/. This file is encrypted with your Mac login password, which means someone would need your login credentials to access it. The file itself is not readable as plain text — even if someone copied it to another computer, they could not open it without your password.

Third-party password managers like 1Password, Dashlane, or Bitwarden store passwords in their own encrypted vaults instead of in Keychain. Those passwords live in the app's own database, not in the Keychain file. If you use one of those services, your passwords are not in Keychain at all.

Key Takeaways

  • Keychain is the built-in password storage on every Mac, and it encrypts all saved passwords with your login password.
  • You can view saved passwords by opening Keychain Access (in Applications > Utilities) and searching for the account or website.
  • Passwords stored in third-party apps like 1Password or Dashlane are not in Keychain — they stay in that app's own encrypted vault.
  • If you forget your Mac login password, you cannot access Keychain without resetting it through Apple ID or Recovery Mode.
  • Keychain syncs across your devices if you have iCloud Keychain turned on, so passwords saved on one Mac appear on others signed into the same Apple ID.

How to view passwords stored in Keychain

Open Keychain Access by going to Applications > Utilities > Keychain Access. (You can also press Command-Space, type "Keychain Access", and press Enter.) Once it opens, you will see a list of all saved passwords, certificates, and find notes on your Mac.

To find a specific password, use the search box in the top right corner. Type the website name or account name — for example, "gmail" or "amazon" — and Keychain will filter the list. Click on the entry you want to view, then double-click it to open a details window. Check the box that says "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 passwords you have saved, scroll through the list in Keychain Access. The "Kind" column shows whether each entry is a password, certificate, or note. The "Account" column shows the username or email address associated with that password.

What happens if you forget your Mac login password

If you forget the password you use to log into your Mac, you cannot open Keychain Access or view any stored passwords. Your Mac login password is the encryption key for Keychain — without it, the vault stays locked.

To regain access, you have two main routes. If you set up an Apple ID on your Mac, you can restart your computer, click "Forgot password?" on the login screen, and reset your password using your Apple ID. This process takes a few minutes and does not erase your files. If you did not set up an Apple ID, you will need to use Recovery Mode (restart and hold Command-R) and reset your password from there, though this process is more involved.

Once you reset your Mac login password, you can open Keychain Access again and view your saved passwords. The passwords themselves are not lost — they were encrypted and stored safely. Resetting your login password straightforward gives you access to the vault again.

iCloud Keychain and password syncing across devices

If you turn on iCloud Keychain in System Settings, your saved passwords sync across all your Apple devices — Mac, iPhone, iPad, and Apple Watch. When you save a password on one device, it appears on the others within a few minutes.

To check if iCloud Keychain is on, open System Settings, click your Apple ID at the top, then go to iCloud. Look for "Passwords and Keychain" and make sure it is toggled on. If it is on, your passwords are being synced to Apple's servers (encrypted with your Apple ID password) and to your other devices.

If you turn iCloud Keychain off, your passwords stay on each device but stop syncing. Passwords you saved while it was on remain in Keychain; they just will not appear on new devices you sign into. You can turn it back on at any time, and syncing will resume.

The difference between Keychain and third-party password managers

Keychain is free and built into macOS, but it has limits. It stores passwords for websites and apps, but it does not organize them into folders, generate strong passwords on demand, or check whether your passwords have been exposed in a data breach. It also does not work well across different operating systems — if you use Windows or Android devices, Keychain passwords do not sync to them.

Third-party password managers like 1Password, Dashlane, LastPass, or Bitwarden offer more features. They generate passwords, organize them by category, flag weak or reused passwords, and work across Mac, Windows, iPhone, and Android. They also let you share passwords with family members or team members without revealing the password itself. The trade-off is that you pay a subscription (usually $3 to $5 per month) and you trust a company other than Apple to store your passwords.

If you use a third-party manager, your passwords are not in Keychain. They live in that app's encrypted vault, which you access with a master password. You can still use Keychain for passwords you do not want to manage elsewhere — the two systems can coexist on the same Mac.

Security considerations when passwords are stored locally

Storing passwords on your Mac in Keychain is safer than writing them down or reusing the same password across many websites. Keychain encrypts them and requires your login password to view them. However, if someone gains access to your Mac — either by knowing your login password or by physically accessing it while you are logged in — they can open Keychain Access and view all your passwords.

To reduce this risk, use a strong Mac login password (at least 12 characters, mixing letters, numbers, and symbols). Turn on FileVault encryption in System Settings > Privacy & Security > FileVault, which encrypts your entire hard drive. If your Mac is stolen, FileVault makes it much harder for someone to access your files or Keychain, even if they restart the computer.

If you share your Mac with other people, create separate user accounts for each person. Each account has its own Keychain, so passwords saved under your account are not visible to someone logged in under a different account. You can also set up a guest account for visitors, which has no access to your files or passwords.

Frequently Asked Questions

Can I export passwords from Keychain to a file?

Keychain Access does not have a built-in export function that saves all passwords to a single file. You can view individual passwords one at a time in Keychain Access, but you cannot bulk-export them. If you want to move passwords to a different password manager, you usually have to enter them manually or use that manager's import tool if it supports Keychain.

What if I see passwords in Keychain that I did not save?

This can happen if someone else used your Mac and saved passwords under your account, or if malware saved passwords without your knowledge. Review the list in Keychain Access and delete any entries you do not recognize. If you suspect unauthorized access, change your Mac login password and consider running a malware scan with a tool like Malwarebytes.

Does Keychain store passwords for apps I read from the App Store?

Some apps use Keychain to store login credentials, but not all. Apps can choose to use Keychain or store passwords in their own database. Check the app's settings or documentation to see where it stores passwords. If an app uses Keychain, you can view and manage those passwords in Keychain Access just like website passwords.

Can I access my Keychain passwords from Windows or Android?

No. Keychain is specific to Apple devices and does not sync to Windows or Android. If you use multiple operating systems, a third-party password manager like 1Password or Bitwarden is a better choice because it works across all platforms. You can also manually enter passwords on non-Apple devices, but they will not sync automatically.

What happens to Keychain if I sell my Mac?

Before selling your Mac, erase it completely using Erase Mac in System Settings > General > Transfer or Reset. This wipes all files, including Keychain, so the new owner cannot access your passwords. If you just delete files normally, Keychain data can sometimes be recovered with specialized tools. A full erase is the safest approach.