A simple Python script to convert password databases exported from SafeInCloud into a CSV format suitable for importing into KeePassXC.
This script addresses a common migration path for users switching password managers. It parses a JSON export file, generated by an external tool, and reformats the essential data (login and password) into a structured CSV file that KeePassXC can easily import.
- Input Format: JSON, generated using the joncastro/SafeInCloud export tool.
- Output Format: CSV, compatible with the import functionality of KeePassXC.
- Targeted Conversion: Extracts only the essential
loginandpasswordfields for a clean import. - Group Organization: Automatically creates a
Grouppath in the formatRoot/Titlefor better organization in KeePassXC. - No Dependencies: Runs using only standard Python libraries.
- Python 3.x
-
Export from SafeInCloud:
- Use the joncastro/SafeInCloud tool to export your database as a JSON file (e.g.,
safeincloud_export.json).
- Use the joncastro/SafeInCloud tool to export your database as a JSON file (e.g.,
-
Download the Script:
- Clone this repository or download the
safe2KeePass.pyscript to your local machine.
- Clone this repository or download the
-
Run the Conversion:
- Open a terminal or command prompt.
- Navigate to the directory where you saved the
safe2KeePass.pyscript and your JSON export. - Run the script using the following command structure:
python safe2KeePass.py <input_json_file> <output_csv_file>
To convert a file named safeincloud_export.json into a new file named import_to_keepass.csv, you would run:
python safe2KeePass.py safeincloud_export.json import_to_keepass.csv