MT940 format
MT940 is the SWIFT bank statement message. Banks deliver it as a text file, often with the extension .sta, sometimes .mt940, .940 or .txt. Each line starts with a field tag such as :61:, and a statement ends with a line holding a single -.
An example statement
The first of three daily statements in our sample mt940-tagesauszuege.sta, from an invented German account:
:20:MUSTER-2026-190 :25:DE34000100010000001001 :28C:190/1 :60F:C261002EUR10000,00 :61:2610051005CR1190,00NTRFNONREF//2026100500001 :86:166?00SEPA-Gutschrift?109301?20EREF+RE-2026-0931?21SVWZ+Rechn ung RE-2026-0931 ?22vom 28.09.2026, Kundennumme?23r 40017?30BSPLD EF0XXX?31DE32000200020000002002?32Musterbäckerei & Söhne OHG :61:2610051005DR89,90NDDTNONREF//2026100500002 :86:105?00SEPA-Basislastschrift?109302?20EREF+ABSCHLAG-10-2026?21 MREF+SWM-448812?22CRED+DE98ZZZ09999999999?23SVWZ+Abschlag Strom O ktober?24 2026 Vertragskonto 7781234?25500 Zählernummer 1ESY11601 2?263456 Vielen Dank?30SPMUDEF0XXX?31DE30000300030000003003?32Sta dtwerke Musterstadt AG?34992 :61:2610051005DR3415,50NTRFKREF+//2026100500003 :86:191?00SEPA-Sammelueberweisung?109303?20KREF+LOHN-2026-10?21SV WZ+Sammelauftrag mit 3 Za?22hlungen :62F:C261005EUR7684,60 -
The fields
| Tag | Field | In the example |
|---|---|---|
| :20: | Transaction reference: the bank's ID for this statement | MUSTER-2026-190 |
| :25: | Account identification: IBAN, or bank code and account number | DE34000100010000001001 |
| :28C: | Statement number / page number | 190/1 |
| :60F: | Opening balance: C credit or D debit, date YYMMDD, currency, amount with a decimal comma. :60M: on a second page | C261002EUR10000,00 |
| :61: | Statement line: one booking | Three in the example |
| :86: | Information to the account owner: the text of the booking above it | One after each :61: |
| :62F: | Closing balance, same layout as :60F:. :62M: when another page follows | C261005EUR7684,60 |
| :64: | Closing available balance, optional | Not in the example |
Opening balance plus the bookings gives the closing balance: 10,000.00 + 1,190.00 - 89.90 - 3,415.50 = 7,684.60.
Field 61, taken apart
The first booking of the example is :61:2610051005CR1190,00NTRFNONREF//2026100500001.
| Part | Meaning |
|---|---|
261005 | Value date, YYMMDD |
1005 | Entry (booking) date, MMDD, optional |
C | C credit, D debit; RC and RD are reversals |
R | Funds code, optional: the third letter of the currency (EUR). It is not part of the mark |
1190,00 | Amount, with a decimal comma and no sign |
NTRF | Transaction type: N (at some banks S or F) and a three-character code; in the example TRF transfer, DDT direct debit, CHG charges |
NONREF | Customer reference; NONREF when there is none |
//2026100500001 | Bank reference, optional |
Field 86 in German statements
SWIFT lets field 86 be six lines of free text. German banks fill it with numbered subfields, which is why the example looks the way it does:
| Part | Meaning |
|---|---|
| First 3 digits | Business transaction code (GVC), e.g. 166 credit transfer, 105 direct debit |
| ?00 | Booking text |
| ?10 | Journal number |
| ?20 to ?29 | Remittance text in pieces of 27 characters, with labels such as EREF+ (end-to-end reference), MREF+ (mandate) and SVWZ+ (the remittance text) |
| ?30, ?31 | BIC and IBAN of the other party |
| ?32, ?33 | Name of the other party |
Banks in other countries write free text here, or code words such as /EREF/. Because the text is cut into 27-character pieces, a word can be split across two of them.
MT940, MT942 and camt.053
MT942 is the intraday report in the same style; it has no opening or closing balance. camt.053 is the ISO 20022 XML message for the same job as MT940. MT940 vs camt.053 shows this same statement in both formats.
Open an MT940 file in Excel
MT940 to Excel turns one or many .sta files into one sheet, one row per booking, with field 86 split into columns. The German page: MT940 in Excel umwandeln.
To check a file against the format, use the MT940 validator.
Another bank file, line by line: BAI2 file format.
From the DFÜ Agreement, Appendix 3, version 3.8, and the change log of version 3.9.