This is a command-line tool that converts CSV files from Bitwarden format to 1Password format. It provides a simple way to migrate your password data from Bitwarden to 1Password.
- Converts CSV files from Bitwarden format to 1Password format.
- Supports reverse conversion from 1Password to Bitwarden.
- Maps Bitwarden fields to corresponding 1Password fields.
- Matches fields according to the provided mapping
- Handles additional fields through the
extrasfield. - Preserves the original structure and order of records in the CSV file.
To use the Bitwarden to 1Password CSV converter, follow these steps:
- Ensure you have Rust installed on your machine.
- Clone this repository
- Open a terminal and navigate to the project directory.
To compile the program, use the following command:
cargo build --release
To convert a Bitwarden CSV file to 1Password format, use the following command:
./target/release/csv-converter -i <input_file.csv> -o <output_file.csv>
Replace <input_file.csv> with the path to your Bitwarden CSV file, and <output_file.csv> with the desired path and name for the converted 1Password CSV file.
By default, the program converts from Bitwarden to 1Password format. To perform a reverse conversion from 1Password to Bitwarden, use the -r or --reverse flag:
./target/release/csv-converter -i <input_file.csv> -o <output_file.csv> -r
The program maps the following Bitwarden fields to 1Password fields:
foldermaps toTagsfavoritemaps toFavoritetypedoes not have a direct mapping (included inExtrasfield)namemaps toTitlenotesmaps toNotesfieldsdoes not have a direct mapping (included inExtrasfield)repromptdoes not have a direct mapping (included inExtrasfield)login_urimaps toUrllogin_usernamemaps toUsernamelogin_passwordmaps toPasswordlogin_totpmaps toOTPAuth
Any unmatched fields from the Bitwarden CSV file are merged into the Extras field using square brackets in the format [field_name: field_value].