CIN Number generator (Morocco)
A Moroccan CIN number is one or two letters followed by up to six digits; the letters identify the issuing office. There is no public checksum. These test values are synthetic.
Synthetic · not collision-guaranteed Validate a number →
Q059926
Synthetic CIN (format-valid; no public checksum). Not a real issued number.
Format specification
| Identifier | CIN Number (Carte Nationale d’Identité) |
|---|---|
| Country | 🇲🇦 Morocco |
| Format | A000000 |
| Length | 6 or 7 or 8 characters |
| Checksum | None |
| Example | S291363 |
| Safe strategy | Synthetic |
| Data quality | Best-effort |
CIN Number: what each part means
| A | One or two letters identifying the office that issued the card. |
|---|---|
| 000000 | Serial number of up to six digits. |
Validation regex
Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()
^[A-Z]{1,2}\d{5,6}$ References
Common questions
Will these pass my validation?
Yes — they are well-formed CIN Number values (A000000) and pass standard format checks.
Could one belong to a real person?
These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.
Can I generate many at once?
Increase the count, or use the free API and CSV/JSON export for large datasets.
For software testing only. These numbers are synthetic and must never be used
for real-world identification, applications, or to impersonate anyone.