Convert bitwarden json export to a csv that can be imported into KeepassXC
Go to file
Siddhartha Golu 5c25926897
Merge pull request #4 from xswordsx/patch-1
Set proper module name
2024-01-31 09:27:14 +05:30
LICENSE add converter script 2023-07-24 23:00:33 +05:30 Update 2023-09-19 20:21:24 +02:00
go.mod Set proper module name 2024-01-31 00:23:03 +02:00
json2csv.go fix Usage hint 2023-09-19 20:31:16 +02:00

Bitwarden to KeepassXC Converter

KeepassXC doesn't have a native import feature from Bitwarden (yet). This is a simple script which converts a bitwarden export to a csv format which can be imported in KeepassXC.

It supports exporting your normal website logins including TOTP, secure notes and credit/debit cards. Since there are no username/password fields for credit/debit card type, the script adds a new group called "Cards" and imports all the card details in "notes" field.


You need to have golang installed.


  • Create an export from bitwarden: Tools -> Export vault -> .json format
  • Run the script from the main folder: go run json2csv.go <exported_file.json>
  • Import the generated file into KeepassXC, check "First line has field names", match appropriate columns and proceed.