Aadhaar Number Validator (Verhoeff Check Digit)

Type an Aadhaar number to see if its structure and check digit are valid and get a masked version.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Type the number

    Enter the 12 digits, with or without spaces.

  2. 2
    Read the result

    See if it passes the checks.

  3. 3
    Copy the masked version

    Use it when a full number is not needed.

  4. 4
    Fix failures

    Read the reason and correct the digits.

  5. 5
    Protect your number

    Do not post a full Aadhaar number publicly.

About this tool

An Aadhaar number has 12 digits, and the last digit is a check digit calculated with the Verhoeff algorithm, which finds all single-digit mistakes and most swaps of neighbouring digits. The first digit cannot be 0 or 1. This validator checks the length, the first digit and the check digit and shows a masked version, where only the last four digits are visible, which is the form that is safe to share. It does not check whether a number was issued or who it belongs to. That is possible only through the official UIDAI services.

Who this is for

Form builders and developers who validate input, bank and telecom staff who catch typing mistakes, and people who want a masked Aadhaar number for a photocopy or an application.

The structure

An Aadhaar number has 12 digits, usually written in three groups of four. The first digit is between 2 and 9. The last digit is a check digit. There is no information about a person in the digits, such as a state or birth date, and the number is random apart from the check digit.

The Verhoeff check

The Verhoeff algorithm uses three small tables, one for multiplication in a dihedral group, one for permutations and one for inverses. It processes the digits from the right and ends with a value that must be zero for a valid number. It detects any single wrong digit and nearly all swaps of two adjacent digits, which are the most common typing mistakes. The tool runs this check in your browser.

What a pass means

A pass means the number is well formed and has the right check digit. It does not mean that the number has been issued, is active or belongs to the person in front of you. Many random 12-digit numbers pass the check, since one in ten does. To verify an Aadhaar number for its holder, the official services use authentication with the consent of the holder.

Masked Aadhaar

The tool shows the number as XXXX XXXX followed by the last four digits. UIDAI recommends sharing the masked version when a full number is not needed, and the law restricts how organisations may collect and store Aadhaar numbers. Do not post the full number in public.

Worked example

2234 5678 9018 passes. 2234 5678 9017 fails because the check digit is wrong. 1234 5678 9010 starts with 1, so it is rejected whatever the check digit is. A number with eleven digits fails on length.

Privacy

The number is checked in your browser. Nothing is sent or saved.

Limits

Structure only. It cannot verify who a person is, and it is not legal advice.

Worked example

2234 5678 9018 passes the Verhoeff check and shows as XXXX XXXX 9018, while 2234 5678 9017 fails.

Quick facts

Frequently asked questions

How many digits does an Aadhaar number have?

12 digits. The first digit is 2 to 9, and the last is a check digit.

What is the Verhoeff algorithm?

A check digit method that finds all single-digit errors and most swaps of neighbouring digits.

Does a pass prove that the Aadhaar is real?

No. It only shows that the number is well formed. Verification needs the official services.

What is a masked Aadhaar?

A version that hides the first eight digits and shows the last four.

Is the number stored?

No. It is checked in your browser and not sent anywhere.

Can I check a list?

Yes, but be careful with real personal data. Paste one number per line.

Guides for this tool

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