Paste a GSTIN and the validator checks it as you type. It confirms the structure, reads out the state and the embedded PAN, and recomputes the 15th character to catch a typo without any lookup.
- characters in a GSTIN
- 15
- state and territory codes recognised
- 40
- checksum over the first 14 characters
- Base 36
What a GSTIN is made of
- Positions 1 and 2. The numeric state or union territory code, named in the result.
- Positions 3 to 12. The 10-character PAN of the registrant, read out in the result.
- Position 13. The entity digit, 1 to 9 or A to Z.
- Position 14. The letter Z by default.
- Position 15. The checksum character.
How the checksum is recomputed
- 1Map
Each of the first 14 characters becomes a base-36 value: 0 to 9, then A to Z as 10 to 35.
- 2Weight
Values are multiplied by an alternating factor of 1 and 2.
- 3Sum
The quotient and remainder of each product divided by 36 are added up.
- 4Check
The expected character is 36 minus the sum mod 36, taken mod 36.
When the check fails, the result says why: wrong length, a character out of pattern, or a checksum mismatch. On a mismatch it shows the expected check character, which usually points straight at the typo.
Garbage in, garbage out. If data integrity is weak, machine generated variance analysis will be compromised.
Jemma EwinCEO & Co‑Founder · Global CFOJemma Ewin, CEO & Co‑Founder · Global CFOWho it is for: AP and AR teams onboarding Indian vendors and customers, and anyone keying a GSTIN onto an invoice. A passing check means the number is well formed. Whether it is live and registered is a question for the GST portal search. The page is published in English.
Further reading
Questions
Does a valid checksum mean the GSTIN is registered?
No. It means the number is internally consistent. Use the search taxpayer tool on the GST portal to confirm an active registration.
Can I read the PAN from a GSTIN?
Yes. Characters 3 to 12 are the PAN of the registered person, and the validator shows them.
Does it accept lower case or spaces?
Yes. Spaces are stripped and letters are upper-cased before the check runs.
Is the GSTIN sent anywhere?
No. The check is a pure calculation that runs in the page.
