curatedapi

BIC (SWIFT code) check

Check the structure of a BIC (SWIFT code) under ISO 9362 and split it into party, country and branch.

The BIC to check, 8 or 11 characters. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters.

Examples

Example: An 11-character BIC with a branch

Valid
Whether the BIC passes every check.
yes
Normalized
The number as it was checked: separators removed, letters in upper case.
DEUTDEFF500
Message
The result in a sentence, naming the rule that failed.
A well-formed BIC for Germany.
Party prefix
Characters 1 to 4.
DEUT
Country
Characters 5 and 6.
DE
Country name
The country's name.
Germany
Party suffix
Characters 7 and 8.
FF
Branch
Characters 9 to 11, when given.
500
Bic8
The first eight characters.
DEUTDEFF
Primary office
True when there is no branch code or it is XXX.
no
Test bic
True when the eighth character is 0, which SWIFT uses for test and training BICs.
no

Calculator check/bic@1.

How it is calculated

4 characters (party prefix) + 2 letters (ISO 3166 country) + 2 characters (party suffix) + optional 3 characters (branch)

Checks a Business Identifier Code as ISO 9362 defines it: 8 or 11 characters, a four-character party prefix, a two-letter ISO 3166 country code, a two-character party suffix and an optional three-character branch. A BIC has no check digit, so the structure and the country code are all that can be tested without the SWIFT directory.

  • The number is checked by arithmetic alone. Nothing is looked up, so a valid result means the number is well formed, not that the account, company or security exists.
  • Whether a BIC is in use can only be told from the SWIFT directory, which is licensed and is not consulted.

References

Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.

Use it from your code

POST /v1/calc/check/bicVersion 1
curl https://api.curatedapi.com/v1/calc/check/bic \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "number": "DEUTDEFF500"
  }'
The same call in Python
import os

import requests

payload = {
    "number": "DEUTDEFF500",
}
response = requests.post(
    "https://api.curatedapi.com/v1/calc/check/bic",
    headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
    json=payload,
    timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
    "number": "DEUTDEFF500",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/check/bic", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
console.log((await response.json()).result);

MCP tool calc_check_bic at https://mcp.curatedapi.com. Inputs, outputs and errors in the API reference.

Put it on your website

<div data-curatedapi-widget="check/bic" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>

Use a public key registered for your site. Calculations are billed like API calls. How widgets work.

Related calculators

Add this calculator to your website

Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.

Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.