The Malaysian MyKad is the national identity card carried by every citizen and permanent resident. Its 12-digit number is not random — it encodes the holder’s date of birth, place of birth and gender in a fixed layout. This decoder reads those fields straight out of the number, locally in your browser, so you can understand what each part means.
How it works
The 12 digits are written YYMMDD-PB-###G and split as follows:
- YYMMDD (digits 1-6) — date of birth. The two-digit year is resolved to a century by comparing it to the current year: years up to today’s two-digit year are read as 2000s, everything later as 1900s.
- PB (digits 7-8) — place-of-birth code, mapped to a Malaysian state (or flagged as foreign-born when the code is outside the state list).
- ### (digits 9-11) — serial number.
- G (digit 12) — gender: odd = male, even = female.
There is no checksum, so the decoder reads structure only; it never validates that the number was actually issued.
Example
Take 900101-14-5567. The prefix 900101 is 1 Jan 1990 (90 is greater than the
current two-digit year, so it resolves to 1990). The code 14 maps to Wilayah
Persekutuan Kuala Lumpur. The serial is 556. The final digit 7 is odd, so the
gender is Male.
| Segment | Digits | Example value | Meaning |
|---|---|---|---|
| YYMMDD | 1-6 | 900101 | 1 Jan 1990 |
| PB | 7-8 | 14 | Kuala Lumpur |
| Serial | 9-11 | 556 | sequence number |
| G | 12 | 7 | odd → male |
It is privacy-first: nothing leaves your browser. The decoder only interprets the documented structure of the number and never checks it against any government database.