Import Data from LastPass
Use this article for help exporting data from LastPass and importing into Bitwarden.
Export from LastPass
You can export your data from LastPass from their web vault or from a LastPass browser extension:
To export your data from the LastPass web vault:
Select the Advanced Options option on the left sidebar:
![Export from web vault]()
Export from web vault From the Manage your Vault section, select the Export option. At this stage, LastPass will send you an email to confirm the export.
In your inbox, confirm the export, return to your LastPass web vault, and select the Export option again to complete export.
Depending on your browser, your data will either be automatically saved as a
.csvor printed to the screen in a.csvformat:![LastPass export]()
LastPass export If your data was printed to the screen, highlight the text and copy and paste it into a new
export.csvfile.
warning
Some users have reported a bug which changes special characters in your passwords (&, <, >, and so on) to their HTML-encoded values (for example, &) in the printed export.
If you observe this bug in your exported data, use a text editor to find and replace all altered values before importing into Bitwarden.
To export your data from a LastPass browser extension:
In the browser extension, navigate to Account Options → Advanced → Export → LastPass CSV File:
![Export from Browser Extension]()
Export from Browser Extension Enter your master password to validate the export attempt.
Depending on your browser, your data will either be automatically saved as a
.csvor printed to the screen in a.csvformat:![LastPass export]()
LastPass export If your data was printed to the screen, highlight the text and copy and paste it into a new
export.csvfile.
Import to Bitwarden
Data must be imported to Bitwarden from the web vault or CLI. Data is encrypted locally before being sent to the server for storage.
To import data to your vault:
Log in to the web vault at https://vault.bitwarden.com, or
https://your.bitwarden.domain.comif self-hosting.Select Tools from the top navigation bar.
Select Import Data from the tools menu.
From the format dropdown, choose a file format.
Select Choose File and add the file to import or copy/paste the contents of your file into the input box.
warning
Importing does not check whether items in the file to import already exist in your vault. If you import multiple files or import files with items already in your vault, this will create duplicates.
Select Import Data to trigger the import.
After successful import, delete the import source file from your computer. This will protect you in the event your computer is compromised.
File attachments will need to be manually uploaded to your vault.
To import data to your vault from the CLI, use the following command:
bw import <format> <path>bw import requires a format (use bw import --formats to retrieve a list of formats) and a path, for example:
bw import lastpasscsv /Users/myaccount/Documents/mydata.csvAfter successful import, delete the import source file from your computer. This will protect you in the event your computer is compromised.
Import troubleshooting
The following error messages, typically received when attempting to import a .csv, indicate that an item in your import file has a specified value that exceeds the allowed encrypted character limit for its field type:

To solve this issue, open the .csv file in a text editor or spreadsheet program and remove or reduce the character count of the offending item. Bitwarden won't import your .csv file until it is free of offenses. The contents of the error messages contain several pieces of pertinent data to help you identify the offending item. For example, in the above example:
[1]identifies the index number where the offending item is located, adjusted to match row numbering in most spreadsheet programs.[Login]identifies the vault itemtypeof the offending item."Facebook"identifies thenameof the offending item.Notesindicates the field (column) where the character limit is exceeded.10000indicates the character limit allowed for that field (column).tip
On import to Bitwarden, the character count of any given field is increased due to encryption, meaning that an 8000-character
Notesfield in your.csvwill scale to 10,000+ characters when it comes into contact with Bitwarden, triggering this error. As a rule of thumb, character counts will grow between 30-50% when encrypted.
If you continue to have trouble locating the offending item using the data provided in the error, it may help to focus first on notes as these are frequently the cause of this error.
Maximum collections error
When importing Lastpass .csv exports to a free organization, you may observe the following error:

This error occurs when the LastPass export contains three or more grouping values. The values in the grouping field are interpreted by Bitwarden as collections, however free organizations are limited to only two collections. The following .csv, for example, would cause this error:
url,username,password,totp,extra,name,grouping,fav
https://www.facebook.com/login.php,username,password,,,Facebook,Social,0
https://twitter.com/login,username,password,,,Twitter,Social,0
https://asana.com/,login,password,,,Asana,Productivity Tools,0
https://github.com/login,username,password,,,Github,Productivity Tools,0
https://www.paypal.com/login,username,password,,,Paypal,Finance,0
https://www.bankofamerica.com/,username,password,,,Bankofamerica,Finance,0To solve this issue, delete the grouping column and the grouping datum for each item, including the trailing comma, for example edit:
https://github.com/login,username,password,,,Github,Productivity Tools,0down to:
https://github.com/login,username,password,,,Github,0

