National Identification Number generator (Tanzania)
A Tanzanian NIN is twenty digits formatted YYYYMMDD-00000-00000-00, beginning with the full date of birth. There is no public checksum. These test values are synthetic.
Synthetic · not collision-guaranteed Validate a number →
19850115-99267-49441-42
Synthetic NIN (format-valid; no public checksum). Not a real issued number.
Format specification
| Identifier | National Identification Number (NIN) |
|---|---|
| Country | 🇹🇿 Tanzania |
| Format | 00000000-00000-00000-00 |
| Length | 20 characters |
| Checksum | None |
| Example | 19890427-13633-53946-43 |
| Safe strategy | Synthetic |
| Data quality | Best-effort |
National Identification Number: what each part means
| 00000000 | Full date of birth as YYYYMMDD. |
|---|---|
| 00000 | Registration locality code. |
| 00000 | Five-digit serial number. |
| 00 | Two trailing administrative digits. |
Validation regex
Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()
^(19|20)\d{18}$ References
Common questions
Will these pass my validation?
Yes — they are well-formed National Identification Number values (00000000-00000-00000-00) 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.