Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Import & Export iCloud Keychain Passwords

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can import passwords into iCloud Keychain from a CSV file (Safari on Mac) and export them as a CSV from Safari on Mac or from iCloud Passwords on Windows. There is no direct import/export option in iOS or iPadOS — you must use a Mac or Windows PC. This guide covers both directions and what to do when things don't go as expected.

What You'll Need

  • A Mac running macOS Monterey or later (for Safari import/export) OR a Windows PC with iCloud for Windows 12.5 or later (for export only).
  • Your Apple ID password and, if you have two-factor authentication enabled, a trusted device or verification code.
  • A CSV file if you're importing — it must have columns like "Title", "URL", "Username", "Password", and optionally "Notes". Safari accepts files with those column names.
  • For export, you'll need a place to save the CSV file (e.g., Desktop, Documents).

Step-by-Step

Exporting Passwords from iCloud Keychain

  1. On a Mac: Open Safari. From the menu bar, click File > Export > Passwords (or Passwords in some versions). You'll be asked to authenticate with your Mac's password or Touch ID.
  2. Choose a location for the CSV file (e.g., Desktop). Click Export. Safari will warn you that the file is not encrypted — store it securely and delete it after use.
  3. On Windows: Open the iCloud app (from the Start menu or system tray). Click Passwords. Sign in with your Apple ID if prompted. Click the gear icon (or "..." menu) and choose Export Passwords. Authenticate with your Windows login or a verification code. Save the CSV file.
  4. After exporting, the CSV contains all your saved passwords in plain text. Keep it in a safe place — ideally an encrypted drive or password manager vault — and delete it when done.

Importing Passwords into iCloud Keychain

  1. On a Mac: Open Safari. From the menu bar, click File > Import > Passwords (or Passwords in some versions).
  2. Select your CSV file and click Import. Safari will show a preview of the entries it found.
  3. Authenticate with your Mac's password or Touch ID to confirm the import.
  4. Safari will add the passwords to your iCloud Keychain. They will sync to your iPhone, iPad, and other Apple devices automatically, provided iCloud Keychain is enabled in System Settings > Apple ID > iCloud > Passwords & Keychain.
  5. If you're importing from another browser (Chrome, Firefox), you can export that browser's passwords as CSV first, then follow the same steps. Safari accepts the standard CSV format with columns: Title, URL, Username, Password, Notes.

Note: Menu labels may differ slightly depending on your macOS version or region. If you don't see "Export Passwords" under File, look for a gear icon in the Passwords window (Safari > Passwords) and click it to find Export/Import options.

Common Mistakes

  • Using the wrong CSV format: Safari expects specific column headers. If your CSV has different headers (e.g., "Name" instead of "Title"), the import will fail or skip entries. Check the first row of your CSV.
  • Exporting on iPhone/iPad: There is no built-in way to export passwords from iOS. Don't waste time looking for it — use a Mac or Windows PC.
  • Forgetting to enable iCloud Keychain: If Keychain is off, imported passwords won't sync to your other devices.
  • Saving the CSV in an insecure location: The exported file is plain text. Leaving it on your Desktop or in Downloads is risky. Move it to an encrypted folder or delete it after importing.

Tips

  • Use a password manager for large transfers: If you have hundreds of passwords, a dedicated password manager (like 1Password or Bitwarden) can handle CSV imports more robustly and then sync to iCloud Keychain via its own browser extension.
  • Clean up your CSV before importing: Remove duplicate entries, fix blank usernames, and ensure URLs start with "http://" or "https://". Safari may ignore entries with malformed URLs.
  • Export regularly as a backup: Even if you don't plan to switch devices, exporting a CSV every few months gives you a recovery option if you ever lose access to your Apple ID.
  • Use the built-in password generator: When creating new accounts, let Safari suggest a strong password — it will be saved to Keychain automatically.

Troubleshooting

If the import or export doesn't work, try these in order:

  1. Restart Safari and try again. Sometimes the menu options don't appear until Safari is fully relaunched.
  2. Check your CSV file: Open it in a text editor. Ensure the first row has exactly these headers: Title,URL,Username,Password,Notes (case-sensitive). If not, rename the columns accordingly.
  3. Update your software: On Mac, go to System Settings > General > Software Update. On Windows, check for iCloud updates in the Microsoft Store. Older versions may lack import/export features.
  4. Sign out and back into iCloud: On your Mac, go to System Settings > Apple ID, scroll down, and click "Sign Out". Then sign back in and enable Keychain again. This can fix sync issues. (You won't lose passwords, but you'll need to re-enter some app-specific passwords.)
  5. If import fails silently: Safari may import only some entries. Check the Passwords window (Safari > Settings > Passwords) to see which ones made it. If none did, your CSV format is likely wrong.
  6. If export produces an empty file: Make sure you have at least one password saved in Keychain. If you do, try exporting to a different folder (e.g., Documents instead of Desktop).

Frequently Asked Questions

Can I import passwords into iCloud Keychain on my iPhone?

No. Apple only allows importing via Safari on a Mac. On iPhone, you can manually add passwords one by one in Settings > Passwords, but there's no bulk import.

Can I export passwords from iCloud Keychain to a Windows PC?

Yes. Install iCloud for Windows from the Microsoft Store, sign in, and open the Passwords app. You can export to CSV from there.

Will my imported passwords sync to all my devices?

Yes, as long as iCloud Keychain is enabled on each device and you're signed in with the same Apple ID. It may take a few minutes to sync.

What if my CSV file has extra columns like "Favorite" or "Folder"?

Safari will ignore extra columns, but the required ones (Title, URL, Username, Password) must be present. If a required column is missing, the import may fail.

Is it safe to export passwords to CSV?

It's safe if you treat the file like a physical key — keep it encrypted and delete it after use. The CSV is not protected by Apple's encryption once exported.

Can I import passwords from Chrome or Firefox into Keychain?

Yes. Export your passwords from Chrome or Firefox as CSV, then use Safari's Import > Passwords on a Mac. The column names may differ, so adjust them to match Safari's expected format.