How to import LastPass passwords to Safari (and iCloud Keychain)

LastPass announced a few days ago they are going to limit the device type for free account. While I am totally supportive for the move and have been a paying customer for a few years until recently, I now have more motivation to move my password to iCloud Keychain. My devices are mostly in the Apple ecosystem due to work, and it has been quite time consuming for me to switch between my work password profile (iCloud Keychain) and my personal password profile (LastPass). So, I want to give it a try to live on only iCloud Keychain.

There seems to be no tool which can help me import my passwords stored in LastPass to iCloud Keychain directly, but thanks to this post from 2018 by Suparn Gupta I was inspired. In this post, I will summarize the steps that I tried and verified working, as of the time of writing.

Step 1: Export a csv from LastPass

Open the LastPass vault in a browser. Go to Advanced Options -> Export.

LastPass will then prompt for master password, we can save the csv file after providing it. I am going to assume we save the csv in ~/Downloads/lastpass_export.csv 

Step 2: Install FireFox

If you don’t have FireFox installed, download it from here and install it.

Step 3: Create a FireFox profile

For first time FireFox user, we will need a profile for the later steps to work. Click on the profile icon and Sign in to FireFox – this will lead us to create an account or login. If you don’t have an account yet, you can create a FireFox account.

Step 4: Use ffpass to import the passwords from csv to FireFox

ffpass is a tool written in Python. Before you can start using it, it is required to install Python 3.6 or above first. I found this tutorial quite straightforward for Python newbies.

One you have Python installed, first make sure you have closed FireFox. Then, open Terminal and execute the following.

pip install ffpass
cd ~/Downloads
ffpass import --file lastpass_export.csv

This will import the passwords to FireFox. You can open FireFox again and go to any website which requires login to check.

Step 5: Import passwords in Safari from FireFox

Finally, we can now go to Safari. To import the passwords from FireFox, go to File->Import From->Firefox…

Now that Safari has the imported passwords, the last thing we want to make sure is the passwords are synced to iCloud. For that we need to enable iCloud keychain syncing for all devices. Typically this is on for most users. In case you want to check, this help article from Apple has comprehensive instructions for all devices.

Leave a ReplyCancel reply