hledger and GnuCash
Tips for co-using/converting/switching GnuCash and hledger.
Conversion tools. gnucash-xml, gnucash-sql, gnucash-sqlite indicate which GnuCash storage back ends are supported: XML, general SQL (sqlite/mysql/postgres), or sqlite only:
- WolfgangFahl/pynomina (updated 2025) converts between many formats, including gnucash-xml and beancount
- piecash/scripts/ledger.py (updated 2024) gnucash-sql to ledger
- lodenrogue/gnucash2ledger (2023) gnucash-xml to ledger
- tfree87/gnucash2ledger (2021) gnucash-xml to *ledger
- gnucash-xml-to-ledger-dat (2020) gnucash-xml to ledger
- gnucash-to-beancount (2017) gnucash-sqlite to beancount
- cookthebooks (2017) gnucash-xml to ledger
- pygnucash/gnucash2ledger.py (2014) gnucash-sqlite to ledger
Some related discussion:
- Import gnucash Files #332
- reddit: command line vs GUI (2023) how to export from hledger to gnucash
- HN: GnuCash Tutorial and Concepts Guide (2023) someone using gnucash and hledger together
- reddit: Current working gnucash exporter? (2021)
- reddit: GnuCash and ledger combination (2021)
- HN: Simple Personal Finance Tracking with GnuCash (2020) gnucash vs ledger
- Converting GNUCash's XML file to Ledger's DAT format (2020)
- Scripting with APL: Convert GNUCash XML format to Ledger CLI (2016) (apl)