Skip to content

IBAN format · HU

Hungary IBAN format: 28 characters.

Hungary IBANs have 28 characters: the country code HU, two check digits and a 24-character BBAN, the national account number, laid out as 3!n4!n1!n15!n1!n.

Hungary IBAN structure

HU42117730161111101800000000
Country code
HU
Check digits
42
Bank code
117
Branch code
7301
Account
61111101800000000
Parts of a Hungary IBAN and their positions
PositionsPartIn the example
1–2Country codeHU
3–4Check digits42
5–7Bank code117
8–11Branch code7301
12–28Account61111101800000000

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. 3!n4!n1!n15!n1!n reads:

The Hungary BBAN format, segment by segment
PositionsNotationHoldsExample
5–73!n3 digitsBank code117
8–114!n4 digitsBranch code7301
121!n1 digit6
13–2715!n15 digits111110180000000
281!n1 digit0

Hungary IBAN example

HU42 1177 3016 1111 1018 0000 0000 is the sample the SWIFT IBAN Registry publishes for Hungary: a well-formed IBAN for showing the format, not a real account. Written electronically it has no spaces (HU42117730161111101800000000); 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

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

    H = 17, U = 30

    117730161111101800000000173042
  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 (HU00…), repeat steps 1–3: remainder 56. The check digits are 98 − 56 = 42.

SEPA

Hungary is in the Single Euro Payments Area, so SEPA credit transfers and direct debits can reach HU IBANs; whether a given bank takes part is up to that bank.

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 HU IBANs from code or an AI agent

REST · GET · no key
curl -s 'https://payopskit.com/api/v1/iban/HU42117730161111101800000000'
MCP · tools/call · validate_iban
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "validate_iban",
    "arguments": {
      "iban": "HU42117730161111101800000000"
    }
  }
}
Response (JSON)
{
  "input": "HU42117730161111101800000000",
  "iban": "HU42117730161111101800000000",
  "print": "HU42 1177 3016 1111 1018 0000 0000",
  "valid": true,
  "country": {
    "code": "HU",
    "name": "Hungary",
    "sepa": true,
    "sepaNote": null
  },
  "checkDigits": "42",
  "expectedCheckDigits": "42",
  "length": {
    "actual": 28,
    "expected": 28
  },
  "bban": "117730161111101800000000",
  "bbanFormat": "3!n4!n1!n15!n1!n",
  "bankCode": "117",
  "branchCode": "7301",
  "parts": [
    {
      "label": "Country code",
      "value": "HU",
      "start": 0,
      "end": 2,
      "kind": "country"
    },
    {
      "label": "Check digits",
      "value": "42",
      "start": 2,
      "end": 4,
      "kind": "check"
    },
    {
      "label": "Bank code",
      "value": "117",
      "start": 4,
      "end": 7,
      "kind": "bank"
    },
    {
      "label": "Branch code",
      "value": "7301",
      "start": 7,
      "end": 11,
      "kind": "branch"
    },
    {
      "label": "Account",
      "value": "61111101800000000",
      "start": 11,
      "end": 28,
      "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=HU&bban=… or the MCP tool compute_iban_check_digits computes the check digits and the whole IBAN.

Other 28-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.