Home/Documents/South African ID (barcoded book and Smart ID)

Is this South African ID real? Check for edits and AI fakes

The South African ID, issued by the Department of Home Affairs as the green barcoded book or the Smart ID card, is the national identity credential for citizens and permanent residents and the default document for KYC at banks and lenders. Its thirteen-digit number encodes the holder's birth date, sex, and citizenship status and ends in a Luhn check digit, so a fabricated or edited card usually contradicts its own number.

Last updated:

Most edited
  • portrait
  • ID number
  • name and DOB fields
  • citizenship status
Reviewed by
South African banks, lenders, and fintechs

How South African ID forgeries are made

  1. Luhn check-digit validation

    The final digit is a standard Luhn check over the thirteen digits. A number that fails it was typed rather than issued, whatever the print quality around it.

  2. Birth-date decode

    The first six digits are the birth date as YYMMDD. Decoding them and comparing against the printed date of birth, including the century ambiguity, catches assembled cards, and an impossible calendar date fails outright.

  3. Sex and citizenship coherence

    The sequence range must agree with the printed gender, and the citizenship digit with the printed status. A card contradicting its own number on either point was edited.

  4. Barcode agreement

    Where the barcode can be decoded, its content should agree with the printed names and number. A mismatch points to edited print around a genuine code.

  5. Photograph and field patching

    Portrait swaps and edited lines leave cut-line edges, font passes, and resolution steps that differ from the uniform surrounding print.

Frequently asked questions

What does a South African ID number encode?

Thirteen digits: birth date as YYMMDD, a four-digit sequence that marks sex by range, a citizenship digit, a filler digit, and a Luhn check digit. The structure makes invented numbers fail their own checks.

How is sex shown in the ID number?

The four-digit sequence after the birth date runs from 0000 to 4999 for female holders and from 5000 to 9999 for male holders. A printed gender that contradicts that range is internally inconsistent.

Why is the century not obvious from the number?

The birth date uses a two-digit year with no century, so the printed full date of birth is needed to settle which century applies. Analysis reads the two together rather than trusting the number alone.

How does TamperCheck verify a South African ID?

TamperCheck validates the Luhn check digit, decodes the birth date, sex range, and citizenship digit against the printed fields, and inspects the portrait region for patching. Uploads run through a single REST endpoint, are processed ephemerally and not stored, and findings tie to specific regions.

What does TamperCheck look at first on a South African ID?

It starts where forgeries of a South African ID most often break: the 13-digit number and its check digit, a patched portrait or field, and the barcode content. The rest of a South African ID is covered by the general pixel, font and metadata layers.

What is the quickest tell that a South African ID was edited?

Usually a disagreement between the birth date in the ID number and the printed date of birth. On a South African ID both come from one production pass, so an edit that touches one and not the other shows.

What is the difference between a fake and an altered South African ID?

An altered South African ID starts from a genuine one with changed fields such as portrait, so a real number may still exist. A fabricated one comes from a template or an AI model. Altered documents pass number checks, fabricated ones pass visual review, and each leaves different forensic traces on a South African ID.

Why does a valid number not prove a South African ID is real?

A number on a South African ID can be well-formed, or even belong to a real person, while the document carrying it was built around someone else. Format validation confirms structure, not provenance. Comparing the number against ID number and the file itself closes the gap.

Is a forensic check the same as confirming a South African ID with the issuer?

No. TamperCheck analyses the file of a South African ID itself for edits, composited elements and generation signatures. Confirming a South African ID with the issuing body is a separate step, and the two complement each other.

What a genuine South African ID contains

The number reads YYMMDD for the birth date, then a four-digit sequence where values below 5000 mark female holders and 5000 and above mark male holders, then a citizenship digit of 0 for citizens or 1 for permanent residents, a filler digit, and the check digit. The card shows names, gender, date of birth, citizenship status, country of birth, photograph, and signature, with barcodes on the book and on the Smart ID reverse.

The birth year carries no century, so a two-digit year is ambiguous until it is compared with the printed date of birth. The Smart ID comes in two layouts for regular and long names, and old green books remain valid during the phased replacement, so several designs circulate legitimately and each is scored against its own layout.

Red flags in a South African ID

  • A portrait that does not match the page around it

    Zoom in on the edge of the portrait. A pasted or generated image often leaves a faint halo, or lighting and texture that do not match the rest of the document.

  • An ID number that appears only once

    Genuine documents usually repeat an identifier in a header, footer, barcode or reference block. Look for every place the ID number should appear and check they agree. An edit that updates one and forgets the others is one of the most common mistakes.

  • Lighting on the portrait that disagrees with the card

    Check whether the shadow and glare on the face match the shadow and glare across the rest of the card. A pasted portrait carries the lighting of wherever it came from.

  • Fonts that are nearly right

    Issuers use one tightly specified typeface. Compare digit shapes and letter spacing in the name and number against a genuine specimen of the same edition.

  • Edges and corners that were rebuilt

    Rounded corners, laminate edges and background patterns are hard to recreate. Look for a pattern that breaks, blurs or repeats around the edited area.

How to verify a South African ID in 4 steps

  1. 1. Capture the identity page or both card sides

    Photograph the book page or the Smart ID flat at full resolution so the number and any barcode survive close analysis.

  2. 2. Validate the number

    Apply the Luhn computation over the thirteen digits, then decode the birth date, sequence, and citizenship digit.

  3. 3. Compare with the print

    Confirm the encoded birth date, sex range, and citizenship digit agree with the printed fields, remembering that the century must be read from the printed date.

  4. 4. Run a forensic check on the file

    The number carries the structural story, and the print carries the edit history. TamperCheck runs 300+ forensic checks including Luhn validation and number decoding and patch detection, returning a risk score from 0 to 100 with findings tied to specific regions of the image.

What TamperCheck checks on a South African ID

  • Portrait substitution and face-swap analysis

    The document is isolated from whatever it was photographed on, then the portrait region is assessed against the card surface around it. A pasted or generated face rarely matches the substrate it was placed onto.

  • Reference and document number checks

    Document, account, and reference numbers are checked for issuer format conformance and against every other place the same value appears on the page.

  • Date and validity consistency

    Issue, expiry, and period dates are checked against one another and against the file's own creation metadata, which catches backdating and validity extension.

  • And many more checks

    The three above are the layers that carry the most weight on a South African ID. Every upload runs the full suite of 300+ checks regardless of document class, spanning file structure and metadata, pixel-level forensics, font and text rendering, optical and print characteristics, provenance signals, AI-generation signatures, and many more checks.

Check a document

Upload a PDF or a photo of South African ID. TamperCheck returns a risk score from 0 to 100 and marks the region that was edited, usually within seconds.

For developers, the API class is south_africa_id. See the API and MCP documentation.

Often checked alongside

All supported document types