Sub topic 14
Importing and exporting with CSV files
This chapter assumes you have a Mac running macOS Sequoia 15 or later, an Apple Account signed in, and a working knowledge of the Passwords app, including how entries are saved and edited. It covers moving logins in and out of the app as CSV files.
What a password CSV is
A CSV (comma-separated values) file is a plain text table. Each line is one login, and commas separate the columns. Password managers commonly use CSV as a shared format, so it is the usual way to move logins between apps.
The Passwords app reads and writes these columns:
- Title: the name shown for the entry.
- URL: the website address.
- Username: the account name or email.
- Password: the saved password.
- Notes: any free text you attached.
- OTPAuth: an optional setup link for verification codes.
Title,URL,Username,Password,Notes,OTPAuth
Example Site,https://example.com,[email protected],replace-with-real-password,,The first line is the header. The last two columns are empty here, but the commas stay so every row has six fields.
Exporting from the Passwords app
- Open the Passwords app and authenticate if it asks.
- Choose File > Export All Passwords.
- Confirm the warning and authenticate again.
- Pick a save location and save the file.
Export only when you need a copy for another app. Save to a folder you control, not a shared or synced folder, because a synced folder copies the plain-text file to other places.
Importing into the Passwords app
- Prepare a CSV with the header row shown above. If it came from another password manager, check that the column names match.
- In the Passwords app, choose File > Import Passwords.
- Select the CSV file and review what the app finds.
- Confirm the import, then check a few entries by opening them.
- Delete the CSV file.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Import finds no logins | Header names do not match | Rename columns to Title, URL, Username, Password, Notes, OTPAuth |
| Entries are shifted or garbled | A value contains a comma and is not quoted | Wrap that value in double quotes |
| Duplicate entries appear | The same logins already exist in the app | Delete the extra copies from the entry list |
| Verification codes are missing | The OTPAuth column is empty | Add the setup link, or set up the code again in the app |
A value with a comma must be quoted. For example, a note such as "Work, shared" becomes "Work, shared" in the file. Editing the CSV in a text editor is safer than in a spreadsheet, because spreadsheets can change formatting of long values.
Exercise
You exported your passwords to move them to another app. The other app has imported them successfully. What should you do with the CSV file, and why?
Show answer
Delete it and empty the Trash. The file stores every password in plain text, so anyone who finds it can read all your logins.
Exercise
An imported entry shows the wrong username, and the notes text is split across two fields. What is the most likely cause in the CSV?
Show answer
The notes value contained a comma and was not wrapped in double quotes, so the comma was read as a column separator.