GSTIN format explained
A breakdown of all 15 characters in a Goods and Services Tax Identification Number (GSTIN) and how GstFox verifies checksums.
Structure of the 15-character GSTIN
Every regular, composition, or casual taxpayer registered under Indian GST receives a unique 15-character alphanumeric GSTIN. Each position in the code carries specific information:
| Character positions | Length | Meaning | Example (36ABCDE1234F1Z5) |
|---|---|---|---|
1–2 | 2 digits | GST state or UT code (01 to 38, 97, 99) | 36 (Telangana) |
3–12 | 10 chars | Taxpayer's 10-character PAN (AAAAA9999A) | ABCDE1234F |
13 | 1 char | Entity number in that state (1–9, then A–Z) | 1 (first registration) |
14 | 1 char | Default fixed letter Z | Z |
15 | 1 char | Checksum character (0–9 or A–Z) | 5 (calculated check digit) |
Embedded PAN check (characters 3 to 12)
Characters 3 to 12 mirror the business's Income Tax Permanent Account Number (PAN):
- Characters 3–5: Alphabetic series (
A–Z). - Character 6: Entity type (
P= Individual/Proprietor,C= Company,F= Firm/LLP,H= HUF,T= Trust,A= AOP,B= BOI,G= Government). - Character 7: First letter of surname (for individuals) or entity name.
- Characters 8–11: Four digits (
0000to9999). - Character 12: Alphabetic check character.
How the 15th checksum character works
Typing a single wrong digit in a buyer's GSTIN can cause your GSTR-1 invoice to fail upload or credit the wrong taxpayer. To catch typos immediately, GSTN embeds a Mod-36 weighted checksum in the 15th character:
- Each of the first 14 characters is mapped to a number from
0to35(0–9=0–9,A–Z=10–35). - Even-indexed characters (positions 1, 3, 5, ..., 13) are multiplied by
1; odd-indexed characters (positions 2, 4, 6, ..., 14) are multiplied by2. - Each product is converted to base-36 digits (
Math.floor(product / 36) + (product % 36)), and those values are summed. - The check value is
(36 - (sum % 36)) % 36, mapped back to0–9orA–Z.
GstFox runs this exact check automatically whenever you leave the Seller GSTIN or Buyer GSTIN box, flagging typos before you export a PDF.
A valid checksum confirms the number has no typo, but does not verify live registration status. Before issuing large B2B invoices to a new customer, verify on the official GST portal (gst.gov.in) that their GSTIN is Active and not Cancelled or Suspended.
GST state codes reference
The first two digits identify the state jurisdiction of that registration:
| Code | State / UT | Code | State / UT |
|---|---|---|---|
01 | Jammu and Kashmir | 20 | Jharkhand |
02 | Himachal Pradesh | 21 | Odisha |
03 | Punjab | 22 | Chhattisgarh |
04 | Chandigarh | 23 | Madhya Pradesh |
05 | Uttarakhand | 24 | Gujarat |
06 | Haryana | 26 | Dadra & Nagar Haveli and Daman & Diu |
07 | Delhi | 27 | Maharashtra |
08 | Rajasthan | 29 | Karnataka |
09 | Uttar Pradesh | 30 | Goa |
10 | Bihar | 31 | Lakshadweep |
11 | Sikkim | 32 | Kerala |
12 | Arunachal Pradesh | 33 | Tamil Nadu |
13 | Nagaland | 34 | Puducherry |
14 | Manipur | 35 | Andaman and Nicobar Islands |
15 | Mizoram | 36 | Telangana |
16 | Tripura | 37 | Andhra Pradesh |
17 | Meghalaya | 38 | Ladakh |
18 | Assam | 97 | Other Territory |
19 | West Bengal | 99 | Centre Jurisdiction |
Common GSTIN mistakes on invoices
- Confusing
0(zero) withO(letter O), or1withI: Positions 1–2 and 8–11 are always digits; positions 3–7, 12, and 14 are always letters. - Using a 10-digit PAN instead of the 15-digit GSTIN: A PAN alone is not a valid GST registration number.
- Billing the buyer's headquarters GSTIN when goods are shipped to a branch in another state: Match the Bill-To GSTIN to the state registration claiming ITC, and verify Place of Supply rules.
Frequently asked questions
Can one PAN have multiple GSTINs?
Yes. Because a GSTIN is state-specific (digits 1–2 represent the state) and supports multiple business verticals or registrations within a state (character 13), a single company PAN can hold multiple distinct 15-digit GSTINs.
What does the letter Z in position 14 mean?
The 14th character of a standard GSTIN is always the letter 'Z' by default, reserved by GSTN for future use.
Does passing a checksum check prove a GSTIN is active?
No. Passing the regex and Mod-36 checksum test proves the number is structurally valid and free of typing errors. To confirm whether a GSTIN is currently active, cancelled, or suspended, use the official Search Taxpayer tool on gst.gov.in.
What is the difference between a GSTIN and a UIN?
A UIN (Unique Identity Number) is issued to embassies, UN bodies, and consulates for claiming tax refunds, and has a distinct format rather than a standard PAN-embedded business GSTIN.
Why does GstFox warn about state code 28 or 25?
State code 28 belonged to undivided Andhra Pradesh before Telangana (36) was carved out and Andhra Pradesh moved to code 37. Similarly, Daman and Diu (25) merged with Dadra and Nagar Haveli (26). Active GSTINs use the current codes.