MT940 / camt.053 / OFX / BAI2 Statement to JSON Converter
Turn MT940 / MT942, camt.052 / 053 / 054, OFX and BAI2 statements into one JSON transaction schema with balance checks; build pain.001 files.
Result
Press “Run” to see the result.
Send a statement as text, a file upload or a raw body. The format is detected (or set from): SWIFT MT940 / MT942 (with or without the {1:}{2:}{4:} blocks; field 86 in the German ?-structure with SEPA keywords EREF+ / MREF+ / SVWZ+, the /EREF/NAME/IBAN/REMI/ slash structure, or free text), ISO 20022 camt.052 / camt.053 / camt.054 (any version), OFX / QFX 1.x SGML and 2.x XML (bank and credit-card statements) and BAI2 (continuation records, funds types, amounts in minor units).
Every statement becomes account (IBAN, number, BIC, currency, owner), opening / closing / available balances and transactions with booking and value dates, a signed amount, direction, bank transaction code with description (ISO 20022 domain / family / sub-family, BAI type codes), bank and customer references, end-to-end ID, mandate and creditor IDs, counterparty name / IBAN / BIC and remittance information. checks recomputes opening + transactions = closing and compares stated counts. format=csv returns one row per transaction.
action=pain001 builds an ISO 20022 credit transfer (pain.001.001.09, or version: "03") from JSON debtor and payments, checking IBANs (country length + mod 97), BICs and amounts; all-EUR / IBAN batches are marked SEPA. action=iban checks one IBAN.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/bank-formats" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":":20:STMT20261111\n:25:DEUTDEFF/DE89370400440532013000\n:28C:00221/001\n:60F:C261110EUR1250,00\n:61:2611101110D45,50NDDTNONREF//BANKREF001\n:86:/EREF/INV-2026-001/NAME/Stadtwerke Musterstadt/IBAN/DE02120300000000202051/REMI/USTD//Strom November/\n:61:2611111111C1000,00NTRFINV7788//BANKREF002\n:86:/EREF/E2E-7788/NAME/ACME GmbH/IBAN/DE75512108001245126199/REMI/USTD//Invoice 7788/\n:62F:C261111EUR2204,50\n-"}'const res = await fetch('https://apibox.io.vn/v1/bank-formats', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"text": ":20:STMT20261111\n:25:DEUTDEFF/DE89370400440532013000\n:28C:00221/001\n:60F:C261110EUR1250,00\n:61:2611101110D45,50NDDTNONREF//BANKREF001\n:86:/EREF/INV-2026-001/NAME/Stadtwerke Musterstadt/IBAN/DE02120300000000202051/REMI/USTD//Strom November/\n:61:2611111111C1000,00NTRFINV7788//BANKREF002\n:86:/EREF/E2E-7788/NAME/ACME GmbH/IBAN/DE75512108001245126199/REMI/USTD//Invoice 7788/\n:62F:C261111EUR2204,50\n-"
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/bank-formats",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"text": ":20:STMT20261111\n:25:DEUTDEFF/DE89370400440532013000\n:28C:00221/001\n:60F:C261110EUR1250,00\n:61:2611101110D45,50NDDTNONREF//BANKREF001\n:86:/EREF/INV-2026-001/NAME/Stadtwerke Musterstadt/IBAN/DE02120300000000202051/REMI/USTD//Strom November/\n:61:2611111111C1000,00NTRFINV7788//BANKREF002\n:86:/EREF/E2E-7788/NAME/ACME GmbH/IBAN/DE75512108001245126199/REMI/USTD//Invoice 7788/\n:62F:C261111EUR2204,50\n-"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/bank-formats');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"text":":20:STMT20261111\\n:25:DEUTDEFF/DE89370400440532013000\\n:28C:00221/001\\n:60F:C261110EUR1250,00\\n:61:2611101110D45,50NDDTNONREF//BANKREF001\\n:86:/EREF/INV-2026-001/NAME/Stadtwerke Musterstadt/IBAN/DE02120300000000202051/REMI/USTD//Strom November/\\n:61:2611111111C1000,00NTRFINV7788//BANKREF002\\n:86:/EREF/E2E-7788/NAME/ACME GmbH/IBAN/DE75512108001245126199/REMI/USTD//Invoice 7788/\\n:62F:C261111EUR2204,50\\n-"}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Does it support my bank’s MT940 dialect?
The common field 86 layouts (German ?xx codes with SEPA keywords, slash codes used by Dutch and many European banks, free text) are recognised; unknown layouts keep the full text in description.
Are statements stored?
No. Files are parsed in memory and nothing is kept after the response.
Is the pain.001 file accepted by every bank?
It follows the ISO 20022 schema with SEPA rules when applicable; some banks require extra fields (e.g. specific charge bearer or service level), so test with your bank first.