Aadhaar number validator

Check whether a 12-digit Aadhaar number is correctly formed, using the check digit built into every Aadhaar number.

This runs in your browser. Nothing you type is sent to us, to UIDAI or to anyone else. It only tests the number's built-in check digit.

Try a sample:

Type an Aadhaar number above, or press a sample.

ASP Associates is a private company. We are not UIDAI, and this page is not a UIDAI service. The sample numbers are made up for testing.

How this Aadhaar check works

  • It counts the digits

    An Aadhaar number has exactly 12 digits and nothing else. Spaces between groups of four are fine.

  • It looks at the first digit

    An Aadhaar number never starts with 0 or 1. If yours does, a digit is wrong or missing.

  • It tests the last digit

    The 12th digit is a check digit, worked out from the other 11 with a method called the Verhoeff algorithm. Change any one digit, or swap two digits that sit next to each other, and the check digit no longer fits.

  • It never contacts UIDAI

    The whole test is arithmetic done on your own device. That also means a number can pass and still never have been issued to anyone. Passing shows the number is well formed, nothing more.

What is inside an Aadhaar number

PositionWhat it holdsRule
Digit 1The first digit of the numberAny digit from 2 to 9. Never 0 or 1.
Digits 2 to 11Random digitsThey carry no meaning. An Aadhaar number does not encode a state, a date of birth or a gender.
Digit 12The check digitWorked out from the first 11 digits with the Verhoeff algorithm.

The Verhoeff check, step by step

The Verhoeff algorithm is a way of adding a check digit to a number so that typing mistakes can be caught. It was published by the Dutch mathematician Jacobus Verhoeff in 1969. It uses two small lookup tables: a multiplication table and a permutation table.

  1. Write the 12 digits in reverse order, so the check digit comes first.
  2. Start with a running value of 0.
  3. For each digit, counting positions from 0, look it up in the permutation table. Use the row numbered by the position, starting again from the first row after every 8 positions.
  4. Combine the running value and that result using the multiplication table. The answer becomes the new running value.
  5. After all 12 digits, the number is well formed if the running value is 0.

Because the multiplication table is not symmetric, swapping two neighbouring digits changes the result. That is what lets the check catch swaps as well as single wrong digits.

Questions about Aadhaar numbers.

How do I check if an Aadhaar number is valid?

There are two levels of check. The first is whether the number is well formed: 12 digits, not starting with 0 or 1, with a last digit that fits the rest. The tool on this page does that in your browser.

The second is whether UIDAI has issued the number and who holds it. Only UIDAI can answer that. UIDAI's own website lets you confirm that a number exists, and a business can confirm identity when the holder enters a one-time code sent to their phone.

What is the Verhoeff algorithm in an Aadhaar number?

It is the method used to work out the 12th digit of an Aadhaar number from the first 11. The last digit is a check digit, not part of the identity itself. If someone mistypes a digit or swaps two digits that sit side by side, the check digit stops matching and the mistake is caught straight away.

The algorithm catches every single wrong digit and every swap of two neighbouring digits, which simpler check digit methods do not.

Why can an Aadhaar number not start with 0 or 1?

Because UIDAI does not issue numbers that begin with 0 or 1. Those first digits are kept in reserve, so every Aadhaar number given to a resident starts with a digit from 2 to 9. A number starting with 0 or 1 is mistyped or made up.

Does this tool store or send my Aadhaar number?

No. The check is arithmetic that runs inside your browser. The number you type is not sent to us, to UIDAI or to anyone else, and it is gone when you close or reload the page.

Can this tool tell me who an Aadhaar number belongs to?

No. An Aadhaar number does not contain a name, an address or a date of birth, and there is no public way to look up a person from a number. To confirm that a number belongs to a person, the holder has to approve it themselves, usually by entering a one-time code that UIDAI sends to their registered mobile. That is how an Aadhaar verification API works.

What is a masked Aadhaar number?

A masked Aadhaar shows only the last 4 digits and hides the first 8, like this: XXXX XXXX 0124. UIDAI offers it as an option when you download your Aadhaar, so you can prove you have one without handing over the full number.

Businesses that collect Aadhaar are generally expected to store only the masked form. The exact duty depends on the kind of business, so check the current UIDAI and RBI rules that apply to you.

Is there a dummy Aadhaar number I can use for testing?

Yes. 2345 6789 0124 is a made-up number that passes the format and check digit test, so you can use it to test a form or your own validation code. To test the failure case, use 2345 6789 0125, which has the wrong last digit.

Never use a made-up number where a real Aadhaar is asked for, and never test with another person's real number.

Say yes with confidence.

Tell us what you need to verify. A person replies, not a bot.