IBAN format · TN
Tunisia IBAN format: 24 characters.
Tunisia IBANs have 24 characters: the country code TN, two check digits and a 20-character BBAN, the national account number, laid out as 2!n3!n13!n2!n.
Tunisia IBAN structure
- Country code
- TN
- Check digits
- 59
- Bank code
- 10
- Branch code
- 006
- Account
- 035183598478831
| Positions | Part | In the example |
|---|---|---|
| 1–2 | Country code | TN |
| 3–4 | Check digits | 59 |
| 5–6 | Bank code | 10 |
| 7–9 | Branch code | 006 |
| 10–24 | Account | 035183598478831 |
The BBAN, segment by segment
The registry writes the BBAN in SWIFT notation: n is a digit, a an upper-case letter, c a letter or digit, and the ! means a fixed length. 2!n3!n13!n2!n reads:
| Positions | Notation | Holds | Example |
|---|---|---|---|
| 5–6 | 2!n | 2 digitsBank code | 10 |
| 7–9 | 3!n | 3 digitsBranch code | 006 |
| 10–22 | 13!n | 13 digits | 0351835984788 |
| 23–24 | 2!n | 2 digits | 31 |
Tunisia IBAN example
TN59 1000 6035 1835 9847 8831 is the sample the SWIFT IBAN Registry publishes for Tunisia: a well-formed IBAN for showing the format, not a real account. Written electronically it has no spaces (TN5910006035183598478831); on paper it is printed in groups of four.
Its check digits, worked through with ISO 7064 mod 97-10:
Move the country code and check digits to the end
10006035183598478831TN59Replace each letter with two digits (A = 10 … Z = 35)
T = 29, N = 23
10006035183598478831292359Divide that number by 97 and keep the remainder
Remainder 1. A valid IBAN always leaves 1, so the check digits are right.
Where the check digits come from
Put 00 in their place (TN00…), repeat steps 1–3: remainder 39. The check digits are 98 − 39 = 59.
SEPA
Tunisia is not in the Single Euro Payments Area, so SEPA credit transfers and direct debits don’t reach TN IBANs.
What the format can and can’t tell you
- Valid means the structure and check digits are right — not that the account exists or can receive payments.
- National check digits inside the BBAN (e.g. the French RIB key, or the Spanish, Belgian and Italian CIN digits) are not verified.
- Bank and branch codes are read from their positions; they are not looked up in a bank directory.
Check TN IBANs from code or an AI agent
curl -s 'https://payopskit.com/api/v1/iban/TN5910006035183598478831'{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "validate_iban",
"arguments": {
"iban": "TN5910006035183598478831"
}
}
}{
"input": "TN5910006035183598478831",
"iban": "TN5910006035183598478831",
"print": "TN59 1000 6035 1835 9847 8831",
"valid": true,
"country": {
"code": "TN",
"name": "Tunisia",
"sepa": false,
"sepaNote": null
},
"checkDigits": "59",
"expectedCheckDigits": "59",
"length": {
"actual": 24,
"expected": 24
},
"bban": "10006035183598478831",
"bbanFormat": "2!n3!n13!n2!n",
"bankCode": "10",
"branchCode": "006",
"parts": [
{
"label": "Country code",
"value": "TN",
"start": 0,
"end": 2,
"kind": "country"
},
{
"label": "Check digits",
"value": "59",
"start": 2,
"end": 4,
"kind": "check"
},
{
"label": "Bank code",
"value": "10",
"start": 4,
"end": 6,
"kind": "bank"
},
{
"label": "Branch code",
"value": "006",
"start": 6,
"end": 9,
"kind": "branch"
},
{
"label": "Account",
"value": "035183598478831",
"start": 9,
"end": 24,
"kind": "account"
}
],
"checks": {
"characters": true,
"country": true,
"length": true,
"bbanFormat": true,
"checksum": true
},
"errors": [],
"notes": [
"Valid means the structure and check digits are right — not that the account exists or can receive payments.",
"National check digits inside the BBAN (e.g. the French RIB key, or the Spanish, Belgian and Italian CIN digits) are not verified."
]
}The MCP server is at /mcp (Streamable HTTP, no key); the API and MCP docs show how to connect Claude, Cursor or VS Code.
From a national account number: GET /api/v1/iban/check-digits?country=TN&bban=… or the MCP tool compute_iban_check_digits computes the check digits and the whole IBAN.
Other 24-character IBANs
- Andorra4!n4!n12!cSEPA
- Czechia4!n6!n10!nSEPA
- Moldova2!c18!cSEPA
- Pakistan4!a16!c
- Romania4!a16!cSEPA
- Saudi Arabia2!n18!c
- Slovakia4!n6!n10!nSEPA
- Spain4!n4!n1!n1!n10!nSEPA
- Sweden3!n16!n1!nSEPA
- Virgin Islands (British)4!a16!n
The same length doesn’t mean the same structure: compare the BBAN formats. All IBAN formats and lengths
Source: the SWIFT IBAN Registry (ISO 13616), transcribed and checked against each country’s registry example; the positions of bank and branch codes are given only where the registry’s are well established. The SWIFT IBAN Registry is the authority. Informational only.