Skip to contentRedact PII for your data. Get a quote

Coverage · India

Aadhaar number detection and redaction

OpenAnonymizer finds the Indian Aadhaar number in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.

At a glance

Country
India IN
Format
Aadhaar number
Placeholder
IN_AADHAAR1Each distinct value gets its own number: IN_AADHAAR_1, IN_AADHAAR_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying residents of India for government services, subsidies, banking and identity checks (e-KYC).

About the Aadhaar number

Aadhaar numbers are issued by the Unique Identification Authority of India (UIDAI).

The number is 12 digits and never starts with 0 or 1. It is random, and the last digit is a check digit (the Verhoeff algorithm).

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
Aadhaar: 498765432102
Out
Aadhaar: IN_AADHAAR1

How OpenAnonymizer handles it

Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.

  • It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
  • Every package ships every detector, so this format is covered in each of them.
  • It covers 34 languages.
How a match is decided