Validate an Indian GSTIN before you trust the invoice
A GSTIN is the 15-character identifier every GST-registered business in India carries. A wrong GSTIN on a purchase invoice can block your input-tax credit. This validator checks every part of the number — including the official check digit — and tells you the issuing state, all in your browser.
How it works
The validator inspects the GSTIN segment by segment:
- State code (chars 1–2) is looked up against the official list (for example
27= Maharashtra,07= Delhi). - PAN (chars 3–12) must match the pattern
AAAAA9999A. - Entity digit (char 13) must be alphanumeric.
- Default Z (char 14) is normally the letter
Z. - Check digit (char 15) is recomputed with the GSTN algorithm.
The check digit uses base 36: each of the first 14 characters is valued 0–35, multiplied by an alternating factor (1, 2, 1, 2, …), and the tens and units of each product (in base 36) are summed. The check value is (36 − sum mod 36) mod 36, mapped back to a character.
Example and notes
27AAPFU0939F1ZV validates cleanly: state 27 is Maharashtra, the embedded PAN AAPFU0939F matches the pattern, position 14 is Z, and the computed check digit is V — matching the supplied digit.
A passing result confirms the number is structurally sound and self-consistent. It does not confirm the registration is active or that the legal name matches. For purchase decisions and credit claims, always cross-check on the GST portal.