LOCAL PARSER · STATEMENTS

MT940 Statement Viewer

Parse statement headers, opening/closing balances and transaction lines from MT940 text.

● Browser-only processing

01 / SOURCE

02 / REPORT

Recent history

Method and formulas

Tags are split by colon records; :61: transaction lines are parsed for value date, debit/credit mark, amount and reference, with :86: narrative attached.

Use test or appropriately protected data. Parsing is local, but data can still be visible on your screen and in browser memory.

MT940 dialects differ. Review bank-specific structured :86: rules.

GUIDE

What this tool does and when to use it

The MT940 Statement Viewer parses raw SWIFT MT940 bank statement text directly in the browser to extract header fields, opening and closing balances plus individual transaction lines. It processes colon-delimited records such as :20: for transaction reference, :25: for account identification, :28C: for statement number, :60F: for opening balance, :61: for transaction details and :86: for narrative information. Users employ this tool when they need to inspect protected or test MT940 files without uploading data to external servers, especially during reconciliation of corporate accounts or verification of imported statement batches. The parser splits input on colon prefixes, isolates :61: lines to capture value date, entry date, debit or credit mark, amount and reference codes, then attaches any following :86: narrative block. This approach supports rapid review of statement structure before further processing in accounting systems.

Worked example with realistic numbers

Consider the supplied sample input containing a single debit transaction. The opening balance record :60F:C260722EUR1250,00 indicates a credit balance of 1250.00 euros on 22 July 2026. The transaction line :61:2607230723D49,95NTRFNONREF//BANKREF1 shows a debit of 49.95 euros with value date 23 July 2026 and entry date 23 July 2026. The attached :86:Demo payment supplies the narrative. The closing balance :62F:C260723EUR1200,05 confirms the resulting credit balance after the debit. A summary table of extracted data follows.

FieldRaw ValueParsed Meaning
:20:DEMOREFTransaction reference DEMOREF
:25:DE89370400440532013000Account number DE89370400440532013000
:60F:C260722EUR1250,00Opening credit balance 1250.00 EUR on 2026-07-22
:61:2607230723D49,95NTRFNONREF//BANKREF1Value date 2026-07-23, debit 49.95 EUR, reference NONREF//BANKREF1
:86:Demo paymentNarrative Demo payment
:62F:C260723EUR1200,05Closing credit balance 1200.05 EUR on 2026-07-23

Reviewing these parsed values allows confirmation that the debit reduced the balance correctly and that the reference data matches expected bank output.

Formula and method table

The parsing method follows a deterministic record-splitting procedure. Each colon-prefixed tag is isolated first, then specific sub-fields within :61: are extracted using fixed positional rules for dates, signs and amounts. The table below summarises inputs, processing steps and resulting outputs.

Input RecordProcessing StepOutput ComponentsUnits
:60F: or :62F:Split after currency codeSign, date (YYMMDD), amountEUR, comma decimal
:61:Extract positions 1-6 date, 7-10 entry date, sign, amount until letterValue date, entry date, D/C mark, amount, referenceYYMMDD, numeric amount
:86:Capture all text until next colon tagNarrative stringFree text

Units and conversions notes

MT940 amounts always use a comma as decimal separator and omit thousands separators. Dates follow YYMMDD format without century indication, requiring the parser to assume a 2000-2099 window for modern statements. Currency codes appear as three-letter ISO identifiers such as EUR or USD immediately before the amount. No automatic conversion between currencies occurs; the tool reports values exactly as supplied. When balances span month or year boundaries the date logic must correctly interpret the two-digit year to avoid misordering transactions.

Limitations

MT940 dialects vary across banks, particularly in the structure and sub-fields of :86: narratives, which may contain proprietary codes or additional structured data not recognised by the basic splitter. The parser performs no cryptographic validation of statement authenticity and does not check arithmetic consistency between opening balance, transactions and closing balance. Large statements containing several hundred :61: lines may exceed practical browser memory limits during initial paste operations. Because processing remains entirely local, any on-screen display of sensitive account numbers or references remains visible to anyone with physical access to the device until the tab is closed.

Common mistakes

Users frequently paste statements that contain extra line breaks or truncated records, causing the colon splitter to misalign subsequent tags. Another frequent error is assuming all banks place the same information inside :86: blocks, leading to missing reference details when the dialect differs. Entering amounts with a period instead of a comma produces incorrect numeric parsing. Neglecting to verify the statement number in :28C: can result in processing duplicate or incomplete statement sequences during month-end reconciliation.

Frequently asked questions

How does the parser distinguish the debit or credit mark inside a :61: line when the amount contains multiple digits?

The single letter D or C immediately precedes the numeric amount string after the entry date field. The parser scans for the first alphabetic character following the six-digit value date and treats it as the sign indicator before capturing the subsequent digits and comma.

What output occurs when a :86: narrative block spans multiple lines before the next colon tag appears?

All text until the next colon-prefixed record is concatenated into a single narrative string attached to the preceding :61: transaction. Line breaks are preserved as spaces to maintain readability.

Does the tool adjust two-digit years in :60F: or :61: dates when statements cross from December into January?

The parser assumes years fall within 2000-2099 and applies no automatic rollover logic. Users must manually confirm year boundaries for statements issued near century transitions.

How are amounts reported when the currency code differs between opening balance and transaction lines?

Each record is parsed independently; mismatched currencies are displayed exactly as written without conversion or warning. Reconciliation checks must be performed outside the viewer.

What happens if the closing balance amount does not equal opening balance minus net transactions?

The tool reports the parsed values without performing arithmetic validation. Any discrepancy must be investigated by comparing the original bank file against internal ledger entries.

Can the viewer process MT940 files containing multiple statements separated by :28C: increments?

It extracts all records present but does not automatically group them into separate statements. Each :28C: value is shown individually for manual review of sequence integrity.

Which reference sub-fields from a :61: line are captured when the bank uses non-standard separators?

Only the text following the amount up to the next colon tag is stored as reference. Custom bank separators inside that segment remain intact as a single string.

How does local browser processing affect visibility of account numbers extracted from :25: fields?

Account identifiers remain in browser memory and on-screen until the page is refreshed or closed. No network transmission occurs, yet screen capture or memory inspection remains possible.