Kenya National ID Validator — Check ID Number Format

Validate the format of a Kenyan national ID number offline.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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:

  1. The input contains digits only (no letters or symbols).
  2. It is 8 digits or fewer.
  3. It is not all zeros.

If all three hold, it reports a valid N-digit numeric format; otherwise it explains which rule failed.

Example

InputResult
12345678Valid format (8-digit numeric ID)
987654Valid format (6-digit numeric ID)
123456789Rejected — more than 8 digits
12A45Rejected — 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.

Ad placeholder (rectangle)