Skip to content

South African ID number: anonymize it before ChatGPT or sharing

The South African ID number (South Africa) is the 13-digit identity number on every South African green ID book and smart ID card, used by government, banks, employers and medical schemes. POPIA protects it like any other personal information. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

13 digits, YYMMDD SSSS C A Z: the date of birth, four digits for the sex (0000–4999 female, 5000–9999 male), a citizenship digit (0 citizen, 1 permanent resident, 2 refugee), a digit that used to carry race and is now unused, and a Luhn check digit: 8001015009087, often spaced as 800101 5009 087.

The date of birth, the sex and whether the person is a citizen, all in plain digits.

Employment contracts, payslips and IRP5s, insurance and medical aid claims, bank and FICA documents, CCMA and court papers, lease agreements.

Piixie has a dedicated rule for it, in every model including Lite: it matches the format and checks the control digits, so random numbers of the same length aren’t flagged and real ones aren’t missed. The local LLM also reads the context around it.

With Synthesize, a fake of the same kind with correct check digits, consistent everywhere the same number appears. With Redact, a black box or [REDACTED]; with Replace, a placeholder such as [ID_1].

All of it happens on your computer: the document is never uploaded to find the numbers. See why a local LLM.