What is an OFX file, and how do you open it?
QuickBooks, Xero & OFX · · Updated · 7 min read
OFX stands for Open Financial Exchange. It's a standard format for financial data, and it's what most banks use when you download your transactions "for accounting software". If your bank's download page offers OFX, QFX or QBO, those are all versions of it.
What an OFX file contains
An OFX file holds one or more account statements. Each one has the account number and type, the currency, the period the download covers, usually a closing balance, and a list of transactions. Every transaction has:
- a type, such as DEBIT, CREDIT, POS or CHECK
- the date it was posted
- the amount, negative for money out
- a description, in the NAME and MEMO fields
- an ID, called the FITID, which software uses to recognise a transaction it has already imported
Because every value is labelled, software can import an OFX file without asking you which column is which. That's why Xero recommends OFX over CSV for manual imports.
What one looks like
Here is a shortened OFX 1 file for a checking account, with one transaction. You can download the full sample (made-up data, nine transactions) to try in your own software.
OFXHEADER:100
DATA:OFXSGML
VERSION:102
…
<OFX>
<BANKMSGSRSV1>
<STMTTRNRS>
<STMTRS>
<CURDEF>USD
<BANKACCTFROM>
<BANKID>999999999
<ACCTID>1234567890
<ACCTTYPE>CHECKING
</BANKACCTFROM>
<BANKTRANLIST>
<DTSTART>20260301120000
<DTEND>20260331120000
<STMTTRN>
<TRNTYPE>POS
<DTPOSTED>20260305120000
<TRNAMT>-38.75
<FITID>20260305001
<NAME>CORNER GROCERY #114
<MEMO>Debit card purchase
</STMTTRN>
</BANKTRANLIST>
<LEDGERBAL>
<BALAMT>4309.63
<DTASOF>20260331120000
</LEDGERBAL>
</STMTRS>
… - The header (the lines before
<OFX>) says which version and character set the file uses. - BANKACCTFROM identifies the account: the bank's routing number in BANKID, the account number in ACCTID, and CHECKING, SAVINGS, MONEYMRKT or CREDITLINE in ACCTTYPE. A credit card download uses CREDITCARDMSGSRSV1 and CCACCTFROM instead, with no BANKID or ACCTTYPE.
- DTSTART and DTEND are the period the download covers. OFX dates are written year first, YYYYMMDD, often followed by a time, so there is no month-or-day-first confusion as there is in a CSV.
- Each STMTTRN is one transaction. TRNAMT is signed: negative is money out of the account.
- LEDGERBAL is the balance at the end of the period, with the date it applies to.
Two versions
OFX 1 files start with a header such as OFXHEADER:100 and use an older markup style
where most fields aren't closed. OFX 2 files are XML, starting with <?xml. Both
carry the same information, and most software reads both.
OFX, QFX and QBO
QFX and QBO are OFX files with some of Intuit's own fields added. QFX is for Quicken and QBO for QuickBooks; the most important addition is INTU.BID, which identifies the bank. There's more on that in what is a QBO file?
What opens OFX files
- Xero imports them as bank statements, and recommends them.
- QuickBooks Online accepts .OFX in Upload from file. QuickBooks Desktop's Web Connect wants .QBO instead.
- GnuCash and many other personal finance apps import OFX.
- Excel and Google Sheets don't understand the format, so convert it to CSV first.
Why an OFX file won't import
When software rejects an OFX file, or imports it wrongly, it is usually one of these:
- It isn't an OFX file. Some download pages save a web page or a CSV with an .ofx
name. Open it in a text editor: a real one has an
<OFX>section. - Missing or repeated FITIDs. Importers use the FITID to recognise transactions they already have. With none, they may refuse the file; with the same one on two transactions, they may keep only one of them. See duplicate transactions after a bank import for the opposite problem.
- A bare & in a name. OFX expects
&, so a merchant like AT&T written as-is can stop a strict importer. - The wrong kind of account. A card download (CCACCTFROM) imported into a bank account, or the other way round, is refused or comes in with the signs flipped.
- A QBO file without a recognised bank ID. QuickBooks Desktop's Web Connect checks INTU.BID against the banks registered with Intuit. See QuickBooks Desktop without a QBO file.
To see what each problem looks like, open this broken sample in the OFX viewer: it has a missing FITID, a repeated one and a bare &, and the viewer points out each of them. For QuickBooks specifically, see why a bank file won't import into QuickBooks.
How to look inside one
An OFX file is plain text, so any text editor will open it, but a long one is hard to read that way. The free OFX and QFX viewer lays it out as a table, with the account, period and totals at the top. It flags anything likely to break an import, and converts the transactions to CSV, or to the CSV layouts QuickBooks Online and Xero use. It runs in your browser, so the file isn't uploaded. For step-by-step help, see how to convert an OFX or QFX file to CSV or Excel.
Related guides & tools
- Free OFX & QFX File Viewer →
View, repair, and export OFX/QFX/QBO files in your browser.
- Bank CSV to OFX Converter →
Convert CSV spreadsheets into accounting-compatible OFX.
More on bank files and imports
- What is a QBO file? (and how to open one) A QBO file is a bank download for QuickBooks Web Connect. What’s inside, which QuickBooks versions open it, and how to view or convert one without it.
- How to convert an OFX or QFX file to CSV or Excel Excel can’t read an OFX or QFX file as a table. How to turn one into a clean CSV in your browser, and what to check before you use it.
- Bank file won’t import into QuickBooks? Fixes for QBO, QFX and OFX errors What QuickBooks’ import errors mean, how to find the problem inside a .QBO, .QFX or .OFX file, and how to fix it or get the transactions in another way.
- How to import a bank CSV into QuickBooks Online What QuickBooks Online expects from a bank CSV, why most bank exports don’t fit, how to fix one in Excel, and a free tool that does it for you.
- QuickBooks Online CSV import errors: what each one means and how to fix it Why QuickBooks Online rejects a bank CSV, from column mapping and currency formats to dates, special characters and money-out-only files, and each fix.
- Getting bank transactions into QuickBooks Desktop without a .QBO file QuickBooks Desktop’s Web Connect only reads .QBO files. What to do when your bank gives you a CSV, OFX or PDF instead, including Batch Enter Transactions.
- Xero bank statement import failed? Fixes for CSV and OFX errors Why Xero flags or rejects a bank statement import, how to fix a CSV it won’t take, what to do when only some lines import, and how to avoid duplicates.
- Duplicate transactions after a bank import: why it happens and how to clean up Why bank imports create duplicates in QuickBooks and Xero, how to remove them in each, and how to stop it happening on the next import.