Imports
The Imports screen turns a statement you downloaded into transactions in your journal. It uses hledger’s own hledger import and your existing *.rules files, so an import done here gives the same result as one run from a terminal.
Imports has three tabs. Press 1–3 to switch between them. A plain link to Imports opens New Transactions.
- Accounts lists your bank and card accounts: the ones linked through SimpleFIN Bridge, which sync new transactions for you, and the ones you import by hand, with when each last had a transaction. The desktop app only.
- New Transactions is where you drop a statement file, choose the rules file that reads it, preview the proposed transactions and write them.
- Edit Rules lists the
*.rulesfiles beside your journal and lets you edit their settings, column mapping, default accounts andifrules.
Account aliases used to be a third tab here. They now live under Settings → Account Aliases, and Ledgeline forwards an old bookmark to the Imports tab there.
What you need first
Imports runs hledger, so Ledgeline needs hledger 1.40 or newer. If it can’t find one, or finds one that is too old, the New Transactions tab shows a banner where you can type the path to the binary. The rest of the tab stays hidden until hledger works.
Ledgeline also needs a journal file it can write to. If it was started without one, New Transactions explains that there is nowhere for an import to go, and Edit Rules still works read-only.
Supported formats
Ledgeline converts whatever you drop into one CSV, then hands that CSV to hledger with the rules file you choose.
| Format | Extensions | Notes |
|---|---|---|
| Delimited text | .csv, .tsv, .ssv | Ledgeline guesses the delimiter and the text encoding and tells you when it guessed. |
| OFX family | .ofx, .qfx, .qbo | Each transaction’s FITID becomes a fitid column, which makes re-downloads safe. See re-downloads. |
| Spreadsheets | .xls, .xlsx, .xlsm, .xlsb, .ods | Ledgeline reads one sheet and says which. |
| QuickBooks Online Journal report | .xlsx | Detected from the file’s contents and handled by its own panel. See Importing from QuickBooks. |
| QIF and QMTF | .qif, .qmtf | A whole set of books from Banktivity, Quicken, Moneydance or GnuCash, handled by the same panel as QuickBooks. See Importing a QIF file. |
| Xero, GnuCash, hledger CSV, YNAB, Monarch, Copilot | .csv | Recognised from the column headings and handled by the same panel as QuickBooks. Ordinary bank CSVs still go to the rules screen. See Importing from other apps. |
Ledgeline refuses PDF statements. The numbers in a PDF aren’t reliably where they appear to be, so Ledgeline asks you to download CSV, OFX/QFX or a spreadsheet from your bank instead. The research behind that decision is in PDF extraction.
What Ledgeline will not do
There is no raw text editor for rules files or journals. The Edit Rules tab covers the settings, the column mapping, the two default accounts and an ordered list of if rules. The tab shows anything it can’t model safely as read-only and saves it byte for byte. For everything else, open the file in your editor.
Ledgeline also never runs a rules file’s source ... | COMMAND line, because that would let a file run arbitrary programs. Security in the developer notes explains the full set of guards.
Pages in this section
- New transactions: drop a statement, check the preview, write it.
- Bank sync: link accounts through SimpleFIN Bridge so new transactions arrive on their own, and fix a connection when it breaks.
- Creating a rules file: let Ledgeline draft a rules file for a statement that has none.
- Editing rules: what the rules editor can change and what it leaves alone.
- Importing from QuickBooks: bring in a QuickBooks Online Journal export and map its accounts.
- Importing a QIF file: bring in the accounts, categories, splits and transfers of a QIF or QMTF export.
- Importing from other apps: bring in a Xero, GnuCash or hledger posting-row CSV, or a YNAB, Monarch or Copilot transactions export.
How the import pipeline works internally, and why, is in Imports internals.