Ai Book Sort is launching soon. Accounts open shortly. Join the waitlist.

How to convert bank statement PDFs to CSV for bookkeeping

General bookkeeping information, not tax, accounting or legal advice. Ai Book Sort does not decide what you owe, does not prepare or file returns, and rules change by location, business type and year. Check official CRA or IRS and state guidance, and ask a qualified professional where needed.

Bookkeeping software and spreadsheets work best with data, not documents. If your bank only gives you PDF statements, or you have a stack of older statements, you will want to turn them into CSV or Excel files you can import. This guide explains how to convert bank statement PDFs to CSV for bookkeeping, what to check afterwards, and the options from easiest to most hands-on.

Why CSV?

A CSV (comma-separated values) file is a plain table: one row per transaction, with columns such as date, description, amount and balance. Accounting software such as QuickBooks Online and Xero can import bank transactions from CSV files, and every spreadsheet program can open them. A PDF, by contrast, is built for printing and reading; the numbers are there, but not in a form software can import reliably.

Option 1: Ask your bank for CSV first

Before converting anything, check whether you need to. Many banks let you download transaction history as CSV, Excel or a bookkeeping format from online banking, often under "download transactions" or "export" rather than "statements". This is usually the cleanest option, because the data comes straight from the bank.

The catch is that some banks only offer recent months this way, while statements go back further. For older periods you may only have PDFs.

Option 2: Copy and paste from the PDF

For a single short statement, you can select the transaction table in a PDF viewer, copy it, and paste it into a spreadsheet. This sometimes works well and sometimes produces jumbled columns, merged lines or missing minus signs, depending on how the bank built the PDF. It does not work at all for scanned statements or phone photos, because those are images with no selectable text.

Option 3: Use a converter tool

There are many tools, from spreadsheet features to dedicated statement converters, that try to pull the transaction table out of a PDF. Before you use one, consider:

  • Privacy. Bank statements contain account numbers, balances and who you pay. Read the tool's privacy policy and check where your files go and how long they are kept.
  • Scanned or photographed statements. These need text recognition (OCR) before any table can be extracted. Some tools handle them; many do not.
  • Multi-line descriptions. Many banks wrap long descriptions onto two lines. A converter that treats each line as a transaction will split one transaction into two.
  • Debit and credit columns. Some statements show withdrawals and deposits in separate columns; others use one column with minus signs. Check which way the output went.

Option 4: Type it in

For a handful of transactions, typing them into a spreadsheet is still a fair choice. Use the columns below so the file is ready to import later.

A good CSV layout for bookkeeping

Whatever method you use, aim for one row per transaction and these columns:

  1. Date, in one consistent format (for example YYYY-MM-DD).
  2. Description, the payee or memo as the bank shows it.
  3. Amount, with withdrawals negative and deposits positive (or two columns, one for each, if your software prefers that).
  4. Balance, if the statement shows a running balance. It is not always needed for import, but it is very useful for checking.
  5. Category, if you are categorizing in the spreadsheet before import.

Check your software's help pages for the exact columns and date format its CSV import expects.

Check the result before you import

Conversion errors are easy to miss and annoying to fix after import. Before importing, check:

  • The totals. Opening balance plus the sum of all amounts should equal the closing balance on the statement. If it does not, a row is missing, doubled or has the wrong sign.
  • The count. Count the transactions on the statement and the rows in the file.
  • Dates. Make sure day and month were not swapped, and that year-end statements have the right year on each line.
  • Split descriptions. Look for rows with a description but no amount; they are usually the second line of the row above.
  • Headers and footers. Remove page headers, "balance forward" lines and totals rows that came through as transactions.

Importing into your bookkeeping software

When the file checks out, import it into the matching bank or card account. Watch for duplicates if the same account also has a bank feed: transactions brought in by the feed and again by your CSV will both show up. Import only the dates the feed does not cover, or delete the duplicates before you categorize. Then categorize the transactions and reconcile the account.

Keep the original PDFs

The CSV is a working file; the bank statement is the record. Keep the original PDF statements with your business records. In Canada, the CRA generally requires records to be kept for six years from the end of the last tax year they relate to (canada.ca). In the US, the IRS lists account statements among the documents that support expenses (irs.gov); see how long to keep records for the IRS.

Common mistakes

  • Importing without checking that the totals match the statement.
  • Losing minus signs, so withdrawals import as deposits.
  • Importing the same period twice, from a CSV and a bank feed.
  • Deleting the PDF statements after converting.

Where Ai Book Sort fits

Ai Book Sort reads bank and card statements from PDFs, scanned pages and phone photos (JPG, PNG, WebP), as well as Excel and CSV files. On upload it counts pages and transactions and shows the price; reading, AI review and download happen only after you pay. Ai Book Sort turns each statement into transaction rows, suggests a category for every line and flags what it is not sure about. You download files for QuickBooks Online, Xero, Excel or CSV, plus a PDF report. Our own AI reads your documents. We never send your documents or transaction lines to an outside AI company; see Service providers for who processes what. See bank statement categorization, Pricing ($2.50 per page (1 page = up to 25 transactions), minimum order $5 (2 pages), pay as you go) and the FAQ.

AI can misread a blurry photo or an unusual layout, so check the totals as described above before you import.

More from the blog

See all use cases, Pricing or the FAQ.