SM · ISO 13616

Sammarinese IBAN — format, length, example & validator

A Sammarinese IBAN (International Bank Account Number) identifies a bank account in San Marino for cross-border payments under the ISO 13616 standard. Sammarinese IBANs are always 27 characters long and always begin with the country code SM, followed by two MOD 97 check digits and a 23-character BBAN that encodes the bank and account. For example, SM68… is a valid Sammarinese IBAN prefix. This page covers the Sammarinese IBAN format, length, structure, a worked example, and a free in-browser validator.

Valid SM IBAN — passes all checks

Free · client-side · no data uploaded

Country code
SM
Total length
27 chars
Check-digit algo
MOD 97-10
ISO 13616 pattern
1!a5!n5!n12!c
1 letter (A–Z), then 5 digits (0–9), then 5 digits (0–9), then 12 characters (A–Z, 0–9)

How a Sammarinese IBAN is structured

A San Marino IBAN is read left to right in three blocks. The first two characters are the ISO 3166 country code SM, which tells the receiving bank the account is in San Marino. The next two characters are MOD 97-10 check digits that protect against typos. The remaining 23 characters form the BBAN (Basic Bank Account Number), which San Marino splits into 4 fields: 1 letter, then 5 digits, then 5 digits, then 12 characters. Because the BBAN layout is fixed for San Marino, the validator can check both the total length (27 characters) and the internal structure of every SM IBAN.

Country code
ISO 3166 — San Marino
SM
Check digits
MOD 97-10 checksum
68
BBAN field 1
1 letter · letters (A–Z)
A
BBAN field 2
5 digits · digits (0–9)
01234
BBAN field 3
5 digits · digits (0–9)
01234
BBAN field 4
12 characters · alphanumeric (A–Z, 0–9)
ABCD1234EFGH

Sammarinese IBAN example

Below is a sample San Marino IBAN that passes all three validation layers (character set, 27-character length, and MOD 97 check digits). It is a synthetic test value for integration testing and form demos — never send money to it. The breakdown shows how the SM country code, check digits, and BBAN fields fit together for a real San Marino account.

Formatted
SM68 A012 3401 234A BCD1 234E FGH
SM68A0123401234ABCD1234EFGH
Open the full San Marino IBAN example breakdown →

Common Sammarinese banks and IBAN format examples

Bank names and BICs help you identify the receiving institution, but they do not change the national IBAN layout. A Sammarinese IBAN always has 27 characters and follows 1!a5!n5!n12!c; the bank identifier is embedded in the first BBAN field shown in the table below. The three commonly encountered banks listed here are useful starting points when you are checking payment instructions: Banca di San Marino, Cassa di Risparmio della Repubblica di San Marino, Banca CIS. Always copy the exact IBAN and BIC supplied by the beneficiary, because a bank can use different codes for its head office, a regional office, or a specialist payment branch. The examples are deliberately synthetic format fixtures. SM68A0123401234ABCD1234EFGH demonstrates the country length and checksum, but it is not an account at Banca di San Marino or any other bank. A real Sammarinese IBAN example must come from the account holder or the bank's own statement. Never infer an account number by combining a public BIC with random digits: that can pass a mathematical checksum while still pointing to no account, or to the wrong beneficiary. When a payment form asks for a Sammarinese IBAN, enter the two-letter country prefix and check digits exactly as issued, remove display spaces if the form requires a continuous value, and verify the beneficiary name. Compare the total length (27) and the BBAN field boundaries with the pattern on this page. If the receiving bank gives you an 8-character BIC, do not append a branch suffix yourself; if it gives an 11-character BIC, preserve all three branch characters. For high-value transfers, ask the bank to confirm whether it wants a head-office BIC or a branch-specific BIC before submitting the wire. The most common Sammarinese formatting traps are copying a domestic account number instead of the IBAN, dropping leading zeroes in a bank or account field, and mistaking a visually similar country prefix. Spaces are harmless when this site's checker cleans input, but they may count as characters in older payment portals. A structurally valid result only proves the ISO 13616 format and MOD 97 check digits; it does not prove that the account exists or that the beneficiary details are correct. Validate first, then confirm the full payment instruction with the recipient's bank.

