IBAN to BIC API
Checks an IBAN’s check digits and layout for any IBAN country, and finds its bank and BIC in the official bank lists of 14 countries.
Checks IBANs from every country that uses them (country code, length, layout and the check digits) and, for Austria, Belgium, Croatia, Czechia, Estonia, Finland, Germany, Hungary, Liechtenstein, Netherlands, Norway, Slovakia, Slovenia and Switzerland, looks up the bank and its BIC (SWIFT code) in the country’s official list of bank codes. Nothing is asked of any bank, so a valid IBAN only means it is well formed, not that the account exists.
An IBAN is someone’s bank account. Send it in a POST body rather than the query string, which web servers and proxies tend to log.
Endpoint
POST https://supertoolshq.com/api/v1/finance/iban-to-bic/ (form-encoded body)
GET https://supertoolshq.com/api/v1/finance/iban-to-bic/
Parameters
| Name | Values | Default | Meaning |
|---|---|---|---|
iban | Text | required | One IBAN, or a list of up to 500: one per line, or separated by commas, semicolons, tabs or pipes. Spaces, hyphens, dots and an “IBAN:” label are ignored; any case works. |
Response
| Field | Type | Meaning |
|---|---|---|
counts | object | How many came out found, valid and invalid, and how many repeat an earlier one (duplicates). |
results | array | One object per IBAN, in the order sent, with the fields below. |
results[].input | string | The IBAN as sent. |
results[].iban | string | Compacted: capitals, no spaces. |
results[].formatted | string | In blocks of four, as printed on paper. |
results[].status | string | found (valid IBAN, BIC found), valid (valid IBAN, but no BIC to give) or invalid. |
results[].valid | boolean | Country, length, layout and check digits are all right. It can’t say whether the account exists: only the bank knows that. |
results[].country | object|null | code and English name, once the country code is one that uses IBANs. |
results[].bankCode | string|null | The bank code inside the IBAN, for the countries with a bank list. |
results[].bic | string|null | The bank’s BIC (SWIFT code), 8 or 11 characters as the list gives it. Never given for an invalid IBAN: the typo may be in the bank code. |
results[].bank | object|null | The bank behind the bank code: name, town, closed (the list marks the code as closed or closing) and successor (the bank code taking over, if named). Null for an invalid IBAN. |
results[].bankListDate | string|null | Date (Y-m-d) of the bank list the answer comes from; null when the country has none. |
results[].problems | array | What is wrong, each as code and text. Codes: empty, chars, shape, country, length, digits, layout, checksum. Empty for a valid IBAN. |
results[].notes | array | Sentences worth reading before paying: why there is no BIC, a closed bank code, a BIC registered in another country. |
results[].suggestion | string|null | For an invalid IBAN with the letter O or I where the layout wants a digit: the IBAN with 0 or 1 there, when that makes it valid. |
results[].duplicateOf | integer|null | For a repeat in a list: the 1-based position of its first copy. |
Example
curl -X POST https://supertoolshq.com/api/v1/finance/iban-to-bic/ --data-urlencode 'iban=DE89 3704 0044 0532 0130 00'
{
"counts": {
"found": 1,
"valid": 0,
"invalid": 0,
"duplicates": 0
},
"results": [
{
"input": "DE89 3704 0044 0532 0130 00",
"iban": "DE89370400440532013000",
"formatted": "DE89 3704 0044 0532 0130 00",
"status": "found",
"valid": true,
"country": {
"code": "DE",
"name": "Germany"
},
"bankCode": "37040044",
"bic": "COBADEFFXXX",
"bank": {
"name": "Commerzbank",
"town": "Köln",
"closed": false,
"successor": null
},
"bankListDate": "2026-09-07",
"problems": [],
"notes": [],
"suggestion": null,
"duplicateOf": null
}
]
}
A list
Up to 500 IBANs in one call. Here the second has a typo in its last digit:
curl -X POST https://supertoolshq.com/api/v1/finance/iban-to-bic/ --data-urlencode $'iban=NL91 ABNA 0417 1643 00\nNL91 ABNA 0417 1643 01'
{
"counts": {
"found": 1,
"valid": 0,
"invalid": 1,
"duplicates": 0
},
"results": [
{
"input": "NL91 ABNA 0417 1643 00",
"iban": "NL91ABNA0417164300",
"formatted": "NL91 ABNA 0417 1643 00",
"status": "found",
"valid": true,
"country": {
"code": "NL",
"name": "Netherlands"
},
"bankCode": "ABNA",
"bic": "ABNANL2A",
"bank": {
"name": "ABN AMRO BANK N.V.",
"town": null,
"closed": false,
"successor": null
},
"bankListDate": "2026-11-03",
"problems": [],
"notes": [],
"suggestion": null,
"duplicateOf": null
},
{
"input": "NL91 ABNA 0417 1643 01",
"iban": "NL91ABNA0417164301",
"formatted": "NL91 ABNA 0417 1643 01",
"status": "invalid",
"valid": false,
"country": {
"code": "NL",
"name": "Netherlands"
},
"bankCode": "ABNA",
"bic": null,
"bank": null,
"bankListDate": null,
"problems": [
{
"code": "checksum",
"text": "The check digits (characters 3–4) don’t match the rest of the IBAN, so at least one character is mistyped. The check can’t tell which: compare it with the invoice or bank details it came from."
}
],
"notes": [
"Bank code ABNA would be ABN AMRO BANK N.V., but with the IBAN invalid the mistake may be in the bank code itself, so no BIC is given."
],
"suggestion": null,
"duplicateOf": null
}
]
}
Errors
An invalid IBAN is not an error: it is a result with status invalid and its problems. HTTP 400 is only for a request with no IBAN, more than 500, or over 64 KB:
{
"errors": {
"iban": "Required: an IBAN, like DE89 3704 0044 0532 0130 00, or a list of them."
}
}
From code
// JavaScript
const res = await fetch('https://supertoolshq.com/api/v1/finance/iban-to-bic/', { method: 'POST', body: new URLSearchParams({ iban: 'DE89 3704 0044 0532 0130 00' }) });
const [r] = (await res.json()).results;
console.log(r.valid, r.bic, r.bank?.name);
# Python
import json, urllib.parse, urllib.request
body = urllib.parse.urlencode({'iban': 'NL91 ABNA 0417 1643 00'}).encode()
r = json.load(urllib.request.urlopen('https://supertoolshq.com/api/v1/finance/iban-to-bic/', body))['results'][0]
print(r['status'], r['bic']) The conventions every API here follows (methods, errors, versions) are in the API overview.