How to Export Passwords from a Mac Securely
This guide walks you through exporting passwords saved in your Mac’s Keychain (including Safari passwords) to a CSV file, and how to keep that file safe from prying eyes. You’ll learn the built-in method, how to handle the resulting file securely, and what to do if you run into problems.
What You’ll Need
- A Mac running macOS Monterey (12.0) or later (for the built-in export feature).
- Your Mac’s login password (and, if enabled, your Keychain password).
- An encrypted folder or a password manager to store the CSV securely.
Step-by-Step
- Open Safari. The export feature is part of Safari’s password manager, even if you use another browser for daily browsing.
- Access Password Settings. In the menu bar, click Safari > Settings (or Preferences on older macOS). Then click the Passwords tab.
- Authenticate. Enter your Mac’s login password or use Touch ID when prompted. This is required to view and export your saved passwords.
- Choose passwords to export. You can select individual passwords by holding Command (⌘) and clicking each one, or select all by pressing Command (⌘) + A.
- Export the CSV. Click the gear icon (or the ellipsis “…” button) in the Passwords window and choose Export All Passwords (or Export Passwords if you have selected specific ones).
- Confirm the warning. A dialog will appear warning you that the CSV is unencrypted and anyone who can open it can read your passwords. Click Export Passwords to continue.
- Save the file. Choose a location that is not your Desktop or Downloads folder—ideally a folder you will immediately move to an encrypted disk image. Name the file something non-descriptive (e.g., “backup.csv”) and click Save.
- Encrypt the CSV immediately. The safest way is to create an encrypted disk image. Open Disk Utility (in /Applications/Utilities), go to File > New Image > Image from Folder, select the folder containing the CSV, choose AES-256 encryption, and set a strong password. Alternatively, move the CSV into an encrypted folder like one from VeraCrypt or a password manager’s secure vault.
- Delete the original CSV. After encryption, securely delete the unencrypted CSV file. Use Finder to move it to Trash, then empty the Trash. For extra security, use the Secure Empty Trash option if your macOS version has it (macOS Ventura and later removed this option; in that case, overwrite the file with random data using a tool like
rm -Pin Terminal). - Store the encrypted file. Keep the encrypted disk image in a safe location, such as an external drive, a cloud storage service with strong encryption, or a fireproof safe. Remember the password—if you forget it, the data is unrecoverable.
Common Mistakes
- Saving the CSV to Desktop or Downloads. These folders are often synced to iCloud Drive, which could expose your passwords to other devices or cloud breaches.
- Forgetting to encrypt. A CSV is plain text—anyone who gets the file can read every password without needing your Mac’s login.
- Leaving the CSV in Trash. The Trash is not secure; the file remains recoverable until overwritten. Always empty the Trash after deleting.
- Sharing the CSV via email or messaging. These channels are not encrypted end-to-end by default, and the file could be intercepted or stored on servers.
- Using a weak password for the encrypted disk image. If the password is easy to guess, the encryption provides little protection.
Tips
- Use a password manager instead. Most reputable password managers (like 1Password, Bitwarden, or KeePassXC) have built-in import/export features that handle encryption and storage more securely than a raw CSV.
- Export only what you need. If you only need a few passwords, export just those to minimize exposure.
- Change the CSV filename. A file named “passwords.csv” is an obvious target. Use a random name like “backup_2025.csv”.
- Regularly rotate your master passwords. If you export periodically, consider changing critical passwords after the export, especially if the CSV was ever exposed.
- Check for duplicates. The export may contain duplicate entries; review the CSV in a text editor (after encryption) to clean it up.
Troubleshooting
- “Export All Passwords” is grayed out. This usually means you haven’t authenticated. Re-enter your password or use Touch ID. If it still doesn’t work, restart Safari and try again.
- You can’t find the Passwords tab. On older macOS versions (Catalina and earlier), the path is Safari > Preferences > Passwords. If you’re using macOS Monterey or later, it’s under Safari > Settings.
- The CSV opens with garbled characters. This is likely a character encoding issue. Open the CSV in a text editor that supports UTF-8, or use a spreadsheet app and choose “UTF-8” as the import encoding.
- You forgot your Keychain password. If you can’t authenticate, you won’t be able to export. Try resetting your Keychain password via Keychain Access (in /Applications/Utilities), but note that this may affect other saved passwords.
- Disk Utility encryption fails. Make sure you have enough free disk space and that the folder you’re encrypting doesn’t contain any locked files. Try creating the image from a new folder with just the CSV.
- The CSV is too large to open in Excel. Use a text editor or a script to split the file. Or import into a password manager that handles large CSVs better.
Frequently Asked Questions
Does exporting passwords from Safari also include passwords saved in Chrome or Firefox?
No. The Safari export only includes passwords stored in iCloud Keychain, which is what Safari and other Apple apps use. Chrome and Firefox have their own separate password stores; you’ll need to export those from within those browsers.
Can I export passwords from Keychain Access directly?
Keychain Access can export individual keychain items, but the format is not a simple CSV and often includes metadata. The Safari method is the only built-in way to get a clean CSV of your web passwords.
Is it safe to email the CSV to myself?
No. Email is not encrypted end-to-end, and your email provider could read the file or be breached. Always encrypt the CSV before sending it through any online channel.
What if I don’t have an encrypted disk image?
You can use a password manager’s secure notes feature, or create a ZIP file with a strong password (using the built-in Archive Utility with encryption). However, encrypted disk images are more secure because they use strong AES-256 encryption.
Can I import the CSV into another password manager?
Yes, most password managers allow CSV import. Be sure to delete the CSV after importing, and change your master password if you suspect the file was exposed.
Will the CSV include my Wi-Fi passwords or app passwords?
No. The Safari export only includes website passwords. Wi-Fi and app passwords are stored elsewhere in the Keychain and are not included in this export.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.