How to convert an OFX or QFX file to CSV or Excel
QuickBooks, Xero & OFX · · 4 min read
Banks offer OFX and QFX downloads for accounting software, but sometimes you just want the transactions in a spreadsheet: to check them, total them, send them to someone, or import them into something that only takes CSV. Excel doesn't understand OFX's structure, so opening the file directly gives you a page of tags instead of a table.
Here's how to get a clean table out of it, and what to check once you have.
What's inside an OFX or QFX file
An OFX file is text. Each transaction is a block with a type, a date, an amount, an ID and a description, along these lines:
<STMTTRN>
<TRNTYPE>DEBIT
<DTPOSTED>20260105
<TRNAMT>-45.20
<FITID>20260105-001
<NAME>GROCERY STORE
</STMTTRN> A QFX file (for Quicken) and a QBO file (for QuickBooks) are the same thing with a few of Intuit's own fields added, so they convert the same way. Converting means turning each of those blocks into one row.
Convert it in your browser
- Open the free OFX and QFX viewer and drop in your .OFX, .QFX or .QBO file. It's read in your browser and isn't uploaded.
- Check what it found: the account, the statement period, money in and out, and every transaction. If anything in the file looks broken, such as missing dates or amounts, it says so and tells you how many rows are affected.
- Click CSV. You get one row per transaction with the date, description, amount, type, memo, check number and transaction ID.
- Open the CSV in Excel or Google Sheets.
If the spreadsheet is on its way into QuickBooks Online or Xero, use the QuickBooks CSV or Xero CSV button instead. They write the exact columns each one imports.
Check the result before you use it
- Signs. OFX amounts are signed: money out is negative. In a credit card file, purchases are negative and payments positive. That's correct, but it's the opposite of how the card statement prints them.
- Dates. The plain CSV writes dates as YYYY-MM-DD, which Excel recognises as dates whatever your regional settings. If you need another format, change it in Excel with Format Cells.
- Totals. Compare the money in and money out the viewer shows with your bank's figures for the same period. If they match, nothing was lost on the way.
When the file won't open at all
If the viewer reports the file has no OFX section, it isn't really an OFX file. Some banks label a CSV or a web page as a download, so check the download page for a different option. If it says sections were never closed, the download was cut off; download it again for a shorter period. There's more on fixing broken files in bank file won't import into QuickBooks.
And if your bank only gives you PDF statements, the statement converter turns those into CSV or Excel directly, checked against each statement's closing balance.
Related guides & tools
- Free OFX & QFX File Viewer →
Convert OFX, QFX, or QBO files to clean CSV tables.
- Bank CSV to QuickBooks Converter →
Format bank files for simple accounting import.
More on bank files and imports
- What is an OFX file, and how do you open it? OFX is the format banks use for transaction downloads. What’s inside, how it differs from QFX and QBO, which software opens it, and how to read one.
- 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.
- 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.