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.

Updated 2026-06-28

Checking an Aadhaar number's format catches the most common data entry mistakes instantly, without needing to contact UIDAI. This guide walks through validating the format and understanding 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, no more and no fewer. If your number has a different digit count after removing separators, it's already invalid before any checksum is even applied.


Step 2: Understand the Verhoeff Checksum

Aadhaar numbers use the Verhoeff algorithm for their final check digit โ€” a more robust method than simple weighted-sum checksums, since it catches all single-digit errors and most cases where two adjacent digits have been swapped. The algorithm works through multiplication and permutation tables rather than a simple linear formula, which is why manual verification is impractical and a validator tool is the practical approach.


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 most likely cause is a single mistyped digit or a transposition of two adjacent digits โ€” both of which the Verhoeff algorithm is specifically designed to catch. Compare the number carefully against the original Aadhaar card or downloaded e-Aadhaar PDF to find and correct the discrepancy.


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. Real verification of those facts requires checking through UIDAI's official verification channels โ€” a website format check is a first-line filter for typos, not a substitute for actual identity verification.


Step 6: Use Masked Aadhaar When Sharing the Number

If you need to display or share an Aadhaar number but don't need to reveal it in full, use the masked format โ€” showing only the last 4 digits 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 all 12-digit numbers are Aadhaar-shaped. Other 12-digit numbers (like some barcode formats) won't pass the Aadhaar-specific Verhoeff checksum, and vice versa โ€” 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

An Aadhaar number is always exactly 12 digits, conventionally displayed in three groups of four digits separated by spaces (for example, 2341 2341 2346). It uses the Verhoeff checksum algorithm to validate the final digit against the preceding eleven.
No โ€” a passing checksum only confirms the number is structurally well-formed according to UIDAI's numbering algorithm, not that it has actually been issued or belongs to a real person. Confirming an Aadhaar's actual status requires verification through UIDAI's official channels, not a client-side format check.
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, to reduce exposure of the complete number.
Yes โ€” format validation using the Verhoeff checksum runs entirely client-side using the digits alone, requiring no API call or database lookup, so it works offline.
The most common reasons are a mistyped digit, a missing or extra digit, or a number that was never a real Aadhaar to begin with โ€” such as a placeholder used in a form template. Double-check the number against the original Aadhaar card or e-Aadhaar document.
The Verhoeff algorithm is a checksum method that detects all single-digit errors and most adjacent-digit transposition errors, making it more robust than simpler weighted-sum checksums used by some other national ID formats. UIDAI chose it specifically for this stronger error-detection capability.
No โ€” they use entirely different formats and algorithms. PAN is a 10-character alphanumeric code (5 letters, 4 digits, 1 letter), while Aadhaar is purely 12 digits using the Verhoeff checksum. Use the [PAN Validator](/pan-validator-india/) and [Aadhaar Validator](/aadhaar-validator/) separately for each.
These are two related but distinct 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. Use the validator first if you're unsure about correctness.

Related Articles

GUIDE

Global Identity Document Validation Guide 2026