GSTIN Format and Structure: What the 15 Characters Mean
Quick answer
A GSTIN has 15 characters. Rule 10 of the CGST Rules, 2017 sets them out: 2 characters for the state code, 10 characters for the PAN (or the TAN for tax deductors), 2 characters for the entity code and 1 checksum character. In practice, the 13th character numbers the registrations a PAN holds in that state, the 14th is the letter Z by default, and the 15th is a check character that catches typing errors. The format helps you spot mistakes, but only a GST portal search tells you whether the number is real and active.
- Length
- 15 characters (0–9, A–Z)
- Legal basis
- Rule 10(1), CGST Rules 2017
- Characters 1–2
- State code (e.g. 27 Maharashtra)
- Characters 3–12
- PAN (or TAN for tax deductors)
- Characters 13–14
- Entity code (13th number, 14th usually Z)
- Character 15
- Checksum
🏪 GSTIN Format & Structure फॉर्म खुद न भर पाएं तो नज़दीकी CSC (जन सेवा केंद्र) पर भरवाएं: CSC सेंटर देखें
The 15 characters, one by one
Take an illustrative GSTIN of the form 27ABCDE1234F1Z? (not a real number):
| Position | Example | Meaning | What to check |
|---|---|---|---|
| 1–2 | 27 | State code of the state/UT where the registration is held | Matches the supplier's state (27 = Maharashtra) |
| 3–12 | ABCDE1234F | PAN of the business (10 characters). Tax deductors registered under section 51 may use their TAN instead | Same as the business's PAN |
| 13 | 1 | Entity number – which registration this is for that PAN in that state (1 for the first; later ones get the next digit or letter) | A business with several registrations in one state has different 13th characters |
| 14 | Z | Second character of the entity code – Z by default for normal registrations | Usually Z |
| 15 | ? | Checksum – calculated from the first 14 characters | A single wrong character elsewhere usually makes it fail |
Rule 10 uses the term "entity code" for characters 13 and 14 together. The "13th = registration number, 14th = Z" description is how GSTINs are issued in practice.
GST state code list
The first two digits of a GSTIN identify the state or Union territory. This list follows the official GST state code list published by the Taxes Department, Government of Nagaland.
| 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 | 25 | Daman and Diu (July 2017 to 26 January 2020) |
| 07 | Delhi | 26 | Dadra and Nagar Haveli and Daman and Diu (merged UT) |
| 08 | Rajasthan | 27 | Maharashtra |
| 09 | Uttar Pradesh | 28 | Andhra Pradesh (before division) |
| 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 and Nicobar Islands |
| 17 | Meghalaya | 36 | Telangana |
| 18 | Assam | 37 | Andhra Pradesh (new) |
| 19 | West Bengal | 38 | Ladakh |
Code 25 was used for Daman and Diu until 26 January 2020, when it merged with Dadra and Nagar Haveli (code 26). Code 28 was Andhra Pradesh before the state's division; the new Andhra Pradesh uses 37 and Telangana 36.
Using the format to catch errors
A quick look at the structure catches most copying mistakes before you even search:
- Length: exactly 15 characters, no spaces.
- Positions 1–2 must be digits and a valid state code from the table above.
- Positions 3–7 letters, 8–11 digits, 12 a letter – the normal PAN pattern.
- Position 14 is usually Z. Anything else on a normal business invoice deserves a closer look.
- Look-alike characters: 0/O, 1/I, 5/S, 8/B and 2/Z are the usual culprits. Digits can only appear where digits belong, which helps you decide.
- Checksum: if one character is wrong, the 15th character usually no longer fits. The GST portal rejects such numbers.
Our GSTIN tool checks the format and checksum for free as you type – you only pay if you want the full ₹20 verification report.
What the format cannot tell you
A perfectly formed GSTIN can still be:
- Never issued (someone made it up using a real PAN and a valid checksum).
- Issued to a different business than the one using it.
- Suspended or cancelled.
- Registered in a different state from the one the supplier claims to bill from.
Always confirm with a live search on the GST portal's Search Taxpayer page. See how to verify a GST number.
GSTIN, UIN and other GST numbers
| Number | Who gets it | Notes |
|---|---|---|
| GSTIN | Every person registered under GST | 15 characters, PAN-based (TAN-based for tax deductors), one per registration |
| UIN (Unique Identity Number) | UN specialised agencies, multilateral financial institutions, foreign consulates and embassies, and other notified persons (section 25(9)) | Used mainly to claim refunds of tax on notified purchases; searchable on the same page as GSTIN |
| PAN | Issued by the Income Tax Department | Needed for GST registration (section 25(6)); forms characters 3–12 of the GSTIN |
Official links
These are official government websites and numbers. Apply and pay only here. Last checked: 4 October 2026
- GST Registration Rules (CBIC)Rules 8-26: GSTIN, certificate, cancellation
- GST State Code List (PDF)Taxes Department, Government of Nagaland
- GST Portal – Search Taxpayer (by GSTIN/UIN)Free official search, services.gst.gov.in
- GST Portal (GSTN)Registration, returns and taxpayer services
- CBIC – GSTCentral Board of Indirect Taxes and Customs
One-click reports: our paid tools
SarkariSewa India is a private website, not linked to any government department. The amount is our service fee, not a government fee; the same information is free on the official portal. Refund and service terms
Frequently asked questions
How many digits are in a GSTIN?
A GSTIN has 15 characters made of digits and capital letters: 2 for the state code, 10 for the PAN, 2 for the entity code and 1 checksum character, as set out in rule 10 of the CGST Rules, 2017.
What do the first two digits of a GSTIN mean?
They are the GST state code of the state or Union territory where the registration is held, for example 27 for Maharashtra, 07 for Delhi and 29 for Karnataka.
What is the 13th digit in a GSTIN?
It is the entity number for that PAN in that state. The first registration usually has 1, and further registrations of the same PAN in the same state get the next digit or letter.
Why is there a Z in every GSTIN?
The 14th character is part of the entity code and is Z by default for normal registrations.
What is the GST state code of Telangana and Andhra Pradesh?
Telangana is 36. Andhra Pradesh after division is 37; code 28 was used for Andhra Pradesh before the division.
Can a GSTIN format check prove that the number is active?
No. Format checking only catches structural and typing errors. Whether the GSTIN is registered and active must be checked on the GST portal's taxpayer search.
You may also like 👀
Most used by visitors right now