Easily convert a Nextcloud Passwords (NP) database to a Bitwarden Vault (BW). This script is based on @monperrus work I found here. I wanted to update this script to make it work for my own migration from NP to BW.
- Clone repository:
https://github.com/godisopensource/np2bw.git
- Ensure you have all necessary dependancies installed:
pip install csv json
- Export your Nextcloud passwords as "Predefined csv" and put it in the same folder as this script.

- Put its path into
csv_file_pathvariable - The script will then convert your file to a
.jsonfile (which will be easier for BW to understand) and apply the correct formatting to your database, so it will be easily imported into BW. - Import your newly genrated
.jsonfile into Bitwarden, and you're done!
Many thanks to Martin Monperrus for having provided a base code and having been open to contributions. Feel free to contribute to this project too.