Convert MT940 bank statements to Excel or CSV

Drop the MT940 file your bank or banking program gave you, often named .sta. You get one row per booking: booking date, value date, a signed amount, and for German files the counterparty, IBAN, references and remittance text taken from field 86.

Your file never leaves your browser.How to check that
No file at hand?

From an e-mail: save the attachment to Files first, then choose it here.

Nothing is uploaded

The file is read in your browser and the result is made on your device. No upload, no account, no cookie, no analytics script.

To check, switch off Wi-Fi once the page has loaded; the tool keeps working. The page's security policy blocks most background requests, but it is not a complete guarantee by itself (WebRTC, for example, is not covered). Privacy page

What an MT940 file is

MT940 is the SWIFT "Customer Statement Message": an account statement as plain text, with many statements one after another in a file. Each piece of information starts with a field number between colons, and a statement ends with a line holding only a hyphen. The same content arrives as .sta, .mt940, .940 or .txt. Each field explained: MT940 format; the same statement as camt.053: MT940 vs camt.053.

:20:1234567
:25:00010001/1234567
:28C:5/1
:60F:C131101EUR2200,95
:61:1311121111CR155,34NTRFNONREF//55555
:86:166?00SEPA-UEBERWEISUNG?109315?20EREF+987654123456?21SVWZ+Gehalt Ok
tober?30PROBDEF0XXX?31DE65000400040000004114?32Max Mustermann
:62F:C131112EUR2356,29
-

What you get

The workbook has two sheets; the CSV holds the first. The 28 columns are the same, in the same order, as the first 28 of our CAMT.053 converter. An archive of MT940 statements and newer CAMT statements can therefore be stacked in one sheet. A CAMT sheet has nine more columns after them, for structured remittance details, which MT940 does not have. Columns MT940 has no field for stay empty.

The columns

Show the 28 columns and where each comes from
ColumnWhat it holdsWhere it comes from
AccountYour account as the bank writes it: an IBAN, or bank code and account number. A currency appended to it is removed.:25:
Booking dateThe day the bank booked the entry. The file gives only month and day; the year comes from the date of the statement (its closing balance), not from the value date. Empty when the bank leaves the entry date out.:61: (entry date)
Value dateThe value date. Always present.:61: (value date)
AmountSigned: C and RD positive, D and RC negative. A number cell, exact to the cent.:61:
CurrencyCurrency of the statement's balances; field 61 itself carries none.:60F: / :62F:
Credit/DebitCredit or Debit. A reversal of a credit (RC) is a debit.:61:
CounterpartyThe other side of the payment.:86: ?32 ?33
Counterparty IBANIBAN of the other side; in files from before SEPA the account number.:86: ?31
Counterparty BICBIC of the other side's bank; in files from before SEPA the bank code.:86: ?30
Remittance informationThe payment reference, put back together from its 27-character pieces. A space can be missing or one too many where two pieces meet.:86: ?20-?29, ?60-?63 (SVWZ+)
End-to-end IDThe payer's own reference. NOTPROVIDED is shown as empty.:86: EREF+
Mandate IDSEPA direct debit mandate reference.:86: MREF+
Creditor IDSEPA creditor identifier of a direct debit. Only text that has the form of one is put here.:86: CRED+
Bank referenceThe bank's reference for the booking.:61: (after //)
Bank transaction codeEmpty: MT940 has no ISO bank transaction code.-
Proprietary codeTransaction type and GVC, e.g. NTRF+166 - written the way German banks write it in CAMT.:61: + :86:
Purpose codeISO purpose code, when the bank supplies it.:86: PURP+
Return reasonReason code of a returned payment, e.g. AC04, translated from the three-digit text key addition.:86: ?34
Reversal"yes" when the entry reverses an earlier one.:61: (RC, RD)
StatusBOOK for MT940. Empty for MT942, which does not say. PDNG for an entry marked as expected.-
Booking textThe bank's booking text, then anything that has no column of its own, separated by " | ": a customer reference, identifiers such as KREF+, and the lines of a field :NS: that stands beside field 86.:86: ?00, :61: line 2
Ultimate debtorThe party on whose behalf the payer paid, if stated.:86: ABWA+ / ABWE+
Ultimate creditorThe final recipient, if stated.:86: ABWE+ / ABWA+
Batch positionEmpty: MT940 reports a batch as one line without its parts.-
Booked batch amountEmpty, for the same reason.-
StatementThe statement number the row came from.:28C:
Source fileThe file (or ZIP member) the row came from.-
Also listed inEmpty for most rows. "also listed with the same bank reference in …" when the statement or report named holds a booking with the same bank reference, dates and amount: usually the same booking delivered twice, but two bookings when a bank uses one reference more than once (instalments, a collection). "probably repeated in …" when every booking of the row's statement is found again in the one named, or its first bookings at the end of that one, and balances or a run of equal bookings speak for a repeat without proving it. "looks like a row in …" when a row there has the same dates, amount and text, or the same bank reference, and nothing settles whether it is the same booking. Where a booking is in a statement (MT940) and in an interim report (MT942), the report's row carries the mark. No mark says that a row is a repeat; each says what was found. No booking row is removed on a guess; the only thing left out is a statement that is a copy to the letter whose balances prove it, and the warning names it.-

