IBAN format by country
Hungary IBAN format: length, structure and example
An IBAN from Hungary always has 28 characters: the country code HU, two check digits and the 24-character BBAN, made up of the 3-digit bank code, 4-digit branch code, 1-digit national check digit, 15-digit account number and 1-digit national check digit. Example: HU42 1177 3016 1111 1018 0000 0000.
- IBAN length
- 28 characters
- Country code
- HU (positions 1-2)
- Check digits
- Positions 3-4, mod-97
- BBAN structure
- 3n 4n 1n 15n 1n (3 digits, 4 digits, 1 digit, 15 digits, 1 digit)
- Bank code
- Positions 5-7
- SEPA
- Yes, non-euro
Validate an IBAN from Hungary
Runs entirely in your browser. Nothing you type is sent, stored or tracked.
Hungary IBAN structure
Positions count from the first character of the IBAN. Values in the last column come from the specimen for Hungary in the SWIFT IBAN Registry, release 102 (June 2026).
| Field | Positions | Length | Specimen |
|---|---|---|---|
| Country code | 1-2 | 2 | HU |
| IBAN check digits | 3-4 | 2 | 42 |
| Bank code | 5-7 | 3 | 117 |
| Branch code | 8-11 | 4 | 7301 |
| National check digit | 12 | 1 | 6 |
| Account number | 13-27 | 15 | 111110180000000 |
| National check digit | 28 | 1 | 0 |
SWIFT notation: HU2!n3!n4!n1!n15!n1!n, where n = digits, a = upper-case letters, c = letters or digits and "!" means a fixed length.
Hungary IBAN example
HU42117730161111101800000000
Print format: HU42 1177 3016 1111 1018 0000 0000
- Country code: HU
- IBAN check digits: 42
- Bank code: 117
- Branch code: 7301
- National check digit: 6
- Account number: 111110180000000
- National check digit: 0
This is the published specimen from the SWIFT IBAN Registry, not a real customer account. It passes the mod-97 check, so use it to test forms and integrations; never send money to it.
National account format in Hungary
GIRO account number of 16 or 24 digits (groups of 8), with check digits inside each block.
To find the bank code in any IBAN from Hungary, read characters 5-7. The validator above splits every field out for you.
SEPA and direct debits in Hungary
Hungary is in SEPA but does not use the euro. SEPA Direct Debit only covers collections in euro; payments in the local currency run on domestic schemes.
SEPA Direct Debit lets a creditor collect from any SEPA IBAN under a signed mandate. Each mandate carries a unique mandate reference (UMR) and the creditor's SEPA Creditor Identifier. Under the Core scheme a payer can ask for a refund within 8 weeks of an authorised debit and within 13 months of an unauthorised one; the B2B scheme has no refund right.
Collections that fail come back as R-transactions: rejects before settlement, returns after it and refunds requested by the payer. Each carries an ISO 20022 reason code, for example AC04 (account closed), AM04 (insufficient funds), MD01 (no mandate) or MS02 (refused by the payer).
Every SEPA reason code, with what to do next, is in the SEPA Direct Debit reason code reference.
Why a direct debit fails even with a valid IBAN
An IBAN validator only proves the number is well formed. A direct debit can still come back unpaid because of what sits behind the account:
- Account closed or moved: the IBAN was valid when the mandate was signed (SEPA reason code AC04).
- Insufficient funds: the most common soft failure, and the one where the timing of the next attempt matters most (SEPA AM04).
- Mandate problems: no valid mandate, a cancelled instruction or a payer who refused the debit (SEPA MD01 and MS02).
- Account cannot be debited: savings accounts and some e-money or blocked accounts reject direct debits outright (SEPA AC06 and AG01).
- Refunds after the fact: under the SEPA Core scheme a payer can reclaim an authorised debit for 8 weeks, so a collection that "succeeded" can still reverse.
Look up any return code in the SEPA Direct Debit reason codes, or see how Slicker handles failed direct debits.
Frequently asked questions
How many characters does an IBAN from Hungary have?
An IBAN from Hungary always has 28 characters: the country code HU, two check digits and a 24-character BBAN made up of the 3-digit bank code, 4-digit branch code, 1-digit national check digit, 15-digit account number and 1-digit national check digit.
What does an IBAN from Hungary look like?
The SWIFT IBAN Registry specimen for Hungary is HU42 1177 3016 1111 1018 0000 0000 (electronic format HU42117730161111101800000000). It is a published sample, not a real customer account, and it passes the mod-97 check.
Is Hungary part of SEPA?
Yes. Hungary is in the SEPA schemes' geographical scope. SEPA Direct Debit covers euro collections only; local-currency debits use domestic schemes.
Where is the bank code in an IBAN from Hungary?
Characters 5-7 (117 in the specimen) are the bank code. Characters 8-11 (7301) are the branch code. The account number is characters 13-27. Positions count from the first letter of the country code.
Other IBAN formats
Losing subscription revenue to failed direct debits?
Slicker reads the reason code of every failed SEPA, Bacs or card payment and decides whether, when and how to retry, or when only the customer can fix it. Smart retries run on your existing billing platform, and you only pay when we outperform your current setup in a 50/50 test.