Validate an MT940 file
Check an MT940 bank statement field by field. Each finding names the line, the field and what was expected against what was found.
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 is checked
- Structure: mandatory fields, their order, repeats, a field 86 without a field 61, unknown tags, extra lines, the hyphen that ends a message, line breaks and characters.
- Fields: references, account, statement and sequence number, balance marks, dates, currencies, amounts, and every part of a statement line.
- Across messages: currencies, F and M balance options, sequence numbers, and opening balances against the closing balance before.
- Sums: opening balance plus entries against the closing balance. Our own check, only ever a warning.
What is not checked
No error means the checks listed on this page found nothing, and nothing more. The tool does not know your bank's own rules or the content of field 86, and does not check that an account, bank code or currency exists. It reads one file at a time; an MT942 message is recognised and left unchecked.
To turn a statement into a spreadsheet: MT940 to Excel or CSV. Every field explained: MT940 file format.
All messages
Show all 36 messages and their basis
| Message | Kind | Basis |
|---|---|---|
| The file is empty | error | No claim about MT 940 |
| This does not look like an MT940 file | error | SWIFT Category 9, MT 940 format table (fields 20, 25a, 28C, 60a) |
| This looks like an MT942 interim report; it was not checked | note | SWIFT Category 9, MT 942 format table |
| A mandatory field of the statement is missing or empty | error | SWIFT Category 9, MT 940 format table (fields 20, 25, 28C, 60a, 62a) |
| Fields are not in the order the MT940 format lists them | error | SWIFT Category 9, MT 940 format table; DK Appendix 3 V3.8, 8.2.1 |
| A field that may appear only once appears again in the same message | error | SWIFT Category 9, MT 940 format table; DK Appendix 3 V3.8, 8.2.2 |
| A field 86 does not follow a field 61 | error | SWIFT Category 9, MT 940 network validated rule C1 |
| A field tag is not one the MT940 format lists | warning | SWIFT Category 9, MT 940 format table |
| A message is not followed by a line with a hyphen (-) | note | DK Appendix 3 V3.8, 8.1 rule 5 |
| Lines are not separated by CR LF | note | DK Appendix 3 V3.8, 8.1 rule 4 |
| A character is used that the SWIFT character set does not include | warning | DK Appendix 3 V3.8, 8.1 rule 9 |
| A line stands outside every field and was not checked | note | No claim about MT 940 |
| A reference starts or ends with a slash, or has two slashes in a row | error | SWIFT Category 9, MT 940 fields 20 and 21 (error code T26) |
| A field has a line its format does not allow | error | SWIFT Category 9, MT 940 field formats |
| A field is longer than the length the format gives it | warning | SWIFT Category 9, MT 940 field formats; DK Appendix 3 V3.8, 8.1 rule 8 |
| The identifier code of a field 25P does not have the shape of a BIC | error | SWIFT Category 9, MT 940 field 25a, option P |
| Field 28C is not a statement number of up to 5 digits, optionally followed by / and a sequence number | error | SWIFT Category 9, MT 940 field 28C |
| The sequence numbers of a statement do not start at 1 and rise by one | warning | SWIFT Category 9, MT 940 field 28C usage rules |
| A balance does not start with C (credit) or D (debit) | error | SWIFT Category 9, MT 940 field 60a (error code T51) |
| A balance date is not a valid date (YYMMDD) | error | SWIFT Category 9, MT 940 field 60a (error code T50) |
| A balance currency is not three letters | error | SWIFT Category 9, MT 940 field 60a format |
| An amount is not digits with a decimal comma | error | SWIFT Category 9, MT 940 field 60a (error codes T40, T43), format 15d |
| A statement line (field 61) cannot be read in the format of the field | error | SWIFT Category 9, MT 940 field 61 format |
| The value date of a statement line is not a valid date (YYMMDD) | error | SWIFT Category 9, MT 940 field 61 (error code T50) |
| The entry date of a statement line is not a month and day (MMDD) | error | SWIFT Category 9, MT 940 field 61 (error code T50) |
| The debit/credit mark of a statement line is not C, D, RC or RD | error | SWIFT Category 9, MT 940 field 61 (error code T51) |
| The debit/credit mark of a statement line is EC or ED, which the text we checked does not list | warning | SWIFT Category 9, MT 940 field 61 (error code T51) |
| The funds code of a statement line is not the third letter of the currency | warning | SWIFT Category 9, MT 940 field 61, subfield 4 |
| The transaction type of a statement line is not S, N or F | error | SWIFT Category 9, MT 940 field 61 (error code T53) |
| A SWIFT transaction type code is not a number from 100 to 999 | error | SWIFT Category 9, MT 940 field 61 (error code T18) |
| A statement line has no customer reference | warning | SWIFT Category 9, MT 940 field 61 usage rules |
| A field 86 is longer than 6 lines of 65 characters | note | SWIFT Category 9, MT 940 field 86 format |
| The balances of a message are in currencies that do not share their first two letters | error | SWIFT Category 9, MT 940 network validated rule C2 |
| The balance options (F or M) do not fit the place of the message in its statement | warning | SWIFT Category 9, MT 940 fields 60a and 62a usage rules |
| An opening balance differs from the closing balance of the previous message of the account | warning | SWIFT Category 9, MT 940 field 60a and 62a usage rules |
| In this file the opening balance plus the entries does not equal the closing balance | warning | Derived by this tool; not a printed rule |
The wording of every message is fixed, so you can search for it. Those with a link have a page of their own.
Sample files
Made up: no real bank, account or person.
- mt940-tagesauszuege.sta
- mt940-error-not-mt940.txt
- mt940-error-missing-28c.sta
- mt940-error-field-order.sta
- mt940-error-86-without-61.sta
- mt940-warning-unknown-tag.sta
- mt940-warning-character-set.sta
- mt940-error-reference-slashes.sta
- mt940-error-statement-number.sta
- mt940-error-balance-date.sta
- mt940-error-amount-format.sta
- mt940-error-line-mark.sta
- mt940-error-transaction-type.sta
- mt940-warning-continuity.sta
- mt940-warning-arithmetic.sta
Checked against SWIFT's Category 9 Message Reference Guide (MT 940) and the DFU Agreement, Appendix 3, V3.8 (Die Deutsche Kreditwirtschaft). Not affiliated with SWIFT or any bank.