International · Validation
South African ID number validator.
Check a 13-digit South African ID number against the Luhn check digit it carries, and see the date of birth, gender range and citizenship status it encodes. Everything runs in your browser.
How it works: the ID is YYMMDDSSSSCAZ. The last digit is a Luhn check digit over the first 12; if it doesn't match, the number has a typo.
How a South African ID number is built
A South African ID number is 13 digits in the format YYMMDDSSSSCAZ. This tool splits it as follows.
| Digits | Part | Meaning |
|---|---|---|
| 1-6 | YYMMDD | Date of birth (10 May 1994 is 940510) |
| 7-10 | SSSS | Gender sequence: 0000-4999 female, 5000-9999 male |
| 11 | C | 0 = South African citizen, 1 = permanent resident, 2 = refugee |
| 12 | A | Not decoded by this tool |
| 13 | Z | Check digit, calculated with the Luhn algorithm |
The Luhn check doubles every second digit of the first 12, starting from the digit next to the check digit, subtracts 9 from any result above 9, adds everything up, and sets the check digit so the total is a multiple of 10.
The ID carries only a two-digit year, so 94 could mean 1994 or 2094. The tool lists every century that gives a real past date instead of guessing.
Checksum and structure only, not a Home Affairs lookup
A passing result means the number is internally consistent. It does not confirm the number was issued to anyone. Only the Department of Home Affairs can do that.
Sources
Format, gender ranges, citizenship digit values and use of the Luhn algorithm: South African Revenue Service, “South Africa - Information on Tax Identification Numbers”, published by the OECD. Luhn algorithm: Wikipedia: Luhn algorithm.
What each digit tells you
South Africa's 13-digit identity number is described in the South African Revenue Service's submission to the OECD as the format YYMMDDSSSSCAZ. Reading it from the left: the first six digits are the date of birth (10 May 1994 appears as 940510); the next four, SSSS, are a sequence in which 0000-4999 is assigned to females and 5000-9999 to males; the eleventh digit, C, shows citizenship status (0 for a South African citizen, 1 for a permanent resident, 2 for a refugee); the twelfth, A, is not defined in that document and this tool leaves it undecoded; and the thirteenth, Z, is a check digit calculated with the Luhn algorithm.
The tool applies those rules and tells you which part fails. A number can be the right length and still fail because the date does not exist (31 April, or 29 February in a non-leap year), because the citizenship digit is not one of the defined values, or because the final digit does not match the Luhn result.
A worked Luhn check
Take the illustrative number 9405105000089, built from the OECD's example date and not belonging to anyone. Drop the last digit, leaving 940510500008, and work from the right. Double every second digit starting with the one next to the check digit, and subtract 9 from any doubled result above 9:
| Digit | 9 | 4 | 0 | 5 | 1 | 0 | 5 | 0 | 0 | 0 | 0 | 8 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Doubled? | no | yes | no | yes | no | yes | no | yes | no | yes | no | yes |
| Result | 9 | 8 | 0 | 1 | 1 | 0 | 5 | 0 | 0 | 0 | 0 | 7 |
The results add up to 31. The check digit is whatever brings the total to the next multiple of 10, which is 9 (31 + 9 = 40), and the number ends in 9, so it passes. Change the last digit to 8 and the tool reports that the checksum requires 9. This also shows what the check is good for: it catches a single mistyped digit and most swapped neighbours, which is exactly what happens when a number is copied from a form or a screenshot.
Why the birth year can have two answers
The number stores only two digits of the year, so 05 could mean 1905 or 2005. Rather than guess, the tool lists every century that produces a real date in the past. A number starting 940510 resolves only to 1994 because 2094 is in the future, while a number starting 050310 would show both 1905 and 2005. If you need the actual age of a living person, the document itself or the person is the only reliable source.
What this check cannot do
- It does not look anything up. There is no connection to the Department of Home Affairs or any population register. A number that passes has not been confirmed as issued to a real person, and a number that fails is not proof of fraud: typing errors are far more common.
- It cannot search by name. Some visitors look for a way to find an ID number from a person's name. The number is a personal identifier, and no calculator can recover it; only the person or the authorities that issued it hold that link.
- The gender and citizenship fields are conventions, not proof. They describe what the digits say, not what is true about a person.
- It does not validate tax numbers or passports. SARS income tax reference numbers are a separate 10-digit series, and passports have their own numbering.
Privacy when you check an ID number
An identity number is sensitive. This page runs entirely in your browser: the digits you type are not sent to a server, stored or logged. That is not true of every online ID checker, so be cautious about pasting a real number into a site that does not say where it goes, and avoid pasting other people's numbers anywhere you do not need to. For testing software, use the invented example above, or generate numbers that pass the Luhn check but belong to no one.
Common reasons a real number fails
- A digit was transposed, dropped or added when typing or when the number was read from a scan.
- Spaces or hyphens were pasted in. The tool ignores them, but some systems do not.
- The leading zero of a birth year such as 05 was lost in a spreadsheet, turning a 13-digit number into 12.
- The number is from an older or foreign document that does not follow this layout.
For other numbers built the same way, see the credit card Luhn validator, the Canadian SIN validator and the India Aadhaar validator, or browse all ID number validators.
Frequently asked questions
How do I check if a South African ID number is valid?
Enter the 13 digits and press Check. The tool tests that the first six digits form a real date of birth, that the citizenship digit is 0, 1 or 2, and that the last digit matches the Luhn checksum of the first 12. A pass means the number is internally consistent, not that it was issued to anyone.
What do the digits of a South African ID number mean?
The format is YYMMDDSSSSCAZ: date of birth, a four-digit sequence where 0000-4999 is female and 5000-9999 is male, a citizenship digit (0 citizen, 1 permanent resident, 2 refugee), one further digit, and a Luhn check digit. This follows the description SARS gave the OECD.
Does this verify an ID with Home Affairs?
No. The page does not connect to the Department of Home Affairs or any register, so it cannot say whether a number was issued or who holds it. It only checks the structure and the checksum, entirely in your browser.
Why does the tool show two possible birth years?
The ID stores only two digits of the year. A two-digit year like 05 could be 1905 or 2005, so the tool lists every century that gives a valid date that is not in the future instead of guessing.
Can I find someone's ID number from their name here?
No. This is a validator, not a search. It works only on a number you already have, and nothing you type is sent anywhere. Searching for a person's identity number is something only the person, their documents or the issuing authority can provide.
Is it safe to enter a real ID number?
The calculation runs locally in your browser and the digits are not transmitted, stored or logged. Even so, treat an identity number as sensitive: if you only need to test software, use an invented number that passes the checksum, such as the worked example on this page.
What is the Luhn algorithm?
It is a simple checksum that doubles every second digit, reduces any doubled value above 9 by 9, adds everything up and picks a final digit that makes the total a multiple of 10. It is used for South African ID numbers, many payment card numbers and other identifiers, and detects most single-digit typing errors.
Sources
Retrieved 2026-10-19. Each link was opened and read for the claim it supports.
- SARS: South Africa - Information on Tax Identification Numbers (OECD) — Appendix II sets out the YYMMDDSSSSCAZ format, the gender ranges, the citizenship digit values and the Luhn check digit.
- Wikipedia: Luhn algorithm — general description of the checksum used for the final digit.
- Department of Home Affairs (South Africa) — the department responsible for South African identity documents; use it, not a checksum, to ask whether a number was issued.
- South African Revenue Service — the revenue authority behind the separate 10-digit income tax reference number (its format is in the OECD document above).
Checksum only — not a Home Affairs lookup
This tool checks the ID number entirely in your browser. It does not query the Department of Home Affairs, and a checksum-valid result is not proof the number was ever issued. Nothing you type is transmitted, stored, or logged.