Export passwords, notes and TOTPs from Buttercup to Keepassxc
- Unlock your buttercup vault
- Export your vault to CSV (MENU > Current Vault > Export)
- Compile the program or download the binary from latest release
- compile:
bun build ./main.ts --compile --outfile bcup2kpass
- download: releases page
- compile:
- Feed the CSV into the program
./bcup2kpass --input BUTTERCUP_CSV --output KEEPASSXC_CSV
- Import the output csv into keepass (MENU > Database > Import)
- Finish the import wizard as you wish
- This scritpt works as of September 2024, might not work in the future, use at your own risk
- Nested groups will be flatten
- Groups with the same name will be merged
- Groups from Buttercup's trash will be ignored
- Any custom fields that begins with
otpauth://
will be exported as TOTP - Any other fields that does not qualify as TOTP will be exported as notes using the following pattern
FIELD_1_NAME: FIELD_1_CONTENT FIELD_2_NAME: FIELD_2_CONTENT
- CSV fields are proprely escaped and passwords with commas and double quotes will be properly exported
- Buttercup does not export dates, therefore 'Created' and 'Last Modified' will be registed as the moment of export
- Test/Example files are avaliable on ./examples, the password for both buttercup and keepassxc vauts is
banana