South Africa ID Number Validator
Enter a 13-digit South African ID number to check its Luhn check digit and read the date of birth, age, gender and citizenship status, or paste a list to check many at once.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter an ID
13 digits.
- 2Read the result
Valid or not.
- 3See the details
Birth date, gender.
- 4Paste a list
Batch check.
- 5Check duplicates
Counted.
- 6Download CSV
Results.
About this tool
South African identity numbers are thirteen digits long, and every part means something. The first six digits are the date of birth in the form YYMMDD. The next four are a sequence number in which values from 0000 to 4999 were assigned to females and 5000 to 9999 to males. The eleventh digit shows citizenship: 0 for a South African citizen, 1 for a permanent resident and 2 for a refugee. The twelfth digit is usually 8 (older numbers may have 9), and the last digit is a check digit calculated with the Luhn algorithm from the other twelve, which catches most typing mistakes and swapped digits. Employers, schools, landlords, banks and online forms ask for ID numbers all the time, and a single wrong digit can cause a rejected application, a failed tax registration or a mismatched record. Before submitting forms or importing a list into payroll or a database, it helps to check that each number is at least well-formed. This validator does that in your browser. Enter a number to see whether the date of birth is a real date, whether the citizenship digit is valid and whether the check digit matches, and read the date of birth, current age, gender and citizenship status it encodes. Paste a whole list, one number per line, to check them in one go, count valid, invalid and duplicate entries, and download a CSV with the result for each. It is important to understand what this does not do: it cannot confirm that the number was actually issued or that it belongs to the person giving it; only Home Affairs verification can do that.
Who this is for
HR and payroll staff, school and university admin offices, landlords and property agents, developers testing form validation, and anyone filling in an official form.
The 13 digits
| Digits | Meaning | |---|---| | 1-6 | Date of birth (YYMMDD) | | 7-10 | Sequence (5000 and above = male) | | 11 | 0 citizen, 1 permanent resident, 2 refugee | | 12 | Usually 8 | | 13 | Luhn check digit |
Century
The tool assumes birth years up to the current two-digit year are in the 2000s and others in the 1900s.
Privacy
ID numbers are personal information under POPIA. Collect only what you need and store lists securely.
Verification
To confirm identity, use the Home Affairs verification service or an accredited credit bureau, with consent.
For developers
Use the same checks in your forms: 13 digits, a real date, a citizenship digit of 0, 1 or 2 and a Luhn check digit. Never store ID numbers you do not need.
Smart ID cards
The number is the same on the green ID book and the smart ID card.
Limits
A valid format does not prove a number was issued. This is a format check, not identity verification or legal advice.
Worked example
8001015009087 passes the check digit: born 1 January 1980, male, South African citizen, age 46 in November 2026.
Quick facts
- Category: Documents & Letters
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Department of Home Affairs
Frequently asked questions
How do I check if an SA ID number is valid?
Check that the date is real, the citizenship digit is 0, 1 or 2 and the Luhn check digit matches.
How can I tell gender from an ID number?
Digits 7 to 10 of 5000 or more indicate male, below 5000 female.
What does the 11th digit mean?
0 is a citizen, 1 a permanent resident and 2 a refugee.
Can I check many numbers at once?
Yes. Paste a list, one per line, and download the CSV.
Does a valid result prove identity?
No. It only checks the format; use Home Affairs verification for identity.
Are ID numbers uploaded?
No. Everything stays in your browser.
