sodcalculator

10 Tech How-To

iCloud Keychain: Sync Safari Passwords iPhone & Mac

Guide 10-48476 · Updated · Step by step

This guide shows you how to turn on iCloud Keychain so your Safari passwords, credit card info, and Wi-Fi networks stay in sync between your iPhone and Mac. Once it’s set up, a password saved on one device appears on the other automatically, and you won’t need to type it again. You’ll need an Apple ID, two-factor authentication enabled on at least one device, and both devices signed into the same Apple ID.

What You’ll Need

  • An iPhone with iOS 11 or later (for older iOS, the steps are similar but the menu names differ slightly).
  • A Mac running macOS Sierra or later.
  • Both devices signed in to the same Apple ID.
  • Two-factor authentication turned on for your Apple ID (required for iCloud Keychain on current versions of iOS and macOS).
  • Both devices connected to Wi‑Fi or the internet during setup.

Step-by-Step

  1. Turn on iCloud Keychain on your iPhone. Open Settings → tap your name at the top → iCloud → Passwords & Keychain. Toggle on Sync this iPhone. If prompted, enter your iPhone passcode. If you don’t see “Passwords & Keychain,” tap Keychain instead (older iOS versions) and toggle it on.
  2. Enter your iCloud Security Code. The first time you enable Keychain, iOS asks you to create a six‑digit iCloud Security Code. This is separate from your iPhone passcode. Enter a code you’ll remember, or choose “Use a different code” to make a longer alphanumeric one. You can also approve from another device if one is already set up.
  3. Verify on your Mac. On your Mac, open System Settings (or System Preferences on older macOS) → click your Apple ID at the top → iCloud → Passwords & Keychain. Toggle on Sync this Mac. You may need to enter your Mac’s login password.
  4. Enter the same iCloud Security Code. When prompted, type the same six‑digit code you created on your iPhone. If you forgot it, click “Forgot?” and follow the recovery steps, which usually involve your iPhone passcode or an SMS to a trusted number.
  5. Approve the sync request. After entering the code on your Mac, a notification appears on your iPhone asking you to approve the new device. Tap Allow and enter your iPhone passcode if asked.
  6. Check that Safari is using Keychain. On your iPhone, go to Settings → Safari → AutoFill and make sure Names and Passwords is on. On your Mac, open Safari → Settings (or Preferences) → AutoFill and confirm User names and passwords is checked.
  7. Test the sync. On your iPhone, log in to a website you use, and when Safari asks “Save Password?” tap Save Password. Now on your Mac, go to that same site’s login page. Click the username field; Safari should offer the saved password from your iPhone. If it does, the sync is working.

Common Mistakes

  • Using a different Apple ID on each device. Keychain only syncs between devices signed into the same Apple ID. Check Settings → your name on iPhone and System Settings → your name on Mac.
  • Entering the iPhone passcode instead of the iCloud Security Code. These are two different codes. The iCloud Security Code is the one you create when enabling Keychain. If you enter the wrong one too many times, you may be locked out temporarily.
  • Turning off “Sync this iPhone” accidentally. Some iOS updates reset iCloud settings. Re‑check the toggle after a major update.
  • Expecting passwords to sync instantly. Sync can take a few minutes, especially if you have many passwords. Be patient and check again after a short while.
  • Ignoring the “Approve” prompt. If you don’t tap Allow on your iPhone when adding your Mac, the Mac won’t sync. Go to Settings → your name → Sign-In & Security → Devices on your iPhone and remove the Mac, then try again.

Tips

  • Use a strong iCloud Security Code but one you can remember. If you lose it, recovery is possible but time‑consuming.
  • Turn on two‑factor authentication if you haven’t already. It makes Keychain more secure and is required for modern sync.
  • Keep both devices updated. Keychain works best when iOS and macOS are current. Older versions may have sync glitches.
  • Use the same Wi‑Fi network during initial setup to speed up the first sync.
  • Check the Keychain status in Settings → your name → iCloud → Passwords & Keychain. If it says “Not Syncing,” tap it and follow the prompts.
  • If you have a Mac with Touch ID, you can approve sync requests with your fingerprint instead of typing the passcode each time.

Troubleshooting

Passwords aren’t appearing on the other device. First, wait 10 minutes. If still nothing, go to Settings → your name → iCloud → Passwords & Keychain on your iPhone and toggle “Sync this iPhone” off, wait 10 seconds, then on again. Do the same on your Mac. This forces a fresh sync.

You’re asked for an iCloud Security Code you don’t remember. On your iPhone, go to Settings → your name → iCloud → Passwords & Keychain. Tap “Reset Keychain” (only if you’re okay with losing all saved passwords) or use the “Forgot” option on the Mac to recover via your iPhone passcode. If you have another Apple device already using Keychain, you can approve from that device instead.

Sync works one way but not the other. Check that both devices have the same Apple ID and that two‑factor authentication is on. On your Mac, open Keychain Access (in Applications/Utilities) and look for “iCloud” in the sidebar. If it’s missing, sign out of iCloud on the Mac and sign back in.

Passwords sync but not credit cards. Credit card sync is a separate toggle. On iPhone: Settings → your name → iCloud → Passwords & Keychain → make sure “Credit Cards” is on. On Mac: System Settings → Apple ID → iCloud → Passwords & Keychain → check “Credit Cards.”

Keychain is on but Safari doesn’t offer saved passwords. Go to Settings → Safari → AutoFill on iPhone and ensure “Names and Passwords” is toggled on. On Mac, open Safari → Settings → AutoFill and check the same. Also make sure you’re not in Private Browsing mode, which disables AutoFill.

You get an error “iCloud Keychain cannot be enabled.” This often happens if two‑factor authentication is off. Turn it on at Settings → your name → Sign-In & Security → Two-Factor Authentication on your iPhone, then retry. If it still fails, restart both devices and try again.

Frequently Asked Questions

Is iCloud Keychain safe? Yes. Passwords are encrypted with AES‑256 and can’t be read by Apple. Even if someone gets your iCloud password, they’d need your device passcode or iCloud Security Code to decrypt the data.

Do I need to turn on Keychain separately on each device? Yes. You must enable it on your iPhone and then on your Mac. The first time you enable it on a new device, you’ll be asked for the iCloud Security Code or approval from an existing device.

What happens if I forget my iCloud Security Code? You can reset it using your iPhone passcode, but doing so will remove all Keychain data from iCloud and you’ll have to start over. Your passwords that are already on each device stay, but new sync stops until you set up a new code.

Can I use iCloud Keychain with Chrome or Firefox? Yes, on Mac you can install the iCloud Passwords extension for Chrome or Edge. On iPhone, third‑party browsers can use the system password AutoFill, which reads from Keychain, but the experience is smoother in Safari.

Does Keychain sync Wi‑Fi passwords too? Yes, if you have “Passwords & Keychain” enabled, Wi‑Fi network passwords you save on one device will automatically be available on your other Apple devices.

What if I have an old iPhone with iOS 10 or earlier? iCloud Keychain still works, but the menu is under Settings → iCloud → Keychain instead of “Passwords & Keychain.” The sync process is otherwise the same.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →