---
id: "es_iban"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["finances"]
country: ["ES"]
langs: ["es"]
quality: 88
url: "http://registry.apicrafter.io/datatype/es_iban"
---

# Spanish IBAN (`es_iban`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

International Bank Account Number of a bank account in Spain. It has 24 characters: ES, two IBAN check digits and the 20-digit CCC.

- Parent datatype: `iban`
- Personal data (PII): no
- Categories: Finances and banking (finances)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^ES\d{2}(?: ?\d{4}){5}$
```

Check digit algorithm: `iban_mod97`

## Examples

- `ES1595241979227144437196` — Synthetic number with a valid check digit
- `ES6753215985554013429698` — Synthetic number with a valid check digit
- `ES15 9524 1979 2271 4443 7196` — The first example in its printed form
- `ES1595241979227144437190` (invalid example) — Check digit does not match

## Mappings

- dpv: `pd:BankAccount`
- stdnum: `es.iban`

## Supported by tools

- `amazonmacie`
- `dataprep`
- `pythonstdnum`

## Sources

- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.es.iban.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_es_iban.html>

## Quality

Score 88/100. Missing: authoritative source link, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/es_iban.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/finances/es_iban.yaml>
