# Redact IBANs

> Redact International Bank Account Numbers with mod-97 validation across all SEPA countries.

Canonical: https://bitbanger.in/entities/iban
Last updated: 2026-10-27

Category: Financial data · Entity type: `financial.iban`

IBANs look like random alphanumerics until you check them. Redactly validates the mod-97 checksum before redacting, so part numbers and invoice references are not mistaken for accounts.

## How Redactly detects IBANs

- Matched by regex for the two-letter country code, two check digits, and the BBAN, with or without spaces.
- Confirmed with the mod-97 checksum defined in ISO 13616.
- A value that passes the shape check but fails the mod-97 calculation is rejected.

## Why redact IBANs?

An IBAN plus a name is enough to attempt a direct debit in much of Europe.

## Example request

```bash
curl -X POST https://api.bitbanger.in/v1/redact \
  -H "X-API-Key: rdct_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"text": "Settlement account GB82 WEST 1234 5698 7654 32, reference INV-2291.", "style": "replace"}'
```

## FAQ

**Does Redactly redact IBANs automatically?**

Yes. Send text to the API and every detected type is redacted, including IBANs. To redact only this type, pass the value financial.iban in the entities filter. No training or configuration is required.

**What happens to IBANs after redaction?**

With style set to replace, each match becomes [financial.iban] — the entity type in square brackets. Setting style to mask replaces every character with a block character, and remove deletes the span entirely.

## Related entity types

- [SWIFT/BIC codes](https://bitbanger.in/entities/swift-bic) — Redact SWIFT and BIC codes from payment instructions without flagging every all-caps word.
- [Bank account numbers](https://bitbanger.in/entities/bank-account) — Redact domestic bank account numbers that carry no checksum and no fixed format.
- [Credit card numbers](https://bitbanger.in/entities/credit-card) — Redact card numbers from text and JSON with Luhn validation, so only real card numbers are flagged and order IDs are left alone.

Try it on your own text: https://bitbanger.in/entities/iban
