How a GSTIN is built
Every GST registration in India gets a 15-character Goods and Services Tax Identification Number:
| Characters | Meaning | Example (27AAPFU0939F1ZV) |
|---|---|---|
| 1–2 | State code | 27 = Maharashtra |
| 3–12 | PAN of the business or person | AAPFU0939F |
| 13 | Registration number under that PAN in the state (1–9, then A–Z) | 1 = first registration |
| 14 | "Z" by default | Z |
| 15 | Check digit, calculated from the first 14 characters | V |
The 4th character of the PAN shows the type of holder: P individual, C company, H HUF, F firm, T trust, and so on. The validator shows this for you.
How the check digit works
Each of the first 14 characters is turned into a number (0–9 stay as they are, A = 10 … Z = 35). Every second character is doubled; each product is split into its quotient and remainder by 36, and all of those are added up. The check digit is whatever brings the total to a multiple of 36. A single mistyped character or two swapped neighbouring characters almost always produce the wrong check digit, which is why this check catches most typos.
What this check can and can't tell you
- It can confirm the GSTIN is correctly formed, catch typos, and show the state and PAN inside it.
- It can't confirm that the registration exists, is active, or belongs to the business you're dealing with. A made-up number can still have a valid check digit.
- To verify a supplier before claiming input tax credit, use Search Taxpayer on the official GST portal (gst.gov.in), which shows the legal name, status and filing history.
State codes
| Code | State | Code | State |
|---|---|---|---|
| 07 | Delhi | 27 | Maharashtra |
| 09 | Uttar Pradesh | 29 | Karnataka |
| 19 | West Bengal | 32 | Kerala |
| 24 | Gujarat | 33 | Tamil Nadu |
| 06 | Haryana | 36 | Telangana |
| 08 | Rajasthan | 37 | Andhra Pradesh |
The validator knows every state and union territory code. To put a GSTIN on a bill, use the GST invoice generator, which reads the state from the GSTIN for you.
Frequently asked questions
How do I check if a GSTIN is valid?
What does each part of a GSTIN mean?
Can I find the PAN from a GSTIN?
Why does a GSTIN fail the check digit test?
Is my data sent anywhere?
Last updated . How we check our tools.