Field 86

How field 86 is read

SWIFT leaves field 86 to each bank, so the structured reading is the German one: a three-digit business transaction code, then subfields that each start with a question mark and two digits (?00 booking text, ?20 to ?29 and ?60 to ?63 remittance in pieces of 27 characters, ?30 and ?31 BIC and IBAN of the other party, ?32 and ?33 its name, ?34 a reason code on returns). Identifiers such as EREF+, MREF+, CRED+ and SVWZ+ label the SEPA data, and each goes in its own column.

Banks elsewhere write free text or code words between slashes such as /EREF/ and /REMI/. For such a file the whole of field 86 goes into the remittance column as it is, with a warning. No structure is guessed.

The remittance text is put back together, not copied. The file does not say whether the break between two 27-character pieces fell between words or inside one. The converter follows the banks' own rule: a full-width piece continues without a space, a shorter one with a space. On our test files that was clearly wrong at 11 of 443 joins, about 2.5 percent: a missing space ("Einkaufbei") or one too many. A bank that drops the space at such a break would affect far more joins. Amounts and dates are not affected. A reference cut across two pieces goes through the same rule and can contain a space that does not belong there, so keep it in mind when you search, filter or match by text or reference.

Signs and reversals

How signs are set

Field 61 marks every line C (credit), D (debit), RC or RD. RC is the reversal of a credit: money leaves the account, so the amount is negative. RD is the reversal of a debit and positive. Both show "yes" in the Reversal column. A mark the converter does not know is never guessed: the file is not converted and you are told the line.

Booking date and value date

How the year is found

Field 61 carries the value date and usually an entry date as month and day only. The converter takes the year from the statement's own date, which is the date of its closing balance (field 62F; for an MT942 report the date in field 13D): the entry date is the latest such day that is not after the statement, so entry date "1231" on a statement of 2 January 2026 is 31 December 2025. Up to 10 days after the statement's date still count as the same year, because some banks date the closing balance before the last booking.

Only a statement that has no date of its own, because its closing balance is missing or is dated before its opening balance, gets the year that puts the entry date nearest the value date. A warning says so: that guess is a year off when the two dates lie more than about six months apart. Where an entry date lies outside its statement's period while the value date points to another year, the statement's year is kept and a warning names the row. When the bank leaves the entry date out, the Booking date column is empty for those rows, with one warning per statement; the Value date column is always filled.

MT940 and MT942

MT942 and repeated bookings

MT940 is the end-of-day statement with opening and closing balance; MT942 is the interim report during the day, without balances. Both are read. For MT942 the converter compares the number and sum of the lines with the bank's own totals (fields 90D and 90C) where present.

A booking appears in an MT942 report and again in the evening's MT940 statement, and some banks repeat earlier lines in each later report. The converter says so when it sees the same booking more than once. No booking row is removed on a guess: the only thing left out is a statement that is a copy to the letter whose balances prove it, and the warning names it.

Several files, archives and the balance check

What the balance check covers

Drop everything at once, ZIP archives included. Statements are ordered by account and date and written to one sheet.

  • Within a statement: opening balance (field 60F) plus all lines must equal the closing balance (field 62F).
  • Between statements: each must open at the balance the previous one of the account closed at. A gap means a missing statement or an overlap.
  • Multi-page statements (fields 60M and 62M) are chained into one, also across files. A missing page is reported.
  • Where the statements of an account carry the bank's running number (field 28C) and one is missing (statements 3 and 5 are there, 4 is not), you are told, also when the balances connect. This is the only thing that shows a missing day on an account that closes at the same balance every day. Banks number differently, so the converter speaks only where the numbers are plainly a running count with a hole in it; otherwise the sequence rests on the balances alone, and a missing day that leaves the balance unchanged cannot be seen.
  • A statement in the files twice, the same to the letter, is left out once and reported when its balances show it is a copy. Otherwise, and always for an MT942 report, both are kept and the rows of the second are marked. The same booking in two different statements is reported and kept.
  • A file that cannot be read is listed with its error.

You see a green confirmation only when every statement adds up, the statements follow on from each other, the bank's numbering shows no hole, no booking was found twice and no statement's date looks a year off against the value dates of its bookings. A mismatch is never repaired.

Encodings

Encoding rules

UTF-8, ISO 8859-1 and Windows-1252 are read directly. DOS code page 850, from older banking programs, shares its bytes with other letters (the byte that is "Ü" there is "š" in Windows-1252), so the converter reads a file as code page 850 only when that is proven by where the characters stand, and says that it did. Where it may be code page 850 but nothing proves it, the text is left as read with a warning; a name such as "Aleš Novák" is never repaired. If an accented letter looks wrong, look at the encoding of the file first.

Limits

Sample file

Everything in it is invented.

Die Deutsche Kreditwirtschaft, DFÜ Agreement, Appendix 3, version 3.8 (8 April 2024), chapter 8, in the archive at ebics.de; the layout of field 61 is as restated there. Diese Seite auf Deutsch