Import Data from LastPass
Use this article for help exporting data from LastPass and importing into Bitwarden.
You can export your data from LastPass from their web vault or from a LastPass browser extension:
tip
You can skip this step and immediately start importing to Bitwarden using the Direct import option.
To export your data from the LastPass web vault:
Select the
Advanced Options option on the left sidebar: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
.csv
or printed to the screen in a.csv
format:If your data was printed to the screen, highlight the text and copy and paste it into a new
export.csv
file.
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 → Fix a problem yourself → Export vault items → Export data for use anywhere.
note
If you're using an old version of the LastPass browser extension, you may instead need to navigate to Account Options → Advanced → Export → LastPass CSV File.
Enter your master password to validate the export attempt.
Depending on your browser, your data will either be automatically saved as a
.csv
or printed to the screen in a.csv
format:If your data was printed to the screen, highlight the text and copy and paste it into a new
export.csv
file.
Data can be imported directly from LastPass or using an exported file from LastPass. If you're a member of a team using SSO with LastPass, a LastPass administrator will need to complete a short setup procedure before you can use the Direct import option (learn more) to import your personal data. In all cases, data is encrypted locally before being sent to the server for storage.
note
Refer to this LastPass support article to learn what is and is not supported for export from LastPass. Please note that Bitwarden does not support importing attachments.
tip
If you're a member of a team using SSO with LastPass, a LastPass administrator will need to complete a short setup procedure before you can use the Direct import option (learn more).
Password Manager browser extensions and desktop apps can import individual vault data directly from your LastPass account, without requiring you to upload a file. To do a direct import:
Log in to the Password Manager browser extension or desktop app.
In the browser extension, select the Settings tab and choose Vault and then the Import items option. Or, in the desktop app, select File > Import data.
Complete the following fields from the drop down menus:
Import destination: Select the import destination such as your individual vault or an organizational vault that you have access to.
Folder or Collection: Select if you would like the imported content moved to a specific folder or organization collection that you have access to.
File format: Select LastPass.
In the LastPass Instructions box, choose the Import directly from LastPass option.
Enter your LastPass email. If you're importing on behalf of your business, we recommend using the credentials of a LastPass admin. Using super admin credentials may cause import to fail.
Select the Import data button to trigger the import.
You will be prompted for your LastPass master password or, if your LastPass account uses SSO, to log in to your IdP. In either case, follow the prompts to log in to your LastPass account.
tip
If your LastPass account has multi-factor authentication activated, you will be prompted to enter a one-time passcode from your authenticator app. If you use Duo for MFA, only in-app approval is supported to fulfill your MFA requirement.
Additional items such as file attachments and trash will need to be manually uploaded to your vault.
Files can be imported to Bitwarden from most Password Manager apps (learn how to export a file from LastPass). In this section, we'll focus on importing using the web app:
Log in to the web vault at https://vault.bitwarden.com, https://vault.bitwarden.eu, or
https://your.bitwarden.domain.com
if self-hosting.Select Tools → Import data from the navigation:
Complete the following fields from the drop down menus:
Import destination: Select the import destination such as your individual vault or an organizational vault that you have access to.
Folder or Collection: Select if you would like the imported content moved to a specific folder or organization collection that you have access to.
File format: Select the import 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. If you are importing a password protected
.json
file, enter the password into the Confirm vault import window that will appear.After successful import, delete the import source file from your computer. This will protect you in the event your computer is compromised.
Additional items such as file attachments, and trash will need to be manually uploaded to your vault.
To import data to your vault from the CLI, use the following command:
Bashbw import <format> <path>
bw import
requires a format (use bw import --formats
to retrieve a list of formats) and a path, for example:
Bashbw import <format> /Users/myaccount/Documents/mydata.csv
After successful import, delete the import source file from your computer. This will protect you in the event your computer is compromised.
warning
The following IdPs are not supported for direct import by LastPass accounts using SSO:
Google Workspace
ADFS
If you're an administrator of a team using SSO with LastPass, you will need to complete the following before your team can use the Direct import option:
Add
bitwarden://sso-callback-lp
andbitwarden://import-callback-lp
as permitted callback URLs in your IdP's LastPass application.
If your users will use the Password Manager browser extension, add:
Add
https://vault.bitwarden.com/sso-connector.html?lp=1,
https://vault.bitwarden.eu/sso-connector.html?lp=1
, orhttps://your.server.com/sso-connector.html?lp=1
as a permitted callback URL in your IdP's LastPass application.Add
chrome-extension://nngceckbapebfimnlniiiahkandclblb
,ms-browser-extension://jbkfoedolllekgbhcbcoahefnbanhhlh
, and/ormoz-extension://23462205-0e62-4cc8-80c4-910cf54b82c2
as a permitted callback URL in your IdP's LastPass application.
Imports may be rejected for exceeding any of the following data limitations:
If your import has more than 7,000 items.
If your import has more than 2,000 folders.
If your import has more than 2,000 collections.
If your import has more than 7,000 item-folder relationships (e.g. a single item in 3 folders can be said to have 3 item-folder relationships).
If your import has more than 14,000 item-collection relationships (e.g. a single item in 3 collections can be said to have 3 item-collection relationships).
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 itemtype
of the offending item."Facebook"
identifies thename
of the offending item.Notes
indicates the field (column) where the character limit is exceeded.10000
indicates 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
Notes
field in your.csv
will 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.
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:
Bashurl,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,0
To solve this issue, delete the grouping
column and the grouping
datum for each item, including the trailing comma, for example edit:
Bashhttps://github.com/login,username,password,,,Github,Productivity Tools,0
down to:
Bashhttps://github.com/login,username,password,,,Github,0
Suggest changes to this page
How can we improve this page for you?
For technical, billing, and product questions, please contact support