Common banks and routing details for San Marino
BankBIC/SWIFT referenceCity or coverageIBAN example
Banca di San MarinoUse the bank-provided BICSan MarinoSynthetic SM fixture
Cassa di Risparmio della Repubblica di San MarinoUse the bank-provided BICSan MarinoSynthetic SM fixture
Banca CISUse the bank-provided BICSan MarinoSynthetic SM fixture

For an inbound international transfer, request four pieces of information from the beneficiary: the legal account name, the complete Sammarinese IBAN, the receiving bank's BIC/SWIFT code, and the bank's address if the sending portal asks for it. Start by validating the IBAN without changing any characters. The first two letters must be SM; the next two digits are check digits, not part of the domestic account number. Then compare the 27-character length and the BBAN fields. A payment can be rejected when a sender enters a domestic clearing code in the IBAN field, leaves out a leading zero, or pastes a BIC into the account-number field. If the form offers separate fields for bank code, branch code, and account number, follow the bank's instructions rather than splitting the IBAN by guesswork. The pattern 1!a5!n5!n12!c is a validation guide, not permission to manufacture account data. Some banks route international payments through a central office even when the beneficiary uses a local branch; others require a branch-specific BIC. Confirm the routing choice with the recipient before sending, and keep a copy of the submitted value so support staff can trace a rejected transfer. For recurring payments, store the normalized IBAN (uppercase letters, no spaces) and display it in groups of four for humans. Revalidate after any edit, because one changed character alters the MOD 97 remainder. If the checker reports a valid result but the bank rejects the transfer, contact the bank: format validation cannot see sanctions screening, account status, currency restrictions, name matching, or correspondent-bank requirements. These operational checks are why a careful payment workflow uses both an IBAN checker and the bank's official instructions.

How Sammarinese IBAN check digits work

The two check digits at positions 3–4 of a San Marino IBAN are computed with the MOD 97-10 algorithm defined by ISO 13616. To verify them, the IBAN is rearranged so the BBAN comes first and the country code plus check digits go last, letters are converted to numbers (A = 10, B = 11, …, Z = 35), and the resulting large integer is divided by 97. A valid SM IBAN always leaves a remainder of 1. This single check catches every single-digit typo and most adjacent-digit swaps, which is why a one-character mistake is enough to make a San Marino IBAN fail validation instantly — and why you should always validate before wiring money.

Sammarinese IBAN and SWIFT codes

To receive an international wire into San Marino, the sender usually needs both your IBAN and the SWIFT/BIC code of your bank. The IBAN identifies your account; the SWIFT code identifies the bank. Validate your SM IBAN on this page, then confirm the receiving bank's SWIFT/BIC code with the bank or on a SWIFT code lookup tool.

Sammarinese IBAN FAQ

How long is a San Marino IBAN?
A San Marino IBAN is always 27 characters long: 2 letters for the country code (SM), 2 MOD 97 check digits, and a 23-character BBAN. Any San Marino IBAN that is shorter or longer than 27 characters is invalid.
What country code does a San Marino IBAN start with?
A San Marino IBAN starts with the ISO 3166 country code SM. The first two characters are always SM, followed by two check digits, then the country-specific BBAN.
How do I validate a San Marino IBAN?
Paste the IBAN into the validator on this page — it checks the character set, the 27-character length, and the MOD 97 check digits, all in your browser. You can also load the worked example to see a valid SM IBAN pre-filled.
Does a valid San Marino IBAN mean the account exists?
No. Validation only confirms the IBAN is structurally well-formed and the check digits are correct per ISO 13616. It does not verify the account exists, is open, or belongs to anyone. Always confirm with the recipient or their bank before sending money.
What is the BBAN structure for San Marino?
The San Marino BBAN is 23 characters and follows the ISO 13616 pattern 1!a5!n5!n12!c: 1 letter (A–Z), then 5 digits (0–9), then 5 digits (0–9), then 12 characters (A–Z, 0–9). The BBAN layout is fixed for San Marino, so the validator can check the internal structure of every SM IBAN, not just the total length.
Do I need a SWIFT code as well as an IBAN for San Marino?
For most cross-border transfers into San Marino you need both: the IBAN identifies the account, and the SWIFT/BIC code identifies the bank. Validate the SM IBAN here, then look up the bank's SWIFT code separately.
San Marino IBAN format →San Marino IBAN example →Validate another IBAN

⚠️ Validation only checks structure and check digits against ISO 13616. A valid San Marino IBAN does not guarantee the account exists or is open. Always confirm with the recipient or their bank before initiating a transfer.