Bank Statement Parser: How Each Bank's PDF Is Read

A bank statement parser has to answer three questions before it writes a row: which bank is this, where do the columns start, and do the rows add up. This page walks through how ConvertStatement answers them, in the order the code runs, with the output schema and the ways to call it.

Last updated November 19, 2026

Drop your bank statement here

PDF, up to 20 MB

Statements our parsers can't read are read by Claude (Anthropic). Anthropic doesn't train on them and deletes them within 30 days; we don't store your file. How we handle your data

From PDF to rows, in code order

  1. 01

    Extract the text layer

    The text is read with pdf-parse. If pdf-parse fails on a valid PDF, pdf.js reads it instead, and the page count comes from the same pass.

  2. 02

    Check there is text to parse

    Under 50 characters of text means the file is a scan or an image. The bank parsers stop there, and a website upload goes to Claude by Anthropic instead.

  3. 03

    Detect the bank

    Each registered parser has a detect() rule over the text. They are tried in registry order and the first match wins, so there is no bank menu and no setting to choose. There are 16 of them.

  4. 04

    Parse the rows

    The matched parser's parse() builds the transactions: dates are normalised to ISO, decimal commas and thousands dots are read, and a description that wraps onto a second line is joined into one row.

  5. 05

    Stop on zero rows

    A bank that is detected but yields no transactions raises a no-transactions error instead of returning an empty file.

  6. 06

    Run the verdict

    Opening balance plus the rows against the closing balance, the running balance row by row, and, where the layout allows it, a count of date-led lines in the text against the rows produced. A missing row makes the result unverified even when the balances add up.

The 16 dedicated parsers

One parser per bank because each bank prints its statement differently. The second column is the printed column layout the parser is written against.

The 16 dedicated parsers
BankColumn layout
ChaseChecking: MM/DD | Description | Amount | Balance. Credit card: Transaction Date | Post Date | Description | Amount.
Bank of AmericaDate | Description | Amount | (optional) Balance. Deposits, withdrawals, and service fees are grouped into separate sections so the sign of the amount depends on the surrounding section header.
Wells FargoDate | Check Number | Description | Deposits/Credits | Withdrawals/Debits | Ending daily balance. The two amount columns are separate and unsigned — which column a figure sits in is what makes it a debit or a credit. No leading $ sign on amounts.
Capital OneCredit card: Trans Date | Post Date | Description | Amount. Checking: Date | Description | Amount | optional Balance. Sometimes printed fully concatenated as 'Description01/31/2013$2.49$1,189.42'.
CitiCredit card: Trans Date | Post Date | Description | Amount, where the section header drives the sign of the amount. Checking and savings: one combined table — Date | Description | Amount Subtracted | Amount Added | Balance — with unsigned amounts whose sign is recovered by balance tracking.
BarclaysDate | Description | Money out | Money in | Balance — each line: DD/MM/YYYY Description £amount £balance (only one of out/in is populated; balance is the final pound figure)
RevolutDate (DD/MM/YYYY) | Description | Amount with sign and currency symbol (±£ or ±€) | Running Balance with currency symbol (£ or €)
HSBCDate | Description | Paid out | Paid in | Balance — line shape: DD MMM YYYY Description £amount [£amount] £balance (two- or three-amount variant supported)
N26Date (DD/MM/YYYY) | Description | Sign (-/+) + 'EUR' + Amount | 'EUR' + Running Balance
Deutsche BankBuchungsdatum | Verwendungszweck | Betrag EUR | Saldo EUR — line shape: DD.MM.YYYY Description amount EUR balance EUR (amount is unsigned)
U.S. BankDate (MM/DD) | Description | Amount (with optional minus and $ sign) | Balance ($)
PNCDate (MM/DD) | Amount | Description — inside each activity section the amount sits BETWEEN the date and the description, is printed unsigned, and takes its sign from the section header. Activity sections carry no per-row balance; the running balance is printed separately in Daily Balance Detail.
TD BankDate (MM/DD) | Description | Amount (with optional minus and $ sign) | Balance ($)
TD CanadaDate | Description | Withdrawals | Deposits | Balance. pdf-parse collapses the empty Withdrawals or Deposits cell, so each row resolves to MMM DD Description amount balance (one amount plus the running balance).
INGPer country: NL Betaalrekening — Datum | Naam / Omschrijving | Af | Bij | Saldo na mutatie (hyphen dates, positional unsigned amounts). DE Girokonto — Buchung | Valuta | Vorgang | Betrag (EUR) (dot dates, explicitly signed, no per-row balance). AU Orange Everyday — Date | Description | Money out | Money in | Balance (slash dates, newest row first).
SantanderDate | Description | Money out | Money in | Balance — each line resolves to DD/MM/YYYY Description £amount £balance (one unsigned amount plus the running balance)

