GSTIN Format and Validation: What Each of the 15 Characters Means
A GSTIN has 15 characters: state code, PAN, entity number, the letter Z and a check character. Here is what each one means, the full state code list, and how to check a GSTIN before you put it on a bill.
Every business registered under GST in India gets a GSTIN — a 15-character Goods and Services Tax Identification Number. It appears on every tax invoice, and when you sell to another business, their GSTIN goes on your bill too. A wrong GSTIN can cost the buyer their input tax credit, so it pays to know how the number is built and how to spot a mistake.
The 15 characters at a glance
| Position | What it is | Example (27ABCDE1234F1Z5) |
|---|---|---|
| 1–2 | State code of the registration | 27 = Maharashtra |
| 3–12 | PAN of the business or owner | ABCDE1234F |
| 13 | Entity number: which registration this is for the same PAN in that state | 1 = first registration |
| 14 | The letter Z for regular taxpayers | Z |
| 15 | Check character, worked out from the first 14 | 5 |
The example above is only to show the layout — it is not a real business.
1. State code (characters 1 and 2)
The first two digits show the state or union territory where the business is registered. They always have two digits, so Delhi is 07, not 7. The state code also decides how GST is charged on a sale: when the seller’s and the buyer’s state codes match, the bill shows CGST + SGST; when they differ, it shows IGST.
| 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 and Nagar Haveli and Daman and 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 |
Code 25 (Daman and Diu) is no longer used since the 2020 merger with Dadra and Nagar Haveli, which uses 26. Code 28 belonged to Andhra Pradesh before the state was divided; Andhra Pradesh now uses 37.
2. PAN (characters 3 to 12)
The next ten characters are the PAN of the business or proprietor. A PAN always has five letters, four digits and one letter — for example ABCDE1234F. So characters 3–7 must be letters, 8–11 digits and 12 a letter. If that pattern breaks, the GSTIN is wrong.
3. Entity number (character 13)
One PAN can hold more than one GST registration in the same state — for example, two business verticals. The 13th character counts them: 1 for the first registration, 2 for the second, and after 9 it continues with letters A to Z.
4. The letter Z (character 14)
For regular taxpayers the 14th character is Z. If you see anything else in this position on an ordinary business’s GSTIN, check the number again.
5. Check character (character 15)
The last character is calculated from the first 14 using a fixed formula, so it catches most typing mistakes — a swapped digit or a wrong letter changes what the check character should be. It can be a digit or a letter.
How to check a GSTIN before you put it on a bill
- Count the characters. It must be exactly 15, with no spaces.
- Read the state code. Is it one of the codes in the table, and is it the state you expect for that customer or supplier?
- Check the PAN part. Five letters, four digits, one letter.
- Look at character 14. For a regular business it should be Z.
- Confirm it is active. The pattern only tells you the number is well-formed. To be sure the registration is real and active, use Search Taxpayer on the official GST portal (gst.gov.in), which shows the legal name and status.
Watch out for look-alike characters when someone reads a GSTIN out over the phone: 0 and O, 1 and I, 5 and S, 8 and B.
Check a GSTIN here — free
Type or paste a GSTIN below. Our free checker tests steps 1 to 4 and the check character in one go, and shows what each part means. It only checks the format — step 5 on the GST portal is still needed.
Why it matters for your shop
- Your customers’ input tax credit. A business buyer can claim GST credit only if their correct GSTIN is on your invoice and in your GST return.
- The right tax on the bill. The state code decides CGST + SGST or IGST. Charging the wrong one means correcting the bill later.
- Clean GST returns. Wrong GSTINs on B2B bills show up as mismatches when your buyers reconcile their purchases.
How RetailCore helps
In RetailCore, a business customer’s GSTIN is saved with the customer, so you type it once and it appears on every bill to them. When the customer is from another state, RetailCore applies IGST by itself. Your own GSTIN, the state of supply and the tax breakup print on every invoice, and GSTR-1 and GSTR-3B reports are ready from the same bills.
Frequently asked questions
Is a GSTIN the same as a GST number?
Yes. “GST number”, “GSTIN” and “GST registration number” all mean the same 15-character number.
Can I find a business’s PAN from its GSTIN?
Yes — characters 3 to 12 of the GSTIN are the PAN.
Does a correct format mean the business is genuine?
No. A well-formed number can still be cancelled or belong to someone else. Always confirm on the GST portal’s Search Taxpayer page for new suppliers and large business customers.
Why does the same company have different GSTINs in different states?
GST registration is state-wise. A company registered in Maharashtra and Karnataka has two GSTINs, one starting with 27 and one with 29, with the same PAN in the middle.
See how RC One handles this
One store, one or more billing counters.

