Homeโ€บArticlesโ€บHow Toโ€บHow to Validate an Aadhaar Number
HOW TO

How to Validate an Aadhaar Number

Step-by-step guide to checking an Aadhaar number's format, understanding masked Aadhaar, and why a passing check doesn't confirm registration.

Reviewed by the thecalcu.com team ยท Last updated 4 August 2026

Checking an Aadhaar number's format catches the most common data entry mistakes instantly, without contacting UIDAI. This guide walks through validating the format and what that check does and doesn't tell you.

What You Need

  • The 12-digit Aadhaar number you want to check, with or without spaces
  • Access to the Aadhaar Validator for instant checking, or a way to manually compute the Verhoeff checksum

Step 1: Confirm the Number Has Exactly 12 Digits

Strip any spaces or hyphens from the number and count the digits. A valid Aadhaar number is always exactly 12 digits long. If your number comes out to a different count after removing separators, it's already invalid before any checksum even gets applied.


Step 2: Understand the Verhoeff Checksum

Aadhaar numbers use the Verhoeff algorithm for their final check digit. It's sturdier than a simple weighted-sum checksum, since it catches all single-digit errors and most cases where two adjacent digits got swapped. The algorithm works through multiplication and permutation tables rather than a simple linear formula, so manual verification isn't practical. A validator tool does the job in a fraction of a second.


Step 3: Run the Number Through a Validator

Enter the 12-digit number into the Aadhaar Validator. The tool strips any spaces automatically, confirms the digit count, and applies the Verhoeff checksum to tell you immediately whether the number is structurally valid.


Step 4: Interpret a Failing Result

If the check fails, the likely cause is a single mistyped digit or a transposition of two adjacent digits, both of which the Verhoeff algorithm is built to catch. Compare the number carefully against the original Aadhaar card or downloaded e-Aadhaar PDF to find and correct the mismatch.


Step 5: Understand What a Passing Result Does and Doesn't Mean

A passing checksum confirms the number is correctly formed according to UIDAI's algorithm. It does not confirm the number has actually been issued, is currently active, or belongs to the person presenting it. Verifying those facts requires UIDAI's official verification channels. A website format check is a first-line filter for typos, not a stand-in for identity verification.


Step 6: Use Masked Aadhaar When Sharing the Number

If you need to display or share an Aadhaar number without revealing it in full, use the masked format: only the last 4 digits show, with the first 8 replaced by Xs (XXXX XXXX 2346). The Aadhaar Formatter generates this format automatically from a full number, following UIDAI's recommended privacy practice.


Common Mistakes to Avoid

Treating a passing checksum as identity verification. Format validation and real identity verification are different things. Don't conflate them in a KYC or compliance context.

Not stripping spaces before counting digits. Aadhaar numbers are commonly written with spaces in groups of four. Strip these before checking the digit count.

Sharing the full number when masked would suffice. Default to the masked format whenever full visibility isn't specifically required.

Assuming any 12-digit number is Aadhaar-shaped. Other 12-digit numbers, like some barcode formats, won't pass the Aadhaar-specific Verhoeff checksum, and the reverse holds too. The check is specific to Aadhaar's exact algorithm.

Key Terms

  • Aadhaar: India's 12-digit biometric identity number, issued by UIDAI and validated using the Verhoeff algorithm.
  • PAN: India's tax-specific identifier, a separate 10-character alphanumeric format from Aadhaar.
  • Masked Aadhaar: a privacy-preserving display format showing only the last 4 digits of an Aadhaar number.

Frequently Asked Questions

What format does a valid Aadhaar number follow?
An Aadhaar number is always exactly 12 digits, conventionally displayed in three groups of four digits separated by spaces (for example, 2341 2341 2346). The final digit is a checksum, computed with the Verhoeff algorithm against the preceding eleven.
Does a passing format check confirm an Aadhaar number is real?
Not on its own. A passing checksum only confirms the number is structurally well-formed according to UIDAI's numbering algorithm, not that it's actually been issued or belongs to a real person. Confirming an Aadhaar's actual status needs verification through UIDAI's official channels, not a client-side format check.
What is masked Aadhaar and when should I use it?
Masked Aadhaar displays only the last 4 digits, with the first 8 replaced by Xs (shown as XXXX XXXX 2346). UIDAI recommends this format whenever an Aadhaar number needs to be shared or printed on a document but full visibility isn't necessary.
Can I validate Aadhaar without an internet connection?
Yes, format validation using the Verhoeff checksum runs entirely client-side on the digits alone. No API call or database lookup is involved, so it works offline.
Why would an Aadhaar number fail validation?
Usually it comes down to a mistyped digit, a missing or extra digit, or a number that was never a real Aadhaar to begin with, like a placeholder used in a form template. Double-check the number against the original Aadhaar card or e-Aadhaar document.
What is the Verhoeff algorithm and why does Aadhaar use it?
It's a checksum method that catches all single-digit errors and most adjacent-digit transposition errors. That makes it sturdier than the simpler weighted-sum checksums some other national ID formats rely on, which is why UIDAI picked it.
Is Aadhaar the same as PAN for validation purposes?
No. They use different formats and different algorithms entirely. PAN is a 10-character alphanumeric code (5 letters, 4 digits, 1 letter), while Aadhaar is 12 digits checked with the Verhoeff algorithm. Use the [PAN Validator](/in/pan-validator/) and [Aadhaar Validator](/aadhaar-validator/) separately for each.
Can I format and validate an Aadhaar number in one step?
They're related but separate operations. The [Aadhaar Validator](/aadhaar-validator/) checks whether a number is structurally correct, while the [Aadhaar Formatter](/aadhaar-formatter/) applies standard spacing or masking to a number you've already confirmed is correctly formed. Run the validator first if you're unsure.

Related Articles

GUIDE

Global Identity Document Validation Guide 2026