Skip to content

San Marino IBAN Format — SM, 27 Characters (Example & Structure)

Every San Marino IBAN has 27 characters and starts with SM. Below: the structure, a checksum-valid format example and a free checker that runs in your browser.

🇸🇲 Southern EuropeBBAN 1a5n5n12c
Country codeSM
IBAN length27 characters
BBAN length23 characters
BBAN format1a5n5n12c
SEPA memberYes

San Marino IBAN example, broken down

SM29 A123 4567 8901 2345 6789 012

Format example only — a filler account body with correctly computed IBAN check digits. It is not a real account; national check digits inside the BBAN (if any) are not computed.

SMCountry code
29Check digits
ABBAN field 1 · 1a
12345BBAN field 2 · 5n
67890BBAN field 3 · 5n
123456789012BBAN field 4 · 12c
n = digits 0–9, a = upper-case letters A–Z, c = letters or digits (SWIFT IBAN Registry notation).
PositionsPartContent
1–2Country codeSM (fixed)
3–4Check digits2 digits, ISO 7064 MOD-97-10
5BBAN field 11 letter
6–10BBAN field 25 digits
11–15BBAN field 35 digits
16–27BBAN field 412 letters or digits

Check a San Marino IBAN

Checks length, format and MOD-97 checksum locally — nothing is sent.

How a San Marino IBAN is built

A San Marino IBAN is always exactly 27 characters long. It opens with the ISO country code SM, followed by two check digits and a 23-character Basic Bank Account Number (BBAN). In SWIFT IBAN Registry notation the BBAN is 1a5n5n12c — that is 4 fields: 1 letter, 5 digits, 5 digits and 12 letters or digits. The BBAN carries the national bank identifier and the account number, so the same account keeps its domestic details inside the IBAN.

The BBAN is not purely numeric: it contains 1 letter position and 12 alphanumeric positions, and 10 digit-only positions. Forms and databases that accept SM IBANs must allow upper-case letters after the check digits — stripping or rejecting them breaks valid numbers.

IBAN lengths range from 15 to 31 characters across the 62 countries we cover; at 27, San Marino sits on the longer side. Other countries whose IBANs are also 27 characters long: France, Greece, Italy, Monaco. Length alone therefore cannot tell them apart — always compare the country code too.

The check digits (29 in the example) follow ISO 7064 MOD-97-10. Move the first four characters to the end — A1234567890123456789012SM29 — then replace each letter with two digits (A = 10 … Z = 35), giving 101234567890123456789012282229. Divided by 97 this leaves a remainder of 1; any correctly typed San Marino IBAN gives 1, while a typo or two swapped characters almost always produce a different remainder.

On paper and in banking apps the IBAN is usually printed in groups of four (SM29 A123 4567 8901 2345 6789 012); in payment files and APIs it is sent without spaces. San Marino is part of SEPA, so euro payments to a SM IBAN can be sent as SEPA credit transfers or collected as SEPA direct debits.

IBAN formats of related countries

Greece · GR, 27 chars Italy · IT, 27 chars Cyprus · CY, 28 chars Portugal · PT, 25 chars Andorra · AD, 24 chars Spain · ES, 24 chars Gibraltar · GI, 23 chars Malta · MT, 31 chars

More IBAN & SWIFT tools

Validate many IBANs at once or generate test IBANs, find a bank's BIC, or read the full guide to how IBANs work.

IBAN Validator & Generator →SWIFT / BIC codesWhat is an IBAN?

All IBAN formats by country

Frequently asked questions

How many characters is a San Marino IBAN?

A San Marino IBAN always has exactly 27 characters: the country code SM, two check digits and a 23-character Basic Bank Account Number (BBAN). Spaces are only added for readability and are not counted.

What is the structure of a San Marino IBAN?

It is SMkk followed by the BBAN, where kk are the check digits. In SWIFT IBAN Registry notation the BBAN is 1a5n5n12c — 1 letter, 5 digits, 5 digits and 12 letters or digits. A format example is SM29 A123 4567 8901 2345 6789 012.

Does a San Marino IBAN contain letters?

Yes. Besides the country code SM, the BBAN (1a5n5n12c) has 1 position that is always a letter and 12 positions that may hold letters or digits. Keep the letters when you copy or store the IBAN — only spaces may be removed.

How do I check that a San Marino IBAN is valid?

Check that it starts with SM, has 27 characters, that the BBAN matches 1a5n5n12c, and that the ISO 7064 MOD-97 remainder equals 1. The checker on this page does all four in your browser; the IBAN Validator also handles bulk lists. A pass means the format is valid — not that the account exists.

Is San Marino part of SEPA?

Yes. San Marino is in the Single Euro Payments Area (SEPA), so euro credit transfers and direct debits to a SM IBAN can be made under the SEPA schemes.

More PAYATE tools