Synthetic QA data · MA

Morocco test IBAN numbers

Ten checksum-valid Morocco test IBANs with their domestic bank code and account number, ready for a payment form, fixture or unit test, plus invalid MA cases that a correct validator must reject.

Synthetic only: the bank code may belong to a real Morocco bank, but each account number is random. Never use these values for payments or to represent a real account.

28characters
MAcountry code
24BBAN characters
NoSEPA country

Valid Morocco test IBANs

IBANBank codeBranch codeAccount numberBank (public registry)
MA81 0115 1495 1988 7474 3295 9224 01151 49519 887474329592 —
MA40 0115 1139 7007 6976 2807 7786 01151 13970 076976280777 —
MA92 0115 1552 4207 8352 1398 7919 01151 55242 078352139879 —
MA12 0115 1373 8005 9016 1996 1281 01151 37380 059016199612 —
MA11 0115 1228 9722 6422 3604 4554 01151 22897 226422360445 —
MA60 0115 1024 3998 7989 9897 7309 01151 02439 987989989773 —
MA93 0115 1254 5291 8583 8522 1482 01151 25452 918583852214 —
MA42 0115 1880 9088 4914 9133 6549 01151 88090 884914913365 —
MA14 0115 1362 5722 4300 2164 1182 01151 36257 224300216411 —
MA85 0115 1277 7330 0021 0153 5262 01151 27773 300021015352 —

Invalid MA IBANs for negative tests

Each value is derived from the first valid IBAN above and re-checked, so the expected result is exact.

CaseInputExpected validator result
Wrong check digits MA82011514951988747432959224 Reject: MOD-97 checksum fails
Transposed BBAN digits MA81101514951988747432959224 Reject: MOD-97 checksum fails
One character too short MA8101151495198874743295922 Reject: length does not match the country format
Wrong country prefix FR81011514951988747432959224 Reject: length or checksum fails for the other country
Lowercase with spaces ma81 0115 1495 1988 7474 3295 9224 Accept after normalizing case and whitespace

Morocco IBAN format

MA + 2 check digits + 24 digits = 28 characters. Validate the length and character classes first, then the MOD-97 checksum: move the first four characters to the end, convert letters to numbers (A=10 … Z=35) and the remainder modulo 97 must be 1.

Need rows for the same bank, city or BIC your integration talks to? The generator can target them, keep a stable seed and export 1,000 rows at a time.

curl -X POST https://ibangen.com/api/v1/generate \
  -H "X-API-Key: $IBANGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country": "Morocco", "quantity": 100}'

Test against real bank structures, not just checksums

Free: 10 MA rows at a time. Pro adds bank targeting, 1,000-row batches, CSV/JSON exports and the API; Business adds exact BIC and branch targeting.

Questions

Are these Morocco test IBANs real bank accounts?

No. They are synthetic MA IBANs with a correct national format and MOD-97 checksum. The bank code can match a real institution, but the account number is random and must never be used for payments.

How long is a Morocco IBAN?

A Morocco IBAN has 28 characters: the country code MA, two check digits and a 24-character BBAN (24 digits).

Can I get more Morocco test IBANs for a specific bank or city?

Yes. The Morocco generator creates up to 10 rows free. Paid plans add bank, city and exact BIC targeting, 1,000-row batches, CSV/JSON exports and the same data through the API.

Test IBANs for other countries

IBANgen provides synthetic QA data. It does not verify account ownership, balances, reachability or payment execution.