Independent product studio · Swedenhello@karelialabs.com

Windows app Coming soon

Karelia Treasury: open BAI2 bank balance reports, check their totals and save them as Excel or CSV

A BAI2 file is the balance report a bank sends to a company, often every morning. It is plain text, but it is not made for reading: every line is a row of codes and commas, amounts are written without a decimal point, long texts run over several lines, and what a line means depends on a three-digit type code.

Coming soon to the Microsoft Store. For Windows 10 (version 2004 or later) and Windows 11, 64-bit. Works offline, with no account.

Price
$19.99 in the Microsoft Store
Opens
BAI2 balance reports (BAI version 2): .bai and .bai2 files, and .txt or .dat files with BAI2 content
Saves
Excel workbook (.xlsx) and CSV
Type codes
414 standard BAI type codes named in words
Windows
Windows 10 version 2004 (build 19041) or later, or Windows 11, 64-bit (x64). About 200 MB of disk space.
Needs
No other software
Karelia Treasury showing a BAI2 balance report as a table: closing ledger, money in, money out and every transaction in words
A BAI2 balance report as a table: closing ledger, money in, money out and every transaction in words

Karelia Treasury reads all of it on your own PC and shows one entry per account, each with two tables. Transactions: date, type code and its name in words ("Incoming money transfer", "Check paid", "Lockbox deposit"), the full text, the amount, bank reference and customer reference. Balances and totals: opening and closing ledger, available balances, float, total credits and total debits, each with its code and what it is.

Treasury also checks the file, which is the part that takes time by hand, and says "Totals agree" or tells you in plain words which numbers differ and by how much. It is made for people in accounting, treasury and bookkeeping who get a .bai file from the bank and need the numbers in a spreadsheet, and for people who build or test bank file imports.

What Karelia Treasury does

Type codes in words

The names of 414 standard BAI type codes are built in. Codes a bank has made up itself are shown with their number and whether they are a credit or a debit.

Control totals and record counts

A BAI2 file carries control totals and record counts for every account, every group and the whole file. Treasury adds up what is really in the file and compares.

Ledger check

Opening ledger plus total credits minus total debits is compared with the closing ledger, and the sum of the transaction lines with the bank's own total credits and total debits.

Plain words when it is off

If a line was lost, added or changed on the way, the account says "Totals to look at" and tells you which numbers differ and by how much.

Long texts shown whole

Continuation lines (record 88) are joined, so long payment texts are shown whole. Files written as one long line are read as well as files with one record per line.

Amounts with the right decimals

Two decimals for most currencies, none for JPY and similar, three for a few, and you can set this yourself if a bank does it differently. Debits are shown as negative amounts.

All accounts in one table

Every account from every open file in one table, with a column for the account. Open the files of a whole week at once. Sums are given per currency and never added across currencies.

Excel and CSV, offline

An Excel workbook with real dates and numbers, one sheet per table and a Summary sheet, or CSV with your separator, decimal mark and date format, with the columns you tick. No account, no internet connection, no telemetry; your files are only read.

How it works

  1. Open your files. Press Open and pick .bai or .bai2 files, or .txt and .dat files with BAI2 content, many at once or a whole folder. The first screen also has a built-in sample to try.
  2. Look at the check. Each account says "Totals agree" or "Totals to look at", with the numbers that differ in plain words.
  3. Export. Press Export and save an Excel workbook or a CSV file, with the columns you tick.

Screenshots

Karelia Treasury showing balances and totals: ledger, available, float, total credits and total debits
Balances and totals: ledger, available, float, total credits and total debits
Karelia Treasury showing a report that was edited on the way: the totals no longer agree, and the notes say by how much
A report that was edited on the way: the totals no longer agree, and the notes say by how much
Karelia Treasury in dark mode showing a search in every account at once, with totals for the rows shown
Search every account at once, with totals for the rows shown
Karelia Treasury in dark mode showing all accounts in one table, with sums per currency
All accounts in one table, with sums per currency
Karelia Treasury: the export panel with the choice of Excel workbook or CSV file, which rows to export and a tick box for every column
Export to an Excel workbook or to CSV, with the columns you tick

Pricing

$19.99Microsoft Store

Karelia Treasury for Windows 10 and 11, 64-bit.

Good to know

  • Treasury does not connect to a bank and does not download files; you get the file from your bank's portal or file transfer as you do today. It does not write or change BAI2 files, and it does not import into accounting software. It reads BAI2 (version 2), not the older BAI1 format, and it is not a reader for camt.053, MT940, ACH or EDI files; if you open one of those by mistake it says so in plain words.
  • Karelia Treasury was tested with BAI2 files we wrote ourselves from the published format, including files in one long line and files with deliberate errors, not with files from every bank. Banks use the format in slightly different ways. If a line cannot be read, it is listed on the Issues tab with its line number, never guessed.
  • BAI2 is a format first published by the Bank Administration Institute. Microsoft and Excel are trademarks of the Microsoft group of companies. This app is not affiliated with the Bank Administration Institute, with any bank or with Microsoft.

Privacy

Karelia Treasury works entirely on your PC. It does not connect to the internet, has no account, collects no data and sends nothing anywhere: no telemetry, no crash reports, no update check. The bank files you open are only read, never changed. Exports are written only to the folder you choose. Settings (export options and reading options) and a small error log are stored on your PC in %LOCALAPPDATA%\Karelia Labs\Karelia Treasury; the log contains file names but no balances or transactions. Questions: support@karelialabs.com.

FAQ

How do I open a BAI2 file in Excel?

A BAI2 file is plain text with commas, but in Excel you only see codes: amounts have no decimal point and long texts run over several lines. Karelia Treasury reads the file and saves balances and transactions as an Excel workbook with real dates and numbers, or as CSV.

What does Treasury check?

The control total and the record count of every account, group and file; opening ledger plus total credits minus total debits against the closing ledger; and the sum of the transaction lines against the bank's own total credits and total debits.

What happens with type codes my bank made up itself?

The names of 414 standard type codes are built in. Other codes are shown with their number and whether they are a credit or a debit.

Does it read BAI1, camt.053, MT940 or ACH files?

No. It reads BAI2 (version 2). If you open a camt.053, MT940, ACH or EDI file by mistake it says so in plain words. For camt.053 and MT940 files, see Camtwright; for ACH files, see Karelia Batch.

Does it connect to my bank?

No. You get the file from your bank's portal or file transfer as you do today. Treasury works offline, has no account and only reads the files you open.

Related tools

More from Karelia Labs

Updated