December 4, 2026 · 6 min read
GSTIN (Goods and Services Tax Identification Number) is a 15-character PAN-based unique identifier assigned to every GST-registered entity in India. It replaced the previous TIN/VAT registration numbers and is mandatory for businesses with turnover above the threshold limit.
The 15 characters follow this format: SSPPPPPPPPPPEZC
| Position | Component | Length | Description |
|---|---|---|---|
| 1–2 | State Code | 2 digits | State/UT code (01–38) |
| 3–12 | PAN | 10 chars | Entity's Permanent Account Number |
| 13 | Entity Code | 1 char | 1–9 or A–Z (registration count) |
| 14 | Default | 1 char | Always 'Z' |
| 15 | Checksum | 1 char | Mod-19 check character |
Example: 29AAAAA0000A1Z5 — Karnataka (29) + PAN (AAAAA0000A) + Entity 1 + Z + Checksum 5
The first 2 digits represent the state/union territory where the entity is registered:
| Code | State/UT | Code | State/UT |
|---|---|---|---|
| 01 | Jammu & Kashmir | 20 | Jharkhand |
| 02 | Himachal Pradesh | 21 | Odisha |
| 03 | Punjab | 22 | Chhattisgarh |
| 04 | Chandigarh | 23 | Madhya Pradesh |
| 05 | Uttarakhand | 24 | Gujarat |
| 06 | Haryana | 25 | Daman & Diu |
| 07 | Delhi | 26 | Dadra & Nagar Haveli |
| 08 | Rajasthan | 27 | Maharashtra |
| 09 | Uttar Pradesh | 28 | Andhra Pradesh (old) |
| 10 | Bihar | 29 | Karnataka |
| 11 | Sikkim | 30 | Goa |
| 12 | Arunachal Pradesh | 31 | Lakshadweep |
| 13 | Nagaland | 32 | Kerala |
| 14 | Manipur | 33 | Tamil Nadu |
| 15 | Mizoram | 34 | Puducherry |
| 16 | Tripura | 35 | Andaman & Nicobar |
| 17 | Meghalaya | 36 | Telangana |
| 18 | Assam | 37 | Andhra Pradesh (new) |
| 19 | West Bengal | 38 | Ladakh |
The 15th character is a checksum calculated using a weighted sum mod 19:
Weights: position 1=2, 2=3, 3=4, ..., 14=15
Values: 0-9 = 0-9, A-Z = 10-35
Sum = Σ(value[i] × weight[i]) for i=1 to 14
Remainder = Sum mod 19
Checksum Map: 0-9, A-I (A=10, B=11, ..., I=18)
Need test GSTINs for integration? The generator creates structurally valid GSTINs:
Validate GSTIN in invoicing/billing software before API calls to GSTN.
Quickly verify client GSTIN format before filing returns.
Validate vendor GSTIN during onboarding for TCS/TDS compliance.
Understand GSTIN structure. Learn mod-19 checksum algorithm.