Documents and Office

South Africa ID Number Validator: Check Digit, Age, Gender

Check a 13-digit South African ID number with the Luhn check digit, read the date of birth, age, gender and citizenship, and validate lists in a batch.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
South Africa ID Number Validator: Check Digit, Age, Gender

A South African ID number is more than a random string of digits. Each part means something, and the last digit is a check digit that catches most typing mistakes. The free South Africa ID Number Validator checks the format, reads the details built into the number, and can validate a whole list at once.

Everything happens in your browser. Nothing you type or paste is uploaded.

The 13-digit format

A South African ID number has 13 digits in this pattern:

YYMMDD SSSS C A Z

PartDigitsMeaning
YYMMDD1 to 6Date of birth
SSSS7 to 10Sequence number, which also shows gender
C11Citizenship status
A12Usually 8, older numbers may have 9
Z13Check digit

Date of birth

The first six digits are the year, month and day of birth. The validator checks that the date really exists, so a month of 13 or a 30 February fails. It then shows the full date of birth and the person's current age.

Because only two digits are used for the year, the century has to be inferred. A number starting with 05 is most likely 2005 rather than 1905, so check the age shown for very old records.

Gender from the sequence

Digits 7 to 10 form a sequence number. Numbers from 0000 to 4999 are used for females, and 5000 to 9999 for males. The validator shows the gender recorded in the number.

Citizenship

Digit 11 shows citizenship status:

  • 0: South African citizen.
  • 1: permanent resident.
  • 2: refugee.

Digit 12

Digit 12 is usually 8 on current numbers. Older numbers may have 9. The validator accepts both.

The Luhn check digit

The last digit is calculated from the first 12 using the Luhn algorithm, the same family of check used on bank cards. In simple terms:

  1. Starting from the right, every second digit is doubled.
  2. If doubling gives a two-digit number, its digits are added together.
  3. All the digits are added up.
  4. The check digit is the number that brings the total up to a multiple of 10.

If someone mistypes one digit, or swaps two neighbouring digits in most cases, the check digit no longer matches and the validator flags the number as invalid.

Batch validation

If you work with lists of ID numbers, for example in HR, payroll or membership records, you can paste many numbers at once.

  • Each number is checked and shown as valid or invalid.
  • The date of birth, age, gender and citizenship are shown for each valid number.
  • Duplicates are counted, so you can spot the same person entered twice.
  • You can download the results as a CSV file to open in a spreadsheet.

What the validator does not do

This is important. The tool checks the format and the check digit only. A number can pass every check and still not belong to a real person, or belong to someone other than the person who gave it to you.

To confirm that a number really belongs to a specific person, you need a verification through the Department of Home Affairs or an authorised verification service. The validator is a first filter for typing errors and obviously wrong numbers, not proof of identity.

Privacy

ID numbers are personal information. The validator runs entirely on your device, and the numbers are not sent to any server. Even so, handle ID data carefully, keep exported CSV files secure, and follow the Protection of Personal Information Act (POPIA) when you store or share them.

How to use the validator

  1. Type or paste a single 13-digit ID number.
  2. Read the result: valid or invalid.
  3. Check the date of birth, age, gender and citizenship.
  4. For a list, paste one number per line into the batch box.
  5. Review the duplicates count and download the CSV.

Who the tool is for

  • HR and payroll staff checking employee records.
  • Schools, clubs and churches cleaning up membership lists.
  • Developers testing forms that accept SA ID numbers.
  • Anyone who wants to check their own number was typed correctly.

Frequently asked questions

How do I know if an SA ID number is valid?

It must have 13 digits, a real date of birth in the first six digits, and a last digit that matches the Luhn check. The validator tests all three.

How can I tell gender from an ID number?

Look at digits 7 to 10. A value of 5000 or more means male, and below 5000 means female.

What does digit 11 mean?

It shows citizenship: 0 for a South African citizen, 1 for a permanent resident and 2 for a refugee.

Does a valid result prove the ID is real?

No. It proves the number is correctly formed. Only a Home Affairs verification can confirm who the number belongs to.

Are the numbers I paste stored anywhere?

No. The checks run in your browser, and nothing is uploaded.

Final thoughts

The South Africa ID Number Validator catches typing errors quickly and reads the details built into each number. Use it to clean up records, and use official Home Affairs verification when you need to confirm identity.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages