How to Import KeePassX Password to LastPass (And Vice-versa)

KeePass (KeepassX for Linux) has always been my favorite password manager. It works in all platforms, including portable USB drive and can generate secure passwords and store them securely. One thing that it doesn’t support is a browser plugin that can detect the site you are visiting and auto-fill the login field for you. For that matter, I used LastPass. LastPass is an online password manager that works in (almost) all browsers. You just have to visit the site and it will auto-login for you.

Now, if you are like me, already have a huge database of password stored in your KeePass (or KeePassX), you won’t want to enter individually to LastPass. Similarly, if you are using LastPass and intend to switch to KeePassX (because LastPass don’t support desktop app password), you will be looking for ways to import/export your password database from one to another.

Import KeePassX password to LastPass

Note: I am using KeePassX (the Linux port of KeePass), so this tutorial will be based on KeePassX.

Open your KeePassX and log into your database. Go to “File -> Export to -> KeePassX XML File“. Save the file to your desktop or Home directory.

keepassx-export

Open a Firefox browser and make sure you have LastPass installed. Click on the LastPass button and go to “Tools -> Import From -> KeePass -> Import”.

keepassx-lastpass-import

When prompted, select the keepass.xml file that you have just exported. LastPass will scan the XML file and ask you which passwords you want to import.

keepassx-lastpass-check-all

Select the password(s) you want to import and click “Import”. That’s it. Your KeePassX password is in LastPass now.

Note: I have tested it on Google Chrome and it doesn’t work. It could be due to my browser configuration or issue with the LastPass extension. I didn’t verify it. I got it working fine in Firefox.

Import LastPass password to KeePassX

The method to import LastPass password to KeePassX is not as straighforward because the LastPass export format is not supported by KeePassX. We can however use a conversion script lastpass2keepass to convert the password format.

First, in Firefox browser, click on the LastPass icon and go to “Tools -> Export to -> LastPass CSV file“. Save the file to your Home folder.

keepassx-lastpass-export

Next, download the lastpass2keepass script, extract the files and move the lastpass2keepass.py file to your Home folder. (You must make sure that the LastPass export file and the lastpass2keepass.py file are in the same folder)

Open a terminal and type:

chmod +x lastpass2keepass.py
python lastpass2keepass.py lastpassexport keepass.xml

Remember to replace the lastpassexport to the Lastpass export filename.

If everything goes smoothly, you should have a lastpassexport.export.xml file in the same folder. This will be in KeePassX format. Now open your KeePassX and import this XML file in.

keepassx-import

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Damien Oh Avatar

Read next

Content and cloud networks now account for three-quarters of used international bandwidth, while Google, Meta, Microsoft and Amazon own, co-own or buy capacity on a growing share of the 600-plus submarine cable systems carrying over 99 per cent of data between countries, a private map hidden below the wireless internet
Wi-Fi doesn’t actually slow down when a café gets crowded — the signal is fine, but every device has to wait its turn to speak on the same frequency, and the polite queuing is what you feel as lag
In 1988, a 23-year-old Cornell graduate student named Robert Morris released a self-replicating program to measure the size of the internet — within hours it had crashed roughly 6,000 of the 60,000 machines then online, and computer security became a field
In July 2026, Psy’s Gangnam Style passed six billion YouTube views, fourteen years after its horse-riding dance became the platform’s first billion-view video and long after engineers had replaced a counter designed to stop at 2,147,483,647
Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark