Plain-Text Accounting: Track Money in a File You Own
Quick answer
Plain text accounting is bookkeeping done with plain text files and command-line-friendly software such as Ledger, hledger, or Beancount. You log each movement of money as a few lines in a file, and the tool reads that file and prints reports. The file is yours: you can open it in any editor, search it, and keep it under version control.
How it actually works
The model is simple. In hledger's words, you put a log of transactions in and get reports out. You don't need anything else to produce a balance sheet or an income statement. The file is the data.
A transaction in a few lines
Here is the sample from hledger's home page:
2025-12-02 rent paid
assets:checking $-800 ; from checking
expenses:rent $800 ; to rentThe first line is the date and a description. The indented lines are postings: one account the money left, one account it went to. This is double-entry bookkeeping, where both the source and the destination of every movement are recorded, and simple arithmetic checks help catch mistakes. The two amounts above add up to zero, so the entry balances.
You can also leave one amount out. hledger's example of a client payment has an income:consulting posting with no amount, and the missing amount is inferred. Here is the same idea for paying a credit card:
2025-08-30 * pay credit card
liabilities:credit-card $10
assets:checkingPlus and minus instead of debit and credit
Traditional bookkeeping labels the two sides "debit" and "credit". Most plain text tools use negative and positive numbers instead, which hledger says makes it easier to learn than traditional double entry. One side effect: income and liabilities can show up as negative balances in reports.
The tools: Ledger, hledger, and Beancount
The plaintextaccounting.org apps table lists three main tools: Ledger (C++, started 2003), hledger (Haskell, 2007), and Beancount (Python, 2008), plus many smaller projects. Ledger invented the file format that the whole genre grew from. hledger was inspired by Ledger and can convert to and from Beancount format.
They are not interchangeable. Beancount's file format differs from Ledger's and hledger's, and the hledger FAQ describes it as having best-in-class capital gains tracking as of 2025 and an excellent web app, Fava. Pick one, learn its format, and convert later if you outgrow it. Switching isn't a rewrite.
Why a file you own
Three reasons come up again and again:
- It stays on your computer. Data and software are kept locally, so your financial data stays private and under your control. It works offline, and there is no database or configuration to set up.
- It has a history. Plain text files are ideal for version control: you can review and audit every change and roll back at any time. If you already version-control your notes with Git, the same habit covers your books.
- It outlasts the app. A file you can read in any editor does not depend on one vendor staying around, which is the same argument for why plain text notes outlast every app.
Getting bank data in
Typing every transaction by hand sounds like a chore. hledger's FAQ says it is not a pain if you spend a few minutes every day, and hledger add walks you through entering one. For bank data the FAQ describes a three-step workflow:
- Download recent CSVs from your bank's website.
- Run
hledger import ACCT1.csv ACCT2.csv. - Review and clean up the new entries in your journal.
CSV rules files can skip duplicate transfers, for example when money moves between two of your own accounts. One limit to know: rules cannot do arithmetic, so preprocess the CSV if you need that. If a bank export looks broken, our guide to the CSV quoting rules explains the usual causes.
When to use it (and when to skip it)
It isn't for everyone, and the project says so itself. hledger's own docs say it is not yet easy for completely non-technical people to install and use without help, not easy to use on a phone, not equipped with mature, polished GUIs or easy charts, not able to download directly from banks, and not masterable in a day or even a week. Double-entry bookkeeping is also a deep topic, and as a newcomer you may feel there is both too much and not enough to read.
It suits you if you like text files, want private and portable records, and are fine with a command line. If you only want to log a few purchases, a simple Markdown table for spending may be all you need, and you can move to a real tool later.
How Carets fits in
A plain text journal is just a text file, so you want a comfortable place to read and edit it. Carets is a native notes and code editor for iPhone, iPad, and Mac, built for Apple platforms rather than as a web wrapper.
- Plain text and code in one editor. Open a
.journalfile next to your notes and edit it as plain text, with syntax highlighting for code and config files where it helps. - Files, projects, and tags. Keep your journal, bank CSVs, and rules files together in one project and find them again quickly.
- Portable files. Everything stays plain text, so the same files work with hledger or Git on a Mac.
Carets does not run hledger itself; it is where you read and edit the file. Get Carets on the App Store for iPhone, iPad, and Mac.
Frequently Asked Questions
What is plain text accounting?
It is bookkeeping done in plain text files with command-line-friendly tools such as Ledger, hledger, or Beancount. You log transactions in a file, and the tool produces reports from it.
Do I need to know accounting to start?
No. hledger's FAQ says plus and minus signs usually replace credit and debit labels, which makes it easier to learn than traditional double entry. Expect a learning curve all the same.
Can I import my bank's data?
Yes, through CSV files you download yourself. You run an import command and then review the new entries. hledger's docs say it cannot download directly from banks.
Is it a good fit for everyone?
No. hledger's own docs say it is not yet easy for non-technical people, not easy to use on a phone, and without mature, polished GUIs. If that sounds like you, start with a simple table.