How to convert a PDF bank statement to OFX

A bank statement PDF can’t be imported as it is, so the transactions have to be read from it and written into an OFX file. Then import the file into QuickBooks® Online, Xero or GnuCash. Quicken® for Windows and QuickBooks Desktop don’t take a plain OFX file.

By Boldsand Software Inc., makers of Sheets Converter. Checked on .

What an OFX file is

OFX (Open Financial Exchange) is a text format banks use to send transactions to accounting software. QFX (Quicken) and QBO (QuickBooks Web Connect) are Intuit’s versions of it. One OFX file holds one account: its number and currency, the statement period, the closing balance, and each transaction with its date, amount, name and an ID. This is one transaction from an OFX file:

<STMTTRN>
<TRNTYPE>CREDIT
<DTPOSTED>20260301120000
<TRNAMT>2500.00
<FITID>bf5a248b009bbfbd8e3a2eef66c9d675
<NAME>Payroll deposit
<MEMO>Payroll deposit
</STMTTRN>

The ID (FITID) lets the software tell transactions apart. Xero recognises duplicate transactions already imported in other files and excludes them.

Which programs import OFX

Which accounting programs import an OFX file, and what each says
ProgramImports OFX?What it says
QuickBooks® OnlineYesUpload from file takes .csv, .txt, .qbo, or .ofx files, up to 1,000 lines and 350 KB each.
XeroYesWe recommend using an OFX file where possible.
GnuCashYesFile, Import, Import OFX/QFX transactions.
QuickBooks® DesktopNoBank data comes in as Web Connect (.qbo) files from your bank. See importing into QuickBooks Desktop.
Quicken® for WindowsNoQuicken cannot import Excel (.xls), QuickBooks, PDF, or OFX files. Use a CSV instead.

Convert the PDF to OFX

  1. Open Sheets Converter with OFX chosen and add the statement PDF.
  2. Sheets Converter reads the transactions and checks every row against the balances printed on the statement.
  3. Download the .ofx file and import it into your accounting software.

OFX is offered for digital statements that print the account number, the currency, the statement period and the closing balance. Credit card statements get a card OFX file, with purchases as money out. For Quicken® for Windows, download the CSV for Quicken (Windows) instead.

Excel or CSV to OFX

To turn a CSV or an Excel file into OFX, use the free CSV and Excel to OFX converter. If you already have the transactions in a CSV, you may not need an OFX file: QuickBooks® Online and Xero both import CSVs (see the QuickBooks Online CSV guide and the Xero import guide). To go the other way, the free OFX to CSV and Excel converter turns an OFX, QFX or QBO file into a spreadsheet.

Check the file before you import it

The closing balance in the OFX file should equal the closing balance printed on the statement, and the transactions should add up to the difference between the opening and closing balances. After the import, compare the account’s balance in your software with the statement. The reconciliation guide shows how to find a difference.

Sources

All guides · All free tools

Have the statement as a PDF?

Convert it to OFX, Excel or CSV, and every row is checked against the balances the bank printed.

Convert a PDF to OFX