How to convert a CSV to OFX for Xero, YNAB and GnuCash

OFX is the standard bank statement format that most accounting and budgeting apps understand. Converting your CSV to OFX avoids column-mapping headaches.

Why use OFX instead of CSV?

Many apps accept CSV, but each wants its own column layout, and you map the columns every time. OFX has one fixed structure, so the app knows exactly which field is the date, the amount and the payee. It also carries transaction IDs that help prevent duplicates.

Convert the CSV

  1. Open the CSV to OFX converter and drop in the file.
  2. Check the columns, the account type and the signs.
  3. Download the .ofx file.
Convert CSV to OFXFree CSV to OFX converter. Runs in your browser, nothing uploaded.Open converter

Import it

  • Xero: Accounting → Bank accounts, choose the account, then Manage account → Import a statement.
  • YNAB: open the account, choose Import, and select the .ofx file.
  • GnuCash: File → Import → Import OFX/QFX, then match the account.
  • QuickBooks: use a QBO file instead, from the CSV to QBO converter.

Setting up the CSV

Download the CSV from online banking for the date range you need. The converter finds the date, description and amount columns automatically, including files with separate debit and credit columns. Check the preview: money out should be negative, money in positive.

Credit cards

Choose Credit card as the account type. If the card company lists purchases as positive numbers, tick "Reverse signs". Xero and YNAB then show charges as spending and payments as money in.

Avoiding duplicates

Xero and YNAB use the transaction IDs in OFX files to spot repeats. The converter makes stable IDs from each transaction's date, amount and description, so converting the same CSV twice won't create duplicates. Still, pick date ranges that don't overlap with what is already imported.

Which apps accept OFX?

Most accounting and budgeting software accepts OFX, including Xero, YNAB, GnuCash, Moneydance and Banktivity. For QuickBooks, use QBO, a variant of OFX that QuickBooks checks for.

Questions

Does Xero accept OFX files?

Yes. Import it as a bank statement from the bank account's Manage account menu.

Is OFX the same as QFX or QBO?

They share the same structure. QFX and QBO add details that Quicken and QuickBooks check for.