Skip to main content
Skip to main content

PAN Card Validator

Online Indian Permanent Account Number (PAN) validator. Excellent for QA.

How does PAN validation work?

PAN validation checks if the string has exactly 10 characters and matches the strict mask: 5 initial letters, 4 central digits, and 1 final control letter.

The validator also checks if the 4th letter represents a valid Indian tax registration category (such as P, C, H, F, A, T, B, G, J, L).

Anatomy & Structure of the PAN (Permanent Account Number)

The Indian PAN consists of 10 alphanumeric characters structured in 5 parts:

PositionFieldLengthMeaning & RuleExample
1 to 3Alphabetic Series3 lettersSequential alphabetic series from AAA to ZZZAAP
4Entity Type1 letterP=Individual, C=Company, H=HUF, F=Firm, T=Trust, G=GovP
5Surname Initial1 letterFirst letter of holder's surname or entity legal nameK
6 to 9Sequential Number4 digitsSequential number issued by Income Tax Dept (0001 to 9999)1234
10Alphabetic Check Character1 letterSystem-generated alphabetic check letterF

Structural Validation of PAN (Income Tax Act, 1961)

Syntactic compliance rules mandated by CBDT:

^[A-Z]{5}[0-9]{4}[A-Z]$
  1. 1. Check exact length of 10 alphanumeric characters.
  2. 2. First 3 characters must be uppercase letters.
  3. 3. 4th character must be a valid entity type code (P, C, H, F, A, T, B, L, J, G).
  4. 4. 5th character must be an uppercase letter representing surname initial.
  5. 5. Positions 6 to 9 must be 4 numeric digits (0001 to 9999).
  6. 6. 10th position must be a single alphabetic check character.

Validation FAQ