Importing Into Xero: The CSV Shape That Works First Time

Xero is stricter than QuickBooks about CSV structure and more forgiving about column names. Here is the shape that imports without an error, and why the amount column decides everything.

5 min read


Xero is stricter than QuickBooks about the shape of a CSV and more relaxed about what you call the columns. It also does something QuickBooks does not: it tries to warn you about duplicates even when the file gives it nothing to work with.

Understanding that warning — and the amount column that everything else depends on — is most of what you need. If you also use QuickBooks, its rules are different in ways worth knowing.

The minimum file

Date,Amount,Description
2024-10-02,-45.23,POS PURCHASE WALMART #3492
2024-10-03,2150.00,DIRECT DEPOSIT ACME PAYROLL

Three columns is enough. Xero asks you to map your headers to its fields during import, so the names are yours to choose — but the data has to be right.

Optional columns worth including when you have them: Payee separated from the rest of the description, Reference for cheque or transaction numbers, and Cheque Number where relevant. Xero uses these when suggesting matches against bills and invoices, which is where the time actually goes during reconciliation.

The amount column decides everything

Xero accepts two layouts and one is meaningfully safer.

One signed column. Money in positive, money out negative. Recommended, because there is a single rule and a single place for it to be wrong — and one check catches it.

Separate debit and credit columns. Xero handles this, and it doubles the number of ways a sign can go astray. The words are also treacherous: a bank statement's "credit" is money into your account, which is the opposite of a credit in your ledger. The full trap.

Whichever you use, verify with one subtraction: the sum of the amount column must equal closing balance minus opening balance. Same magnitude with the wrong sign means every row is inverted — obvious in the total, invisible row by row.

Formatting requirements are the usual ones and are worth restating because they cause most rejections: no currency symbols, no thousands separators, a full stop as the decimal point, -320.00 rather than (320.00), and no trailing spaces.

Dates

Xero asks for the format on import and offers the common ones. Two notes.

YYYY-MM-DD is the safest choice available because it cannot be misread whatever anyone selects. Where the source gives you day-month-year, converting once during export is cheaper than being careful on every import.

The failure that costs the most is the silent one: a file written as DD/MM/YYYY imported as MM/DD/YYYY throws an error on the first date after the 12th — but if the file happens to contain only dates in the first twelve days of a month, everything imports with day and month swapped and nothing complains. Arithmetic will not catch this either, because the amounts are untouched. Checking dates specifically.

The duplicate warning

Xero fingerprints each imported line from its date, amount and description, and warns when a line matches one already in the account.

This is a genuine safety net that QuickBooks CSV imports do not have, and it is worth treating as informative rather than as noise. It is usually right.

But know its limits. It matches on the three fields, so a re-export where the description was tidied — extra spaces removed, case changed, a reference stripped — produces a different fingerprint and imports as new. Two genuinely identical payments on the same day for the same amount will also trip it, and there the warning is a false positive: a client paying the same supplier twice on one day is unusual, not impossible.

So: read the warning, check whether the flagged rows are genuinely the same event, and only then proceed.

Bank rules and the ordering that saves time

Xero's bank rules automatically code transactions matching a condition. Set them up before importing a large backfill, not after.

Rules apply to transactions as they arrive in the reconciliation screen. Import a year of history first and you code it by hand, then write rules that would have done it. Write the rules first and the same import arrives largely coded.

Rules that survive contact with next month's statement match the stable part of a description. A rule matching "STRIPE" holds; a rule matching "STRIPE PAYMENT 4471 REF 88213" matches once and never again, because the reference changes. Writing rules that last.

Statement lines versus bank transactions

Worth understanding because it explains what an import can and cannot undo.

An import creates statement lines — the bank's version of events, sitting in the reconciliation screen awaiting treatment. Reconciling one creates or matches a bank transaction, which is the entry in your books.

Statement lines can be deleted while unreconciled. Once reconciled, the reconciliation has to be undone first, and if the period is locked, unlocked before that.

The practical consequence is the same as in QuickBooks: check the import before you start reconciling. Compare the count of imported lines against the transaction count on the statement, and compare Xero's closing bank balance against the printed one. Both take seconds. Both are much harder to act on afterwards.

Which format to use

Xero accepts CSV and OFX. It does not accept QBO, which is Intuit-specific, and it does not import XLSX.

OFX carries transaction IDs, so overlapping imports are handled properly rather than warned about. Prefer it when the data goes straight in.

CSV when you need to inspect or edit first — recategorising, fixing a description, splitting a row. Which, in practice, is more often than you would like, and is a good reason to produce both from the same conversion: CSV, XLSX, OFX or QBO.

The check that settles it

After importing, compare the closing bank balance Xero shows against the closing balance printed on the statement.

Equal means the right transactions arrived, once each. Not equal means compare counts: too many is duplicates, too few is a truncated import or a wrong date range, and out by exactly twice one transaction is a sign error on that row.

One comparison, and it either confirms the import or tells you which of three things went wrong.

Common questions

What columns does Xero need in a bank statement CSV?
Date, Amount and Description at minimum, with Payee and Reference optional. Xero accepts either one signed Amount column or separate debit and credit columns, and the single signed column is the one that leaves less room for a sign error.
Why does Xero say my statement lines are duplicates?
Xero fingerprints each line from its date, amount and description and warns when a file overlaps one already imported. That warning is usually correct and worth reading rather than dismissing, because it is the only duplicate protection a CSV import has.