The GSTIN Validator confirms whether a 15-character Goods and Services Tax Identification Number is structurally valid and decodes every embedded field — the state code, the underlying PAN, the entity type and the check digit — using the same modulo-36 algorithm that the GSTN portal itself uses.
For anyone raising invoices, claiming input-tax credit, running vendor onboarding, or reconciling books of account, a quick structural check on the GSTIN saves hours of downstream trouble. This tool catches typos, transposed characters and outright fabricated numbers in a single keystroke.
Anatomy of a GSTIN
A GSTIN is 15 characters long and follows a strict alphanumeric pattern that encodes several attributes of the registered taxpayer.
- Digits 1–2 — State code as per the Indian Census 2011 (e.g. 27 = Maharashtra, 07 = Delhi, 29 = Karnataka)
- Digits 3–12 — The 10-character PAN of the entity or individual
- Digit 13 — Entity code within the same state on the same PAN (1 for the first registration, 2 for the second, and so on)
- Digit 14 — Always the letter Z (reserved for future use)
- Digit 15 — The check character computed by the modulo-36 algorithm over the first 14 characters
The modulo-36 checksum explained
The 15th character of a GSTIN is not arbitrary; it is a mathematical checksum designed to detect the vast majority of single-character typos and transposition errors. The validator implements it exactly as GSTN specifies.
Algorithm in plain language
- Map each of the first 14 characters to a value between 0 and 35 (0-9 for digits, 10-35 for A-Z)
- Multiply the value by 1 for characters at odd positions and by 2 for characters at even positions
- Convert each product back to its base-36 representation and add its digit values
- Take the sum modulo 36 and subtract from 36; the result mod 36 gives the check character index
- The final index maps back to a digit (0-9) or letter (A-Z)
Why validate a GSTIN?
- Ensure input-tax credit is not blocked because of an invalid supplier GSTIN
- Catch data-entry errors during vendor master creation
- Prevent GSTR-1 and GSTR-3B reconciliation mismatches
- Verify the state of registration before deciding CGST/SGST or IGST
- Confirm that a business claiming to be GST-registered actually holds a well-formed number
How to use the validator
- Step 1Paste or type the 15-character GSTIN. The input auto-converts to uppercase.
- Step 2The tool checks length, format, allowed character set and the modulo-36 checksum in real time.
- Step 3If valid, it shows the registered state, the embedded PAN, the entity type decoded from the 4th character of the PAN, and the verified check digit.
- Step 4If invalid, it names the exact step that failed — length, format, character set or checksum — so you can correct it.
What structural validation cannot tell you
A GSTIN can be well-formed and still be inactive, cancelled or suspended. Structural validation checks only the shape of the number, not its live registration status.
- For live status, use the official GST portal search facility
- For legal-name verification, compare against the certificate of registration
- For place-of-business verification, use the GSTIN details view on the GST portal
- For return-filing status, use the GSTR compliance history on the portal
