BAI2 Bank Statement File Viewer

Open a BAI2 balance reporting file from a US bank to see groups, accounts, opening and closing balances, summary amounts and detail transactions with type code meanings, then export Excel, CSV, OFX or JSON.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Open

    Load the BAI2 file.

  2. 2
    Totals

    Check control totals.

  3. 3
    Codes

    Read type code meanings.

  4. 4
    Balances

    Compare opening and closing.

  5. 5
    Export

    Save Excel or CSV.

About this tool

The BAI2 Bank Statement File Viewer reads the comma separated balance reporting files that US banks send to corporate customers each morning. A BAI2 file is compact but hard to read by eye: each line starts with a two digit record code, amounts have no decimal point, and the meaning of every balance or transaction hangs on a three digit type code. This viewer runs entirely in your browser and lays the file out as tables. The 01 file header gives the sender, the receiver and the creation date and time. Each 02 group header gives the originator, the as-of date, the currency and the group status, such as an update or a correction. Each 03 account record gives the account number and a run of summary items, each with a type code, an amount, an item count and a funds type. The 16 records that follow are the detail transactions, and any 88 continuation records are joined onto the line before so that long text stays in one cell. Trailer records 49, 98 and 99 carry control totals and record counts, and every one of them is checked against what the file contains. The summary at the top lists the file name and size, sender, receiver, created time, the number of groups, accounts and transactions, and whether all control totals agree. The Transactions tab shows each detail with the account, as-of date, signed amount, debit and credit columns, currency, running balance, type code and its plain English meaning, customer reference, bank reference and text. The Balances and summaries tab lists the account level items such as opening ledger, closing ledger, total credits and total debits with their item counts, and the Groups tab shows each group header.

Who this is for

Treasury analysts and cash managers in US companies, accounts payable and receivable teams matching lockbox and ACH activity, and developers testing a bank feed before it reaches the ERP.

How to use it

1. Open the .bai, .bai2 or .txt file from your bank portal. 2. Check the summary line for control total issues. 3. Read the Transactions tab with its type code meanings. 4. Compare opening and closing ledger in Balances and summaries. 5. Download the transactions as Excel or CSV.

What the sample shows

The sample file was sent by EXAMPLEBANK to CUSTOMER01 on 2026-10-31 at 23:00 and has one group with one USD account, 0012345678. Its 03 record reports an opening ledger (010) of 15,000.00, a closing ledger (015) of 16,125.00, total credits (100) of 4,100.00 over 2 items and total debits (400) of 2,975.00 over 2 items. Four details follow: a preauthorized ACH credit (165) of 2,500.00, an incoming money transfer (195) of 1,600.00 whose text continues on an 88 record, a check paid (475) of 475.00 and an ACH debit received (451) of 2,500.00. The running balance ends at 16,125.00, which matches the closing ledger. The account control total of 4527500 and the 7 records counted in the 49 trailer both agree.

How type codes are grouped

Codes 001 to 099 are balances and status items, 100 to 399 are credits and 400 to 699 are debits, so a detail with a debit code is shown as a negative amount. Codes from 700 to 799 describe loans. The range 900 to 999 is left to each bank; the viewer marks those as bank-defined summaries, credits or debits by sub-range. Funds type fields such as value dated (V), distributed availability (D) and simple availability (S) are stepped over correctly so the references and text that follow stay in the right columns.

Control totals

The 49 account trailer total must equal the sum of the raw amounts in that account's 03 and 16 records, and the 98 and 99 trailers must equal the sum of the totals below them. Record counts include the 88 continuation lines. Detail credits and debits are also compared with the 100 and 400 summary totals when both are present.

Limits

Amounts are read with two implied decimal places, except for currencies such as JPY that have none. Bank-specific codes in the 900 range have no fixed meaning. With several accounts in the file, the OFX download is a ZIP holding one OFX file per account. The viewer is not banking or accounting advice; your bank's own report remains the record if anything differs.

Worked example

Sample account 0012345678: opening ledger 15,000.00, four details, closing ledger 16,125.00, all control totals agree.

Quick facts

Frequently asked questions

What is a BAI2 file?

It is the version 2 balance reporting format defined by the Bank Administration Institute, used by US banks to send prior-day and intraday balances and transactions to business customers.

Why are the amounts in my file missing decimal points?

BAI2 writes amounts in the smallest unit with no separator, so 1500000 means 15,000.00. The viewer divides by 100 for most currencies.

What does type code 475 mean?

475 is a check paid. The viewer shows the meaning of each code next to it, and codes it does not know are described by their range.

What happens to 88 continuation records?

They are joined to the record before them, so a long transaction text or a long list of summary items is read as one record.

What if a control total does not agree?

The summary shows the number of issues and a warning gives the figure in the trailer and the figure the viewer added up, which helps you find a cut or edited file.

Can I convert BAI2 to Excel?

Yes. The Excel download has a Transactions sheet and a Statements sheet, and the CSV download holds the transactions alone.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages