Import Data from LastPass

Category: Import & Export
On this page:

    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:

    Note

    A previous version of this article stated that you needed to use the Browser Extension to export Form Fills (e.g. Addresses and Payment Cards), however testing by Bitwarden’s Customer Success team found that using either LastPass application to download a standard LastPass CSV will include Form Fills in your export.

    From the LastPass Web Vault

    To export your data from the LastPass Web Vault:

    1. Select the Advanced Options option on the left sidebar:

      Export from Web Vault
      Export from Web Vault
    2. From the Manage Your Vault section, select the Export option.
    3. Enter your Master Password to validate the export attempt.

      Depending on your browser, your Vault data will either be automatically saved as a .csv or printed to the screen in a .csv format:

      LastPass Export
      LastPass Export
    4. If your Vault 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 (&, <, >, etc.) to their HTML-encoded values (for example, &amp;) 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.

    From a LastPass Browser Extension

    To export your data from a LastPass Browser Extension:

    1. In the Browser Extension, navigate to Account OptionsAdvancedExportLastPass CSV File:

      Export from Browser Extension
      Export from Browser Extension
    2. Enter your Master Password to validate the export attempt.

      Depending on your browser, your Vault data will either be automatically saved as a .csv or printed to the screen in a .csv format:

      LastPass Export
      LastPass Export
    3. If your Vault data was printed to the screen, highlight the text and copy and paste it into a new export.csv file.

    Import to Bitwarden

    Importing data to Bitwarden can only be done from the Web Vault or CLI. Data is encrypted locally before being sent to the server for storage. To import your data:

    1. In the Web Vault, select Tools from the top navigation bar.
    2. Select Import Data from the left-hand Tools menu.
    3. From the format dropdown, choose LastPass (csv) from the File Format dropdown.

    4. Select the Choose File button and add the file to import or copy/paste the contents of your .csv into the input box.

      Warning

      Import to Bitwarden can’t check whether items in the file to import are duplicative of items in your Vault. This means that importing multiple files will create duplicative Vault items if an item is already in the Vault and in the file to import.

    5. Select the Import Data button to complete your import.
    6. After successful import, delete the source .csv file from your computer. This will protect you in the event your computer is compromised.

    Currently, file attachments are not included in Bitwarden import operations and will need to be uploaded to your Vault manually. For more information, see File Attachments.

    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:

    Cipher errors in the Web Vault
    Cipher errors in the Web Vault

    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 item type of the offending item.
    • "Facebook" identifies the name 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.

    Maximum Collections Error

    When importing Lastpass .csv exports to a Free Organization, you may observe the following error:

    Free Organization Max Collections Error
    Free Organization Max Collections Error

    This error occurs when the Lastpass export contains 3 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,0
    

    To 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,0
    

    down to:

    https://github.com/login,username,password,,,Github,0