What Is a QFX File? The Quicken Bank Statement File, and How to Open, Convert and Check One
A QFX file is a bank or card statement in OFX form with extra Intuit fields for Quicken. Three readers opened 10 of our 21 test files and gave one answer on only 8 of 21 damaged copies. Jump to your question below, or work through it in order.
What Is a QFX File? An OFX statement with Intuit fields, and what the ending hides
Short answer
A QFX file is a bank or card statement that Quicken can import. It is OFX with extra Intuit fields. All 21 of our public test files are plain text, and all of them contain the tag INTU.BID.
We tested 21 QFX-style files with 3 readers. Ten opened in all 3, and ofxtools refused 10. We then damaged one file in 21 ways, and 8 copies gave one answer in all 3 readers.
To see inside one, use the open steps. To make a CSV file from one, use the convert steps. If your QFX file will not open, begin with the causes.
A QFX file is a bank or card statement that Quicken can import. It is OFX with extra Intuit fields. All 21 of our public test files are plain text, and all of them contain the tag INTU.BID.
Picture a bank website with a download button for Quicken. The file you get is a QFX file. FileInfo names the type Quicken Financial Exchange File and lists Intuit as the developer. It says the format is similar to OFX and proprietary to Quicken.
Wikipedia says QFX is the Intuit extension of OFX. QFX files are OFX files plus extra fields that support a license fee. Financial institutions pay that fee to Intuit. Quicken imports a file only when the institution has paid, and it shows an error about verifying the institution when it has not.
OFX is the older base. The Wikipedia article on OFX says Microsoft, Intuit and CheckFree announced it on January 16, 1997. Versions 1.0 to 1.6 use SGML, and later versions use XML. The newest version is 2.3, and the FDX consortium has managed the spec since 2019.
The same article says Web Connect uses QFX files that a person downloads and imports, and Direct Connect uses OFX. We tested neither one. We tested how readers handle the files.
Where our QFX files come from
We studied 21 files. Developers share them for testing in four public projects. Actual gave 6, GnuCash gave 4, ledger-autosync gave 7 and the ofxparse test data gave 4.
The files are 967 to 29,155 bytes long and add up to 68,103 bytes. Of the 21, 12 end in .ofx, 8 end in .qfx and 1 ends in .QFX. All 21 contain the tag INTU.BID, so we call them QFX-style files.
We opened none in Quicken, because our lab uses Linux and has no Quicken. We did not test how Quicken checks an institution. So this page studies how readers treat QFX files. Our three readers are ofxtools 1.1.1 and ofxparse 0.21 for Python, and ofx-js 1.1.2 for Node.
QFX file facts at a glance
| Property | Value |
|---|---|
| Meaning | A bank or card statement in OFX form, with extra Intuit fields, made for Quicken. |
| Ending |
.qfx. FileInfo names the type Quicken Financial Exchange File.
|
| Maker | Intuit, per FileInfo and Wikipedia. |
| Contents |
Text. All 21 of our files are OFX version 1 text, and all start with OFXHEADER:100.
|
| Version line |
VERSION:102 in all 21 files.
|
| Extra tags |
INTU.BID in all 21 files and INTU in 11.
|
| Readers | ofxtools, ofxparse and ofx-js, all tested. FileInfo lists more programs, among them Quicken and GnuCash. |
| Our tests | 21 files, 21 damaged copies, 3 readers, a check script of 19 lines and a repair script of 11 lines. |
Is your statement a PDF? The PDF file overview covers the PDF format.
Which Kind of QFX File Is Yours? Three ways to be one, and the name does not decide
Three ways to be a QFX file showed up in our tests, and the name did not decide any of them. 12 of our 21 files end in .ofx and all 12 contain the QFX tag. The copy with both INTU tags removed opened the same way in all 3 readers.
Anyone can rename a file, so we tested what the name does. We renamed one file to .ofx and to .txt. We also made one more copy with both INTU tags removed. All 3 readers gave the original answer on all 3 files. Follow the figure.
The kinds in detail
| Kind | Files and results |
|---|---|
| A QFX name and a QFX tag | 9 of 21 files. The ending is .qfx or .QFX. ofxparse opened 9, ofx-js opened 9 and ofxtools opened 7. ofxtools refused one file for its CHARSET value and one for empty file ID lines in the header. |
| An OFX name and a QFX tag | 12 of 21 files. The ending is .ofx, and INTU.BID is inside. ofxparse opened 12, ofx-js opened 10 and ofxtools opened 4. Seven of the 8 ofxtools refusals come from a bank ID longer than 9 characters. |
| A QFX name and no QFX tag | 1 copy, made by us. Copy C1 has both INTU lines removed. All 3 readers returned the original answer. |
Check the header
QFX files are text, so you can look at one. The first command prints the first 9 lines of a file, which is the header. The second lists the INTU tags in another file.
head -n 9 1252.qfx
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:TYPE1
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:NONE
grep -o "<INTU[.A-Z]*>" wamu.qfx | sort -u
<INTU.BID>
<INTU.USERID>
| Value | What we measured |
|---|---|
| First line |
OFXHEADER:100 in 21 of 21 files.
|
| DATA and VERSION |
DATA:OFXSGML and VERSION:102 in 21 of 21 files.
|
| CHARSET |
1252 in 19 files, 8859-1 in 1 and NONE in 1. The NONE file says ENCODING:UTF-8.
|
| SECURITY | NONE in 17 files and TYPE1 in 4. |
| Line ends | LF in 20 files and CRLF in 1. No file starts with a byte order mark. |
| Blank line after the header | Present in 18 files and missing in 3. ofxparse and ofx-js opened all 3. |
Is it a spreadsheet export instead? The XLS file overview covers the Excel workbook format.
What Is Inside a QFX File? A text frame around a list of transactions
A QFX file is a text frame around a list of transactions. Our example has 1,472 lines and 177 transactions. The frame has a header, a sign-on block, the account, the list, the balances and the closing tag. We found no checksum in our 21 files.
We looked inside one QFX file, wamu.qfx, because its layout explains the results later on this page. It comes from GnuCash. The two commands below count its lines and its transactions.
wc -l wamu.qfx
grep -c "<STMTTRN>" wamu.qfx
1472 wamu.qfx
177
The header of a QFX file has 9 lines. The tag <OFX> opens the body, and every tag is on its own line. A leaf tag like <CODE>0 has no closing tag. A block like STATUS has one. Follow the figure.
The parts, one by one
The body starts with a sign-on block and goes on with one block for every account. Our 21 files have 17 bank blocks, 1 card block and 3 investment blocks. The tag INTU.BID is in the sign-on block in all 21 files.
In wamu.qfx the sign-on block has the server time, language, bank name and bank ID. The two INTU tags follow. We left account values out of this page.
The transaction list has one STMTTRN block for every transaction. Every block has a type, a posted date, an amount and an ID called FITID. A name or memo can follow. The 18 bank and card files have 251 transactions in all.
Dates have 14 digits, like 20010422180000. In 47 of the 251 dates a time zone follows in square brackets. We found no checksum, no signature and no length field in the 21 files.
What every part stores
| Part | What it stores |
|---|---|
| Header | Nine lines of text. Copy A5 puts a byte order mark before them, and ofxtools and ofxparse refused it. Copy B1 removes the first line, and ofxtools refused it. Our repair script restores A5. |
| Sign-on block | The server time, the language and the INTU tags. Copy C1 removes both INTU tags, and all 3 readers gave the original answer. |
| Account and balances | The bank, the account and the balances. Copy C5 removes LEDGERBAL, ofxtools refused it and the other two readers opened it. |
| Transaction list | One block for every transaction. Copy C4 changes one amount and C7 repeats an ID. All 3 readers opened both with no warning. |
| Closing tag | The tag /OFX ends the file. Copy C3 removes it and only ofx-js refused the copy. Our repair script adds it again. |
| The full file | Copies A2 and A3 are cut. ofxtools and ofx-js refused both, and ofxparse returned no transactions and no error. Copy A4 adds 1,024 zero bytes at the end, and ofxtools refused it. Our repair script restores A4. |
What the public pages say about the layout
The OFX article on Wikipedia says versions 1.0 to 1.6 are SGML and later versions are XML. All 21 of our files are version 1 text with VERSION:102. We had no XML file, so this page says nothing about version 2.
The QFX article on Wikipedia says QFX adds fields for the license fee. In our files the added fields are INTU.BID in all 21 and INTU.USERID in 11. We do not know what Quicken does with them.
The frame is small. Our script checks frames only. It looks at first bytes, header lines, closing tags and STMTTRN counts. It never checks a value, so it printed OK for 4 copies that readers did not treat as the original.
What Did We Find in 21 Test QFX Files? Three readers, and ten files opened in all of them
We tested 21 QFX-style files with 3 readers. Ten opened in all 3, and the IDs and amounts agree in all ten. ofxparse opened all 21, ofx-js opened 19 and ofxtools opened 11.
We counted a transaction when a reader returned one with an ID, date and amount. Three files have investment transactions and no bank ones. We counted those in ofxtools and ofxparse, and our ofx-js script does not count them.
What the numbers show
| Finding | What we measured |
|---|---|
| The readers differ in strictness | ofxparse opened 21 of 21 files, ofx-js opened 19 and ofxtools opened 11. No file was refused by all 3. |
| Ten files agree | Ten files opened in all 3 readers. The lists of transaction IDs and amounts are the same in all ten. |
| ofxtools names its reasons | It refused 10 files. Seven have a bank ID longer than 9 characters. One has the CHARSET value 8859-1, one has no LEDGERBAL block and one has a header it called malformed, with empty OLDFILEUID and NEWFILEUID lines. |
| ofx-js stops on two files | It refused 2 files and named a missing closing tag. The tag is MEMO in one file and SONRS in the other. |
| Investment files | Three files have investment transactions and no bank ones. ofxtools and ofxparse returned 1, 3 and 5. ofx-js opened two of them and refused one, and our script did not count its investment data. |
| Dates and time zones |
In cibc_checking every date has the time 225109 and the offset -5. ofxtools and ofxparse show every date one day later than the file says, and ofx-js shows the file date.
|
| Accents and symbols | The test lines with accents and a euro sign came out right in ofxtools and ofxparse for the 1252 and UTF-8 files. ofx-js takes text, so our script chose the decoding from the header. |
We do not know which reader Quicken would agree with on a date, because we used no Quicken. The 10 files that opened everywhere show that the readers agree on IDs and amounts when they agree to open the file.
What this study cannot show you
These are small public test files from four projects, and developers made them to test software. The biggest has 177 transactions and 29,155 bytes. A file from your bank can be much larger. A reader that passes here has shown that it opens small samples.
We opened no QFX file in Quicken, and we tested no password, no XML file and no file over 30 KB. We compared transaction IDs, dates and amounts. We did not compare names, memos or balances.
What Happens When a QFX File Is Damaged? 21 broken copies, and a changed amount that nobody flags
We damaged one QFX file in 21 ways. All 3 readers gave the original answer on 8 copies, and none of the copies was refused by all 3. A changed amount opened in every reader with no warning, and our script printed OK for it.
Our base QFX file is wamu.qfx, 29,155 bytes with 177 transactions. We changed one thing at a time and saved 21 copies. Same means readers returned the same transaction list as for the base file. A transaction has an ID, date and amount.
Refused means an error and no transactions. Differs means a reader gave another list. For copies C4 and C7 that is the right answer, because the file now says something else. Follow the figure.
What the grid shows
| Copies | What happened |
|---|---|
| Extra bytes at the start or the end | Copy A5 adds a byte order mark in front. ofxtools and ofxparse refused it, and ofx-js gave the original answer. Copy A4 adds 1,024 zero bytes at the end, and only ofxtools refused it. The repair script restored both. |
| Changed line ends | Copy A6 sets every line end to CR and A7 sets them to CRLF. All 3 readers gave the original answer on both. |
| A cut file | Copy A2 cuts the file in half and A3 keeps 2,048 bytes. ofxtools and ofx-js refused both, and ofxparse returned no transactions and no error. Copy A1 loses only the last byte, and all 3 readers gave the original answer. |
| Header lines | Copy B1 removes the first line, B6 sets DATA to XML and B7 sets OFXHEADER to 200. ofxtools refused all three and the others gave the original answer. Copies B2 to B5 remove the blank line or change VERSION, ENCODING or CHARSET, and all 3 readers gave the original answer. |
| A missing tag | Copy C2 removes one closing STMTTRN tag, and ofxtools and ofx-js refused it. The ofxtools error names LEDGERBAL, which the copy still has. Copy C3 removes the closing OFX tag, and only ofx-js refused. Copy C5 removes LEDGERBAL, and only ofxtools refused. |
| A changed value | Copy C4 changes one amount and C7 repeats an ID. All 3 readers opened both and returned the changed values with no warning. Copy C6 sets one date to the text April 22. ofxtools and ofxparse refused it, and ofx-js returned the text as the date. |
| No INTU tags | Copy C1 removes INTU.BID and INTU.USERID. All 3 readers gave the original answer, so the readers treat a QFX file like an OFX file. |
The pattern has two sides. Broken frames are easy to see, because most readers refuse them. Changed values are hard to see, because nothing in the file checks them.
The readers differ in how much they accept. ofxparse gave the original answer on 15 copies and refused 2. ofx-js gave it on 14 and refused 4. ofxtools gave it on 9 and refused 10.
The silent failures
Two results point to a risk, and we tested both at scale. First, we cut the file at 94 places, from line 60 to line 1,455 of 1,472. ofxtools and ofx-js refused all 94. ofxparse gave no error and no transactions on all 94, even at 28,887 of 29,155 bytes.
Second, we changed the first digit of one amount at a time, in 177 copies. All 3 readers opened all 177 and returned the new amount. None refused any copy and none warned. So an open file is not proof that the amounts are right.
Our script cannot see a changed amount, because the frame is not changed. Only a comparison with the bank statement shows it. So compare the transaction count and total with the bank before you import.
Our script and the repairs
Our check script of 19 lines printed OK for 8 copies, WARN for 3 and FLAG for 10. Four of the 8 OK copies, C4 to C7, did not match the original in all 3 readers, because the script checks frames and not values. See the script.
It also printed WARN or FLAG on 4 copies that all 3 readers treated as the original. They are A6, B2, B3 and C1. So a flag is a reason to look and not proof of damage.
The repair script of 11 lines restored 3 copies, A4, A5 and C3. After it all 3 readers gave the original answer on those three. It cannot restore cut files, removed header lines, changed values or removed LEDGERBAL blocks. We did not test a repaired file in Quicken.
What Does Our Expert Say About QFX Files? A note from Neeraj Singh on trusting a file that opens
We asked our expert what the grid means for someone who has a QFX file and has to decide if it is right. He looked at the 21 copies and at the 177 changed amounts.
Expert insight
Treat the QFX file as a copy of what the bank sent. Keep the original download, and never edit your only copy. In our tests, 177 of 177 changed amounts opened with no warning, so a file that opens is not proof that the numbers are right.
That advice fits our lab. Readers opened a changed amount every time, so a quick open proves little. Compare the count and total with the bank statement, and keep the original download untouched.
How Do You Open a QFX File? Three readers, with the commands we tested
To open a QFX file without Quicken, use ofxtools, ofxparse or ofx-js. You can also look at it as text. All three readers opened our 10 agreeing files and left the file unchanged. We did not test Quicken. Copy the file first, and compare more than one reader.
Quicken is the main route. The Wikipedia page on QFX says Quicken imports a file only when the institution paid the fee. Our lab uses Linux and has no Quicken, so we tested three open source readers.
Your options
Copy first, then look
Work on a copy. Our readers only looked at the QFX file. The SHA-256 hash of wamu.qfx and rbc_gi was the same before and after all three readers opened them. Copies cost nothing, and they keep the original download safe from your own mistakes.
Count the transactions
Start with the count. The first command below counts the transactions in one file without any reader. The next three commands count them in ofxtools, ofxparse and ofx-js. All four gave 18 for rbc_gi.
grep -c "<STMTTRN>" rbc_gi.qfx
18
python3 -W ignore -c "from ofxtools.Parser import OFXTree; t = OFXTree(); t.parse('rbc_gi.qfx'); print(len(t.convert().statements[0].transactions))"
18
python3 -c "import ofxparse; o = ofxparse.OfxParser.parse(open('rbc_gi.qfx', 'rb')); print(len(o.accounts[0].statement.transactions))"
18
node -e "require('ofx-js').parse(require('fs').readFileSync('rbc_gi.qfx', 'latin1')).then(r => console.log(r.OFX.BANKMSGSRSV1.STMTTRNRS.STMTRS.BANKTRANLIST.STMTTRN.length))"
18
The commands fit bank files with one account. Card files and investment files have other tags. ofx-js takes text, so you choose the decoding. We used latin1, which counts right and can show the euro sign as another symbol.
Is it a spreadsheet and not a statement? The Excel workbook page covers the XLS format.
How Do You Convert a QFX File to CSV? One script of 9 lines, tested on two files
To convert a QFX file to CSV, use our short ofxtools script. It made 18 rows from a file of 18 transactions, with the same IDs and amounts as the tags in the file. We tested no Quicken export and no converter program.
Conversion left the QFX file unchanged in our tests. We checked the result by comparing the CSV with the tags in the file. IDs and amounts matched in both files we converted, which have 18 and 177 transactions.
Convert it to CSV
The script reads the QFX file with ofxtools and writes one row for every transaction. A row has date, amount, ID and name or memo. ofxtools prints a warning on screen for every INTU tag, and the CSV is not affected.
import csv, sys
from ofxtools.Parser import OFXTree
tree = OFXTree()
tree.parse(sys.argv[1])
out = csv.writer(sys.stdout, lineterminator='\n')
out.writerow(['date', 'amount', 'fitid', 'name'])
for st in tree.convert().statements:
for t in st.transactions:
out.writerow([t.dtposted.date(), t.trnamt, t.fitid, t.name or t.memo])
python3 qfx_csv.py rbc_gi.qfx > rbc_gi.csv
wc -l rbc_gi.csv
head -4 rbc_gi.csv
19 rbc_gi.csv
date,amount,fitid,name
2001-03-12,-68.39,90000010020010312C00117505B19,Payment
2001-03-19,508.91,90000010020010319C0016CC27A90,Deposit
2001-03-19,-40.00,90000010020010319C0019CF7D625,Withdrawal
These 19 lines are 18 transactions and a header row. The date is the date in the file, so files with time zones can show another day than ofxtools shows. We did not test how spreadsheets open the CSV.
Convert it to OFX
Some programs ask for an OFX file and not a QFX file. We tested no such program. We tested what removing the INTU lines does to readers. The sed command below deletes every line that starts with <INTU.. The new file is 33 bytes shorter, and all 3 readers gave the original answer on it.
sed '/^<INTU\./d' wamu.qfx > no_intu.ofx
wc -c wamu.qfx no_intu.ofx
29155 wamu.qfx
29122 no_intu.ofx
58277 total
| Test | Result |
|---|---|
| CSV from 2 files |
18 rows from rbc_gi and 177 rows from wamu.qfx. The IDs and amounts match the tags in both files.
|
| INTU lines removed | The copy is 33 bytes shorter. All 3 readers gave the original answer on it. |
| Renamed to .ofx and to .txt | The bytes are the same, and all 3 readers gave the original answer on both names. |
| The source file | A SHA-256 hash was the same before and after the readers opened it. |
What we did not test. We converted two files to CSV and one to OFX. We did not test Quicken exports, QIF or QBO files, desktop converters, web converters or imports into any program. We make no claim about what Quicken or a bank accepts.
How Do You Check a QFX File? Six steps and a script of 19 lines
Check a QFX file in six steps. Copy it first. Then look at the header and make our frame check. Open it in two readers and compare count and total with the bank. Keep a hash of the original download. Our script of 19 lines checks the frame.
- Copy the QFX file, and work on the copy. Keep the original download.
-
Look at the header with
head -n 9 file.qfx. It must start withOFXHEADER:100. -
Check the frame with
python3 qfx_peek.py file.qfx. A good file prints OK. - Open the copy in two readers, and compare the count of transactions.
- Compare the count and the total with the statement on the bank website.
- Keep the SHA-256 hash of the original download, and compare it with your file. Only a comparison with the bank finds changed amounts.
The check in Python
Our script of 19 lines checks the frame with the standard library. It prints OK, WARN or FLAG with the problem it found. It checks for a byte order mark, zero bytes, the first line, header values, closing tags, STMTTRN tags and the INTU tag. It never checks an amount.
import re,sys,os
def peek(path):
b=open(path,'rb').read(); t=b.decode('latin1'); warn=[]
if b[:3]==b'\xef\xbb\xbf': return 'FLAG','byte order mark before the header'
if b'\0' in b: return 'FLAG','null bytes in the file'
i=t.find('OFXHEADER:')
if i<0 or i>16: return 'FLAG','no OFXHEADER line at the start'
head,_,body=t[i:].partition('<OFX>')
h=dict(re.findall(r'^([A-Z]+):(.*?)\r?$',head,re.M))
if h.get('OFXHEADER')!='100' or h.get('DATA')!='OFXSGML': return 'FLAG','header is not OFX version 1 text'
if not body or '</OFX>' not in body: return 'FLAG','no closing OFX tag'
o,c=body.count('<STMTTRN>'),body.count('</STMTTRN>')
if o!=c: return 'FLAG','%d STMTTRN opened and %d closed'%(o,c)
if '\n\n' not in head.replace('\r\n','\n'): warn.append('no blank line after the header')
if h.get('VERSION') not in ('102','151','160'): warn.append('odd VERSION '+str(h.get('VERSION')))
if 'INTU.BID' not in body: warn.append('no INTU.BID, so an OFX file and not a Quicken QFX file')
return ('WARN','; '.join(warn)) if warn else ('OK','%d transactions, header and tags agree'%o)
if __name__=='__main__':
for p in sys.argv[1:]: print(os.path.basename(p),*peek(p))
What the script prints
First comes a good file with 177 transactions. Next is one with no blank line after the header, which gets WARN. Then comes the investment file with no bank transactions. Copy A5 has the byte order mark and A2 is cut. Copy C4 has one changed amount, which the script cannot see.
python3 qfx_peek.py wamu.qfx utf-8.qfx income.ofx A5.qfx A2.qfx C4.qfx
wamu.qfx OK 177 transactions, header and tags agree
utf-8.qfx WARN no blank line after the header
income.ofx OK 0 transactions, header and tags agree
A5.qfx FLAG byte order mark before the header
A2.qfx FLAG no closing OFX tag
C4.qfx OK 177 transactions, header and tags agree
The repair script
The repair script of 11 lines removes a byte order mark and zero bytes at the end of a QFX file. It adds a blank line after the header and the closing OFX tag when they are missing. It also cuts text in front of the OFXHEADER line, and none of our copies tests that step.
python3 qfx_fix.py A5.qfx A5_fixed.qfx
python3 qfx_peek.py A5.qfx A5_fixed.qfx
A5.qfx FLAG byte order mark before the header
A5_fixed.qfx OK 177 transactions, header and tags agree
import sys
def fix(b):
if b[:3]==b'\xef\xbb\xbf': b=b[3:]
i=b.find(b'OFXHEADER:')
if i>0 and b[:i].strip(): b=b[i:]
b=b.rstrip(b'\0 \r\n')+b'\n'
j=b.find(b'<OFX>')
if j>0 and b'\n\n' not in b[:j].replace(b'\r\n',b'\n'): b=b[:j].rstrip(b'\r\n')+b'\n\n'+b[j:]
if b'</OFX>' not in b: b+=b'</OFX>\n'
return b
if __name__=='__main__': open(sys.argv[2],'wb').write(fix(open(sys.argv[1],'rb').read()))
It restored 3 of our 21 damaged copies, A4, A5 and C3. All 3 readers then gave the original answer on them. It writes a new file and leaves the source alone. We did not test a repaired file in Quicken.
Know the limits. The script printed OK for 4 copies where at least one reader did not give the original answer. Changed amounts, repeated IDs and bad dates are all invisible to it. So an OK from one script is only a start, and a comparison with the bank is the test.
Is a QFX File Safe to Open? It is text, and the risk is privacy
A QFX file is text, and opening one in a text editor starts nothing. None of our 21 files has links or scripts. The risk is privacy, because the file lists the account and every transaction. Share one only after you remove the account lines.
A QFX file names the bank, the account and every transaction in plain text. Anyone who opens the file sees them. So treat a QFX file like a bank statement.
We searched our 21 files for the text script and for the text http. We found neither in any file. We did not scan the files with a security tool, and we did not import any into Quicken.
Five steps for a file you do not know
- Get the file from the bank or from a source you trust, and keep the original.
-
Look at the first 9 lines. All 21 of our files start with
OFXHEADER:100. A file that starts another way is not one of the kinds we tested. - Make a copy, and count the transactions with a reader.
- Compare the count and the total with the bank website.
- Before you share a file, remove the account lines. We did not test whether readers open a file with those lines removed.
What we did not test. We did not scan for malware, and we did not import a file into Quicken. These steps lower the chance of a surprise, and they do not remove it.
Why Will Your QFX File Not Open? Seven causes, and what to do about every one
Seven causes stop a QFX file from opening or make it look wrong, and the file causes only some of them. Start with the header. ofxtools refused 10 of our 21 public files and ofxparse refused none, so a reader can be the cause.
Work down the list in order. Every cause comes from our 21 damaged copies or our 21 files, so every fix names a copy or a count. If your bank site still lists the account, download the file again. New downloads are the safest fix for damaged files.
DATA:XML and B7 says OFXHEADER:200. ofxtools refused all three, and the other two readers opened them. Our script flags all three.
How Does a QFX File Differ From an OFX File? One text format, and two ways to use it
QFX and OFX files share one text format, and the difference is the INTU fields. Our readers treated both alike. CSV files are text exports of the transactions. We tested the exports and not Quicken imports.
The table lists the neighbors of a QFX file. We tested the rows for QFX, OFX and CSV with our files. Version 2 of OFX is XML. We had no XML file, so we did not test it.
| Type | What separates it |
|---|---|
| QFX file | OFX text with INTU fields, made for Quicken. All 9 of our files that end in .qfx or .QFX contain INTU.BID. |
| OFX file | The open base format. All 12 of our files that end in .ofx contain INTU.BID. A copy with both tags removed gave the original answer in all 3 readers. |
| CSV export | Text with one row for every transaction. Our script made 18 rows from a file of 18 transactions, with the same IDs and amounts. |
| OFX version 2 | Wikipedia says later versions of OFX are XML. We had no XML file and did not test one. |
QFX or OFX
The two look alike inside. Wikipedia says QFX adds fields to OFX for the license fee. Our readers did not care about those fields. One copy with both INTU tags removed opened the same way, so for readers the difference is small.
For Quicken the difference can be large. Wikipedia says Quicken imports a QFX file only when the institution has paid the fee. We did not test Quicken, so we make no claim about what it does with a file from our set.
QFX or CSV
CSV files are easy to open in spreadsheets, and they keep only chosen columns. Our script keeps date, amount, ID and name. It drops the account, balances and INTU tags, and a QFX file has all of them.
The CSV from our script is a copy. Compare its row count with the transaction count of the source. We did not test how a spreadsheet shows the file.
What Is the QFX File Format Made Of? The facts we could check, and where they came from
A QFX file stores a text header and a body of OFX tags, with Intuit fields added. Facts below come from our checks of 21 files and 21 damaged copies. Sources are Wikipedia, FileInfo and the reader projects.
| Part | What we could check |
|---|---|
| Maker | Intuit. FileInfo lists the developer as Intuit and names the type Quicken Financial Exchange File. |
| Name | QFX, the Intuit extension of OFX, per Wikipedia. |
| Role | Wikipedia says QFX adds fields that support a license fee paid by financial institutions. FileInfo says the format imports data into Quicken. |
| Base format | Microsoft, Intuit and CheckFree announced OFX on January 16, 1997, per Wikipedia. Versions 1.0 to 1.6 are SGML and later versions are XML. |
| Container | Text. A header of 9 lines, then a body of tags. All 21 of our files are version 1 text. |
| First line |
OFXHEADER:100. All 21 of our files agree.
|
| Version line |
VERSION:102 in all 21 files.
|
| Character set |
CHARSET is 1252 in 19 files and 8859-1 in 1. One file says NONE with ENCODING:UTF-8.
|
| Extra tags | INTU.BID in all 21 files and INTU.USERID in 11, both in the sign-on block. |
| Checksum | We found none in our 21 files. |
| Readers | FileInfo lists Quicken, GnuCash and a converter among others. We tested ofxtools, ofxparse and ofx-js. |
About the values we list
Layout facts come from our own tests of 21 QFX files and from the pages we name. The Wikipedia page on QFX files gives the name and role. The FileInfo record for QFX gives the maker and programs.
The Wikipedia page on OFX files gives the history and the versions. We could not load every part of those pages, and we make no claim beyond what we list.
What we left out
We used no Windows machine and no Quicken. We did not test Quicken imports, XML versions, passwords, QIF or QBO conversions, desktop converters or web converters. We tested no file over 30 KB. Our readers worked on Linux, and other software can accept or refuse files that they treat differently.
The 21 public files come from four projects. Our damaged copies come from one file and change one thing at a time. We compared IDs, dates and amounts, and we did not compare names, memos or balances.
Sources checked
For the format and its history, see Wikipedia on the Quicken extension and Wikipedia on Open Financial Exchange. For the file type, see FileInfo on the .qfx ending.
Public test files come from Actual test files, GnuCash test files, ledger-autosync test files and ofxparse test files. The readers are ofxtools on GitHub, ofxparse on GitHub and ofx-js on GitHub.
Frequently Asked Questions About QFX Files
What is a QFX file?
A QFX file is a bank or card statement that Quicken can import. It is an OFX file with extra Intuit fields. Wikipedia says the extra fields support a license fee that financial institutions pay. All 21 of our test files are text and contain the tag INTU.BID.
What does QFX stand for?
QFX stands for Quicken Financial Exchange, per FileInfo. FileInfo lists Intuit as the developer. Wikipedia calls it the Intuit extension of OFX, which is the Open Financial Exchange format.
How do I open a QFX file?
Quicken imports the file, and we did not test it. Without Quicken, you can print the first lines in a text editor or use a reader like ofxtools, ofxparse or ofx-js. All three opened 10 of our 21 files. Copy the file first.
What is the difference between QFX and OFX?
A QFX file is an OFX file with extra Intuit fields, per Wikipedia. In our tests the readers treated both alike. The copy with both INTU tags removed gave the original answer in all 3 readers. Of our 21 files, 12 end in .ofx and contain the QFX tag.
How do I convert a QFX file to CSV?
Use a short script with ofxtools that writes date, amount, ID and name for every transaction. Ours is 9 lines and made 18 rows from a QFX file of 18 transactions. IDs and amounts matched the tags in the file. We tested no desktop or web converter.
Can I change a QFX file to an OFX file?
We removed the two INTU lines with sed, and all 3 readers gave the original answer on the new file. We did not test programs that need OFX files. Renaming the QFX file to .ofx changed nothing for readers either.
Why does Quicken not accept my QFX file?
Wikipedia says Quicken imports a QFX file only when the institution paid Intuit, and it shows an error about verifying the institution when it did not. We used no Quicken, so we did not test this. Ask your bank, or try a new download.
Is a QFX file safe to open?
QFX files are text, and opening one in a text editor starts nothing. None of our 21 files has links or scripts. The file lists the account and every transaction, so share it with care. We did not scan the files with a security tool.
Why will my QFX file not open?
One cause is bytes in front of the header or at the end. Others are cut files, wrong header lines, missing tags and readers that are too strict. Start with the first lines, then work down the cause list in the part called Why Will Your QFX File Not Open.
Can I repair a damaged QFX file?
Sometimes. Our repair script restored 3 of our 21 damaged copies. It cannot restore cut files, changed amounts or removed header lines. We did not test a repaired file in Quicken. Keep the original, and work on a copy.
Why do two readers give different results?
ofxparse opened all 21 of our files, ofx-js opened 19 and ofxtools opened 11. ofxtools refused 7 files for a bank ID longer than 9 characters. For the 10 files that opened in all 3, the IDs and amounts agree. We did not check what Quicken accepts.
Is a file that opens a good file?
No. We changed the first digit of one amount at a time in 177 copies, and all 3 readers opened all 177 with no warning. Cutting the file at 94 places made ofxparse return no transactions and no error. Compare the count and the total with the bank.
Still Stuck With a QFX File? Where to go next, depending on what went wrong
Look at the first lines and use the check script. The cause list names what to try in order.
The cause can be the institution and not the file. The last cause names what Wikipedia says about the check.
Is it a statement saved as a PDF? The page on PDF files covers the PDF format.
Is it an Excel workbook? The Excel file page covers the XLS format.
Is it a generic data file? The DAT file page covers the .dat file type.
Is it an archive of files? The page on ZIP archives covers the compressed archive.
Is it a file type you do not know? Browse the file extension resource library, or send it on the submit a file type page.
Do you need the format facts? Use the format part for the layout and the sources of QFX files.