I had written this above:
For those who don’t want to click on links, here are the full instructions:
- Open the exported file in Excel, and ensure that you can see three columns with the column headers
url
,username
, andpassword
. - Go to Save As, and save the file under a different name. Ensure that the selected file type is “CSV UTF-8 (Comma delimited) (*.csv)”.
- Change the header of the
url
column tologin_uri
instead ofurl
. Ensure that the new column title is all lowercase, and ends withi
(notl
) . - Change the header of the
username
column tologin_username
(all lowercase) instead ofusername
. - Change the header of the
password
column tologin_password
(all lowercase) instead ofpassword
. - Add a 4th column (Column D), and name it
type
(all lowercase). Copy and paste the wordlogin
(all lowercase) into every element of thetype
column (from the second row to the row that has the last login item from your old vault). - Make 6 empty columns (Columns E-J), and name the column headers as follows:
folder
,favorite
,notes
,fields
,reprompt
,login_totp
(all lowercase). - Insert an empty column (Column A) just before the
login_uri
column, and give this column the titlename
(all lowercase). - Assuming that the
login_uri
column is now the second column (Column B), enter the following Excel formula in the first empty cell of the first column (Cell A2):*
=IF(ISNUMBER(SEARCH("www",B2)), PROPER(MID(B2, FIND("://",B2)+7, IFERROR(FIND("/",B2,FIND("://",B2)+7), LEN(B2)+1) - FIND("://",B2) - 7)),PROPER(MID(B2, FIND("://", B2) + 3, IFERROR(FIND("/", B2, FIND("://", B2) + 3), LEN(B2) + 1) - FIND("://", B2) - 3)))
- Copy the Excel formula from Cell A2, and paste it into all remaining cells in Column A (starting at A3, and ending at the last row of your exported data).
- Save the file after making all the above changes.
- If the contents of your vault need to be cleared to start over from a clean slate (e.g., because you made prior import attempts that created unusable vault items), then log in to the Bitwarden Web Vault, and choose the option to Purge your vault (it’s advisable to first create a JSON or ZIP export of your Bitwarden vault, in case you later realize that some of the vault contents should not have been deleted). Log out, log back in, and verify that your vault is completely empty.
- Import the new CSV file, selecting Bitwarden CSV as the file format.
Please heed the previous warning that Microsoft Authenticator exports do not include any TOTP authentication keys, so make sure that you keep your Microsoft Authenticator account until you have manually reset the TOTP keys for all of your accounts.
*Credit to Reddit users Alatrix and RexNocti for contributing to the development of the Excel formula used in Step #9.