Kenya national ID validator
Check whether a Kenyan national ID number has a valid format, entirely offline. The number is a sequential numeric serial of up to 8 digits assigned by the Department of Civil Registration. It does not encode date of birth, county or gender, and there is no published check-digit algorithm.
How it works
Because the ID carries no internal structure to test, the only deterministic offline rule is the format. The validator strips non-digits and checks three conditions:
- The input contains digits only (no letters or symbols).
- It is 8 digits or fewer.
- It is not all zeros.
If all three hold, it reports a valid N-digit numeric format; otherwise it explains which rule failed.
Example
| Input | Result |
|---|---|
12345678 | Valid format (8-digit numeric ID) |
987654 | Valid format (6-digit numeric ID) |
123456789 | Rejected — more than 8 digits |
12A45 | Rejected — contains non-digit characters |
So 12345678 passes the format check, while a 9-digit value is flagged as too long.
Privacy-first: everything runs in your browser with no network requests — your ID number never leaves your device. This tool checks the format only and cannot confirm an ID against any government database.