Skip to content

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

TN5910006035183598478831
Country code
TN
Check digits
59
Bank code
10
Branch code
006
Account
035183598478831
Parts of a Tunisia IBAN and their positions
PositionsPartIn the example
1–2Country codeTN
3–4Check digits59
5–6Bank code10
7–9Branch code006
10–24Account035183598478831

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:

The Tunisia BBAN format, segment by segment
PositionsNotationHoldsExample
5–62!n2 digitsBank code10
7–93!n3 digitsBranch code006
10–2213!n13 digits0351835984788
23–242!n2 digits31

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:

  1. Move the country code and check digits to the end

    10006035183598478831TN59
  2. Replace each letter with two digits (A = 10 … Z = 35)

    T = 29, N = 23

    10006035183598478831292359
  3. Divide that number by 97 and keep the remainder

    Remainder 1. A valid IBAN always leaves 1, so the check digits are right.

  4. 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

REST · GET · no key
curl -s 'https://payopskit.com/api/v1/iban/TN5910006035183598478831'
MCP · tools/call · validate_iban
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "validate_iban",
    "arguments": {
      "iban": "TN5910006035183598478831"
    }
  }
}
Response (JSON)
{
  "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

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.