Import your Safari passwords into Codebook
You can import your Safari passwords into Codebook for macOS.
This feature is only supported on macOS. Use the Sync feature to access your imported data on Android, iOS, and Windows.
How it works:
- Your saved passwords in Safari become Entry records in Codebook, and we put them in a new Category named Safari
Step 1: Export passwords from Safari
Caution: You are about to export your passwords into an unencrypted file! We recommend temporarily disabling any backup software you use to avoid creating a backup of the unencrypted file. Anybody with access to this file will be able to see your passwords and other secrets.
- Launch Safari
- Click on File > Export > Passwords
- In the dialog that appears prompting you to confirm that you'd like to export your passwords, choose Export Passwords... to proceed
- Save the CSV file to your computer
On macOS Ventura and above you can export your Passwords via Apple menu > System Settings, enter your device passcode, tap the 3 dots near the search field and choose Export All Passwords.
Step 2: Edit the CSV to match Codebook's expected import format
- Open the CSV you exported in step 1 using your favorite spreadsheet editing software (Numbers, Excel, etc.)
- Add a column before the first column and name the header Category. Enter Safari for the value of each row of that column (you should be able to type it for one row value then drag down on the cell to have it copied to every other row).
- Change the Title column header to Entry
- Change the URL column header to Website
- Change the Notes column header to Note
- Export the edited spreadsheet as a CSV (i.e. File Export To > CSV... in Numbers)
Step 3: Import the edited CSV into Codebook
- Open and unlock Codebook
- Go to File > Import > Import CSV... and select the CSV you modified in Step 2
At this time, Codebook for macOS doesn't convert the OTPAuth fields exported from Safari into Codebook's
2-Step Code fields automatically -- although this is something that we'd like to add support for. For 2-Step Codes which Codebook supports, you can extract the secret from the OTPAuth URL and enter it into a 2-Step Code field as mentioned in the 2 Step Code documentation.
Step 3: Clean Up
- Delete the unencrypted CSV export file(s) from Safari
- If you had disabled your backup software, resume it now
Now you're ready to get started using Codebook!
If you are having trouble importing your data or have other questions, please contact Codebook Support.