# IBAN Validator - Bulk IBAN & BIC/SWIFT Checker (Offline) (`kotablue-tools/iban-validator`) Actor

Validate up to 10,000 IBANs per run offline: ISO 13616 mod-97 checksum, country length and BBAN format, national check digits, bank and branch code, SEPA flag, plus optional BIC/SWIFT format check. Clear VALID/INVALID with a reason per row.

- **URL**: https://apify.com/kotablue-tools/iban-validator.md
- **Developed by:** [KotaBlue Toolsmith](https://apify.com/kotablue-tools) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## IBAN Validator: Bulk IBAN & BIC/SWIFT Checker (Offline)

**Paste a list of IBANs (with an optional BIC/SWIFT code on the same line) and validate them all in one run. Each line gets one spreadsheet-ready row: VALID, INVALID or REPEAT, a plain-English reason, the clean IBAN in electronic and print format, country, check digits, BBAN, bank and branch code, SEPA flag, national check-digit result and the BIC check.**

Up to 10,000 lines per run. Everything is checked offline inside the Actor: no API key, no login, no proxy, and your IBANs are not sent to any outside service. Built for cleaning supplier and customer bank details, checking payout lists before a SEPA or wire batch, and validating form or CRM data in bulk.

### What does this IBAN validator do?

- **Checks the IBAN checksum.** Runs the ISO 13616 mod-97 check on every IBAN and rejects check digits 00, 01 and 99. This catches most typing mistakes, such as a wrong or swapped character.
- **Checks country, length and format.** Knows the length and BBAN structure (which positions are letters or digits) of the 97 country codes in the SWIFT IBAN Registry, from 15 characters (Norway) to 33 (Russia).
- **Checks national check digits** where a country has them inside the account number: Belgium, Bosnia and Herzegovina, Croatia, Czechia, Estonia, France, Hungary, Monaco, Montenegro, North Macedonia, Norway, Poland, Portugal, Serbia, Slovakia, Slovenia and Spain. An IBAN can pass mod-97 and still fail here.
- **Breaks the IBAN down.** Returns country code and name, check digits, BBAN, bank code and branch code (where the country's format has them), SEPA country flag and a Swiss/Liechtenstein QR-IBAN flag.
- **Cleans messy input.** Spaces, no-break spaces, dashes, dots, lowercase and a leading `IBAN:` label are removed before checking, so `gb82 west 1234 5698 7654 32` works.
- **Optional BIC/SWIFT check.** Put a BIC after the IBAN (`IBAN, BIC`) to check its ISO 9362 format (8 or 11 characters, valid country code), split it into bank, country, location and branch code, and flag when the BIC country differs from the IBAN country.
- **One clear status per line.** `VALID`, `INVALID` with a reason code such as `CHECKSUM_FAILED` or `WRONG_LENGTH`, or `REPEAT` for a line already seen in the run. Rows keep your input order.

### Who is this for?

- **Accounts payable and procurement teams.** Validate supplier bank details before adding them to the ERP or paying the first invoice.
- **Payroll and payout teams.** Check employee, contractor, seller or affiliate IBANs before a SEPA credit transfer batch, so a typo doesn't bounce a payment.
- **Fintech, marketplace and payments developers.** Validate IBANs collected in sign-up or checkout forms in bulk from the Apify API.
- **CRM and data quality teams.** Clean bank-detail columns in CRM or billing exports: normalise the format, split bank codes, and remove duplicates.
- **Direct debit and subscription businesses.** Check mandate IBANs before submitting SEPA Direct Debit collections.
- **Data migration projects.** Validate every IBAN when moving customers or vendors between systems.
- **Finance operations and auditors.** Spot malformed or duplicate bank accounts in vendor master data.
- **Spreadsheet users.** Paste a column from Excel or Google Sheets and export the results back as CSV or Excel.

### How to use it

1. Open the Actor and paste IBANs into **IBANs to validate**, one per line. Any spacing or case is fine.
2. To check a BIC as well, add it after a comma, semicolon, `|` or tab on the same line, for example `DE89 3704 0044 0532 0130 00, COBADEFFXXX`.
3. Leave **Accept countries outside the IBAN Registry** off unless you need national IBAN-like formats (see below), then click **Start**.
4. Open the **Output** tab and filter on `status` or `reason`. Every INVALID row says what is wrong.
5. Export as CSV, Excel or JSON, or call the Actor from the Apify API, Make, Zapier or n8n.

### Input

| Field | Description |
|---|---|
| `ibans` | One IBAN per line, optionally followed by `, BIC` (comma, semicolon, `|` or tab). Max 10,000 lines per run. |
| `allowNonRegistryCountries` | Also accept countries that use IBAN-like numbers but are not in the SWIFT IBAN Registry (for example Morocco or Senegal). Default **false**. |

Example input (published sample IBANs, one typo, one short BIC, one BIC from another country and one repeat):

```json
{
  "ibans": [
    "DE89 3704 0044 0532 0130 00, COBADEFFXXX",
    "gb82 west 1234 5698 7654 32",
    "IBAN: FR14 2004 1010 0505 0001 3M02 606",
    "BE68 5390 0754 7034; GEBABEBB",
    "DE89 3704 0044 0532 0130 01",
    "NL91 ABNA 0417 1643 00, ABNANL2",
    "CH93 0076 2011 6238 5295 7, COBADEFFXXX",
    "de89370400440532013000, COBADEFFXXX"
  ]
}
```

### Output

Each input line gives one dataset row. Fields:

`input, inputIndex, status, reason, firstStatus, message, iban, ibanFormatted, countryCode, countryName, checkDigits, bban, bankCode, branchCode, expectedLength, actualLength, inIbanRegistry, sepaCountry, qrIban, nationalCheckDigitsVerified, bic, bicStatus, bicReason, bicBankCode, bicCountryCode, bicLocationCode, bicBranchCode, bicTestCode, bicCountryMatchesIban, validatedAt`

Below are real rows from a cloud run on Nov 4, 2026 with the example input above. Empty fields and timestamps are left out.

A valid German IBAN with a matching BIC:

```json
{
  "input": "DE89 3704 0044 0532 0130 00, COBADEFFXXX",
  "inputIndex": 1,
  "status": "VALID",
  "message": "Valid IBAN format and checksum. This does not prove the account exists or is open.",
  "iban": "DE89370400440532013000",
  "ibanFormatted": "DE89 3704 0044 0532 0130 00",
  "countryCode": "DE",
  "countryName": "Germany",
  "checkDigits": "89",
  "bban": "370400440532013000",
  "bankCode": "37040044",
  "expectedLength": 22,
  "actualLength": 22,
  "inIbanRegistry": true,
  "sepaCountry": true,
  "qrIban": false,
  "bic": "COBADEFFXXX",
  "bicStatus": "VALID",
  "bicBankCode": "COBA",
  "bicCountryCode": "DE",
  "bicLocationCode": "FF",
  "bicBranchCode": "XXX",
  "bicTestCode": false,
  "bicCountryMatchesIban": true
}
```

The same IBAN with its last digit changed (a typical typo):

```json
{
  "input": "DE89 3704 0044 0532 0130 01",
  "inputIndex": 5,
  "status": "INVALID",
  "reason": "CHECKSUM_FAILED",
  "message": "The IBAN check digits are wrong (ISO 13616 mod-97 check failed). Usually a typo or swapped characters.",
  "iban": "DE89370400440532013001",
  "ibanFormatted": "DE89 3704 0044 0532 0130 01",
  "countryCode": "DE",
  "countryName": "Germany",
  "checkDigits": "89",
  "bban": "370400440532013001",
  "expectedLength": 22,
  "actualLength": 22,
  "inIbanRegistry": true,
  "sepaCountry": true,
  "qrIban": false,
  "bicStatus": "NOT_PROVIDED"
}
```

A valid IBAN with a BIC that is one character short (shortened to the key fields):

```json
{
  "input": "NL91 ABNA 0417 1643 00, ABNANL2",
  "inputIndex": 6,
  "status": "VALID",
  "message": "Valid IBAN format and checksum. This does not prove the account exists or is open. BIC ABNANL2 is INVALID: A BIC has 8 or 11 characters; this one has 7.",
  "iban": "NL91ABNA0417164300",
  "bankCode": "ABNA",
  "bic": "ABNANL2",
  "bicStatus": "INVALID",
  "bicReason": "A BIC has 8 or 11 characters; this one has 7."
}
```

In the same run, the lowercase UK IBAN came back `VALID` (bank code `WEST`, branch code `123456`), the French IBAN with an `IBAN:` label came back `VALID` with `nationalCheckDigitsVerified` true (bank `20041`, branch `01005`), the Belgian IBAN and its BIC were both `VALID` with national check digits verified, the Swiss IBAN was `VALID` with `bicCountryMatchesIban` false and a note that the BIC country (DE) differs from the IBAN country (CH), and the last line came back `REPEAT` of input #1. Run totals: 6 VALID, 1 INVALID, 1 REPEAT.

Possible `status` values:

- **VALID**: the country, length, BBAN format, mod-97 checksum and (where defined) national check digits are all correct.
- **INVALID**: one check failed; `reason` says which.
- **REPEAT**: the same IBAN (and the same BIC, if given) appeared earlier in the run; `firstStatus` shows the first result. The same IBAN with a different BIC is checked again.

Possible `reason` values: `EMPTY`, `TOO_LONG`, `BAD_CHARACTERS`, `UNKNOWN_COUNTRY`, `NOT_IN_IBAN_REGISTRY`, `CHECK_DIGITS_NOT_NUMERIC`, `WRONG_LENGTH`, `WRONG_BBAN_FORMAT`, `CHECKSUM_FAILED`, `NATIONAL_CHECK_FAILED`.

`bicStatus` is `VALID`, `INVALID` or `NOT_PROVIDED`. An invalid BIC is reported in `bicStatus` and `message` but does not change the IBAN `status`. A run summary (counts per status and per reason, BIC counts, settings) is saved as `OUTPUT` in the key-value store.

### What a VALID result does and does not mean

A VALID IBAN is **well-formed**: it has the right structure and its check digits add up. It does **not** prove that the account exists, is open, can receive payments, or belongs to the person or company you expect. The Actor does not contact any bank or bank directory and does not return bank names or addresses. The same applies to the BIC check, which is a format check only. To confirm an account, use your bank's verification services (for example Verification of Payee / Confirmation of Payee where available) or a small test payment.

### Pricing

- **This Actor is currently free to use.** There is no Actor fee; runs use your normal Apify platform credits for compute.

### Limits and performance

- Up to 10,000 lines per run. Extra lines are skipped with a warning in the log.
- All checks run locally with no network requests per IBAN, so results don't depend on any outside API being up.
- Default memory is 128 MB.
- A local test run with 10,000 unique IBANs (a third with a BIC) finished in about 2.4 seconds, start to end.
- Rows are written to the dataset in batches of 500.
- Countries outside the SWIFT IBAN Registry are INVALID (`NOT_IN_IBAN_REGISTRY`) unless you turn on `allowNonRegistryCountries`; those formats come from the library's non-registry list and are less authoritative.

### FAQ

**Does spacing or lowercase matter?**
No. Spaces, dashes, dots, lowercase letters and a leading `IBAN:` label are cleaned before checking, and `iban` / `ibanFormatted` give the clean electronic and print forms.

**Does a VALID IBAN mean the account exists?**
No. It means the IBAN is well-formed and its check digits are right. Only the bank can confirm the account.

**Can it tell me the bank name?**
No. Bank names need a licensed bank directory, which this Actor does not use. It returns the bank and branch codes that are part of the IBAN itself.

**Which countries are supported?**
The 97 country codes in the SWIFT IBAN Registry as encoded in the library used (including territories that use the French or Finnish format), plus 27 national IBAN-like formats if you turn on `allowNonRegistryCountries`.

**What are national check digits?**
Some countries add their own check digits inside the account number (for example the French RIB key or the Spanish control digits). The Actor checks them for 17 countries and reports the result in `nationalCheckDigitsVerified`; it is empty for countries without such a rule.

**How does the BIC check work?**
It checks the ISO 9362 format (4 bank characters, 2-letter country code, 2 location characters, optional 3-character branch) and compares the BIC country with the IBAN country. It does not check that the BIC is registered with SWIFT.

**Is my data sent anywhere?**
No outside service is called. Your input and results stay in your Apify run storage.

**Which export formats are supported? Can I use the API?**
CSV, Excel, JSON, JSONL, XML and HTML. You can also start runs from the Apify API, schedule them, or connect them to Make, Zapier, n8n or webhooks.

### Related tools

Other free tools for public official data from the same publisher:

- [OFAC SDN Sanctions Screening](https://apify.com/kotablue-tools/ofac-sdn-sanctions-screening): bulk-screen names against the U.S. Treasury OFAC SDN list and aliases with fuzzy match scores.
- [LEI Lookup & LEI Renewal Checker (GLEIF)](https://apify.com/kotablue-tools/gleif-lei-renewal-checker): bulk LEI status, next renewal date and lapsed-LEI flags from the GLEIF register.
- [ISIN / CUSIP / Ticker to FIGI + LEI Mapper](https://apify.com/kotablue-tools/figi-lei-identifier-mapper): map ISIN, CUSIP, SEDOL, ticker or FIGI identifiers to OpenFIGI and GLEIF LEI records.
- [SEC EDGAR Company Lookup](https://apify.com/kotablue-tools/sec-edgar-company-lookup): ticker or CIK to company name, EIN, SIC, state of incorporation and latest filings.
- [Bulk VIN Decoder & Recall Checker (NHTSA)](https://apify.com/kotablue-tools/nhtsa-vin-decoder): decode VINs in bulk to make, model and year, with NHTSA recall campaigns.
- [ClinicalTrials.gov NCT Lookup](https://apify.com/kotablue-tools/clinicaltrials-study-status-checker): bulk trial status, sponsor portfolios and a results-due estimate for lists of NCT numbers.

### Method, sources and disclaimer

Country lengths, BBAN formats, bank/branch code positions, SEPA country flags and national check-digit rules come from the open-source **ibantools** library (version 4.5.4, MIT licence, © Saša Jovanić), which follows the SWIFT IBAN Registry. The IBAN checksum is the ISO 13616 / ISO 7064 mod 97-10 check; the BIC format follows ISO 9362. `sepaCountry` says whether a country is in the SEPA area; it does not say whether a particular bank takes part in a SEPA scheme.

This Actor is **independent and is not affiliated with, endorsed by, or approved by SWIFT, ISO, the European Payments Council or any bank**. All statuses, reasons and messages are computed by this Actor. It is a data-quality tool, not a payment, account verification, fraud or compliance service, and results are provided as-is without warranty.

# Actor input Schema

## `ibans` (type: `array`):

One IBAN per line. Spaces, dashes, dots, lowercase and an "IBAN:" label are fine. To also check a BIC/SWIFT code, put it after a comma, semicolon, | or tab (for example DE89 3704 0044 0532 0130 00, COBADEFFXXX). An IBAN repeated in the same run is returned as REPEAT. Max 10,000 lines per run.

## `allowNonRegistryCountries` (type: `boolean`):

Off by default: only the countries in the SWIFT IBAN Registry count as VALID. Turn on to also check national IBAN-like formats used in some other countries (for example Morocco, Senegal, Cameroon); those rows get inIbanRegistry false.

## Actor input object example

```json
{
  "ibans": [
    "DE89 3704 0044 0532 0130 00, COBADEFFXXX",
    "GB82 WEST 1234 5698 7654 32",
    "fr14 2004 1010 0505 0001 3m02 606",
    "DE89 3704 0044 0532 0130 01"
  ],
  "allowNonRegistryCountries": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input line with status (VALID, INVALID, REPEAT), reason, normalised IBAN, country, check digits, BBAN, bank and branch code, SEPA flag and optional BIC check.

## `summary` (type: `string`):

Counts per status and per invalid reason, BIC checks and settings used.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ibans": [
        "DE89 3704 0044 0532 0130 00, COBADEFFXXX",
        "GB82 WEST 1234 5698 7654 32",
        "fr14 2004 1010 0505 0001 3m02 606",
        "DE89 3704 0044 0532 0130 01"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kotablue-tools/iban-validator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "ibans": [
        "DE89 3704 0044 0532 0130 00, COBADEFFXXX",
        "GB82 WEST 1234 5698 7654 32",
        "fr14 2004 1010 0505 0001 3m02 606",
        "DE89 3704 0044 0532 0130 01",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kotablue-tools/iban-validator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ibans": [
    "DE89 3704 0044 0532 0130 00, COBADEFFXXX",
    "GB82 WEST 1234 5698 7654 32",
    "fr14 2004 1010 0505 0001 3m02 606",
    "DE89 3704 0044 0532 0130 01"
  ]
}' |
apify call kotablue-tools/iban-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kotablue-tools/iban-validator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dbShTS9nlcI8Ww0lw/builds/cl1x7thTx6tM9khXs/openapi.json