When no parser matches

On a website upload, a PDF from a bank without a parser, or a scan, is sent to Claude by Anthropic automatically. A supported bank's result that fails the balance check is also re-checked by Claude, and you get the better of the two reads.

The MCP server and the Chrome extension never use AI. For a PDF no parser matches they return the parser's error instead of a guess.

So the parsers alone are repeatable: the same text gives the same rows. The website as a whole is not strictly so, because a failed check can send the file to Claude.

Output schema

Every bank produces the same five columns in the same order. Date is YYYY-MM-DD, Description is quoted, Amount has two decimals with debits negative, Type is debit or credit, and Balance is the running balance or empty.

CSV header (every bank), then one illustrative row

Date,Description,Amount,Type,Balance
2026-03-03,"EXAMPLE MERCHANT",-12.34,debit,1000.00

Bank statement parser at a glance

ConvertStatement's bank statement parser reads PDF statements from 16 banks, each with its own rule-based parser. It extracts the text layer, tries each parser's detection rule in a fixed order, and the first match builds the rows, so there is no bank to pick. Every result is checked: opening balance plus transactions against the closing balance, the running balance row by row, and, where the layout allows it, the count of date-led lines against the rows produced. The output is one CSV schema for every bank: Date, Description, Amount, Type and Balance, with ISO dates and debits negative. A website upload from any other bank, or a scan, is read by Claude by Anthropic instead, and a supported bank's result that fails the check is re-read by Claude automatically. The MCP server and the Chrome extension use only the parsers and never use AI. There is no public REST API.

Ways in

Three ways to run a statement through the parsers.

Ways in
Way inWhat it takesWhat it does
Website uploadOne PDF, up to 20 MBWrites CSV, Excel, QBO or OFX. A bank without a parser, and a scan, are read by Claude by Anthropic.
MCP serverEndpoint /api/mcp over streamable HTTP. Tools convert_bank_statement and list_supported_banks. A base64 PDF up to 8 MB, an optional personal token.Formats csv, ofx or qbo (Excel is web-only). Never uses AI. Returns bank, transaction_count, period, currency, reconciliation, file, pages_used, pages_remaining; reconciliation holds verified, method and difference, and file holds format and content.
Chrome extensionA statement PDF in the browserConverts it from the page. Never uses AI. CSV is converted on your device; the other formats go through the same dedicated parsers on our server.
No public REST APINothing to callThe MCP server is the programmatic route.

Adding a bank

A bank gets a parser when enough people ask for it and its layout can be read reliably. Request one from the bank's page; the request is how new parsers are prioritised.

If a conversion fails on a statement you want supported, you can share a redacted skeleton of it, opt-in, so a parser can be built against its layout. The skeleton is deleted within 30 days.

Frequently asked questions

Which banks have a dedicated parser?

16 banks: Chase, Bank of America, Wells Fargo, Capital One, Citi, Barclays, Revolut, HSBC, N26, Deutsche Bank, U.S. Bank, PNC, TD Bank, TD Canada, ING, Santander. Each has its own parser, written against that bank's printed layout.

How does it detect which bank a PDF is from?

Each parser has a detection rule over the extracted text. They are tried in a fixed order and the first match wins, so you never choose the bank.

What happens when no parser matches?

On a website upload, Claude by Anthropic reads the statement automatically and the result is checked against the printed balances. The MCP server and the Chrome extension never use AI and return the parser's error instead.

Is there a public API?

There is no public REST API. There is an MCP server at /api/mcp that agents can call with convert_bank_statement and list_supported_banks, and a Chrome extension. Both use only the dedicated parsers.

What does the MCP tool return?

bank, transaction_count, period, currency, reconciliation, file, pages_used, pages_remaining. The reconciliation field holds verified, method and difference, and file holds the format and the content. The input is a base64 PDF of up to 8 MB, and the format is csv, ofx or qbo.

Is the output schema the same for every bank?

Yes. The CSV always has Date, Description, Amount, Type and Balance in that order, with ISO dates, two-decimal amounts, debits negative and the balance empty when the statement prints none.

Run a statement through the parser

No signup needed. Upload a PDF, read the verdict and download the CSV, Excel, QBO or OFX file.

Upload a statement