A simple way to generate KeePass KeyFiles in spreadsheets (LibreOffice Calc version).
KeePassKeyFile in LibreOffice Calc / ODS file
KeePassKeyFile in MS Office Excel / XLSX file
No codes. Just spreadsheet formulas. Just select the cells with the generated XML code, copy and paste in your regular text/code editor to save it as a .keyx file according to the official specifications to create key files for KeePass.
Note
The 2026 versions include several improvements:
- Compatibility: XLSX and ODS versions work with Excel 365, 2019–2024, Web, and Mobile (tested on Android).
- LibreOffice: The ODS version is compatible with LibreOffice Calc (2025–2026 versions).
- Efficiency: The XLSX version utilizes modern formulas that significantly reduce file size and manual effort.
- Array Formulas: ODS versions now support array formulas, though they are optimized for specific spreadsheet applications.
Important
ODS versions have been updated to support modern array formulas.
Warning
These formulas are application-specific. Ensure you are using a compatible version of LibreOffice Calc to avoid broken functionality.

