PAN & Aadhaar Validator — Check the Format Instantly

Type a PAN or Aadhaar number to check its format. PANs are decoded part by part; Aadhaar numbers are checked against their built-in check digit, which catches most typos. Nothing leaves your browser.

BusinessRuns in your browser — nothing uploaded

Mode

Valid PAN formatPAN

What each part means
SeriesAAAAlphabetic series (AAA–ZZZ)
Holder typeCCompany
Name initialIFirst letter of the entity’s name
Sequence4798Running number, 0001–9999
Check letterLIts formula isn’t published, so it can’t be verified offline

This checks the format and check digit only — it can’t tell whether a PAN or Aadhaar was actually issued or who it belongs to. Everything runs in your browser; nothing is uploaded or stored. Valid Aadhaar numbers are masked in the list view.

Validation code for developers
Language
// PAN: 5 letters (4th = holder type), 4 digits, 1 letter
const PAN_RE = /^[A-Z]{3}[PCHFATBLJG][A-Z][0-9]{4}[A-Z]$/;
export const isValidPan = (pan) => PAN_RE.test(pan.trim().toUpperCase());

// Aadhaar: 12 digits, doesn't start with 0/1, Verhoeff check digit
const D = [[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]];
const P = [[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]];
export function isValidAadhaar(input) {
  const a = input.replace(/[\s-]/g, "");
  if (!/^[2-9][0-9]{11}$/.test(a)) return false;
  let c = 0;
  [...a].reverse().forEach((d, i) => { c = D[c][P[i % 8][+d]]; });
  return c === 0;
}

How it works

  1. 1

    Detects the ID

    Letters mean a PAN, digits mean an Aadhaar number — no need to pick.

  2. 2

    Checks the PAN structure

    5 letters, 4 digits, 1 letter — and the 4th letter must be a real holder type such as P (individual) or C (company).

  3. 3

    Verifies the Aadhaar check digit

    Aadhaar’s last digit is a Verhoeff checksum of the first 11. It catches every single-digit typo and swapped neighbouring digits.

  4. 4

    Checks whole lists

    Paste up to 1,000 IDs, one per line, and copy the results as CSV. Valid Aadhaar numbers are masked.

Questions, answered

No. It checks the format and check digit, which catches typos and made-up numbers that don’t follow the rules. Only the Income Tax Department (for PAN) and UIDAI (for Aadhaar) can confirm a number was issued and who holds it.

Popular uses