hledger and Beancount

Tips for co-using/converting/switching Beancount and hledger.

See also:

Beancount's journal format is similar to hledger's, but different enough that neither can read the other's files.

There are two old converters: beancount2ledger and ledger2beancount. They are not actively maintained, and limited in what they support.

Since hledger 1.32, and especially in hledger 1.40.99+, the best option for exporting from hledger to beancount is hledger's print command, which supports beancount output.