A GSTIN (Goods and Services Tax Identification Number) is the 15 character number every GST registered business gets. It goes on every tax invoice, and a buyer needs the seller's correct GSTIN to claim input tax credit. One wrong character on a B2B bill means the credit can go to the wrong number, so it is worth checking the GSTIN before you save a customer or file a return.
What this check can and cannot tell you
- It can tell you whether a GSTIN has the right shape, a real state code, a PAN in the right format and the right check character. Most typing mistakes, such as one wrong or swapped character, fail the check character.
- It cannot tell you whether the GSTIN was actually issued, whether it is active, suspended or cancelled, or whose it is. Only the GST portal knows that.
To verify a GSTIN with the government, open Search Taxpayer on the GST portal. It works without a login: choose Search by GSTIN/UIN, type the number and the captcha (GST portal user manual). It shows the registration details, including the legal name and whether the registration is active. Match the legal name with what your customer or supplier told you.
GSTIN format, character by character
CBIC describes the GSTIN as 15 characters: "The first 2 digits of the GSTIN is the State code, next 10 digits are the PAN of the legal entity, the next two digits are for entity code, and the last digit is check sum number" (CBIC registration flyer, last verified 11 November 2026). Here is how that looks on the sample 29ABCDE1234F1Z5:
| Position | Part | In the sample | Meaning |
|---|---|---|---|
| 1 to 2 | State code | 29 | The state or union territory where the business is registered. 29 is Karnataka. |
| 3 to 12 | PAN | ABCDE1234F | The PAN of the business or its owner: 5 letters, 4 digits, 1 letter. |
| 6 | PAN holder type | D | The 4th character of the PAN: P for an individual, C for a company and so on (table below). |
| 13 | Entity number | 1 | First half of the entity code. In practice, the count of registrations under this PAN in this state: 1 to 9, then A to Z. |
| 14 | Default Z | Z | Second half of the entity code. Z on a standard GSTIN. |
| 15 | Check character | 5 | Worked out from the first 14 characters, to catch typing mistakes. |
Is 29ABCDE1234F1Z5 a real GSTIN?
No. 29ABCDE1234F1Z5 is a made-up sample that shows the shape of a GSTIN; we use it on our own sample bills too. It is not a valid number, and the validator says so for two reasons:
- Its PAN part, ABCDE1234F, has D as the 4th character. D is not one of the PAN holder statuses the Income Tax Department lists.
- Its check character is 5, but for the first 14 characters (29ABCDE1234F1Z) it should be W.
Never put a sample GSTIN on a real bill. Use your own GSTIN from your GST registration certificate.
GST state codes
The first two digits are the GST state code. CBIC says a PAN based legal entity "would have one GSTIN per State", so a business registered in three states has three GSTINs, and the code tells you which one. Codes as listed in the master codes of the GST e-invoice system, last verified 11 November 2026 (source):
| Code | State or union territory |
|---|---|
10 | Bihar |
11 | Sikkim |
12 | Arunachal Pradesh |
13 | Nagaland |
14 | Manipur |
15 | Mizoram |
16 | Tripura |
17 | Meghalaya |
18 | Assam |
19 | West Bengal |
20 | Jharkhand |
21 | Odisha |
22 | Chhattisgarh |
23 | Madhya Pradesh |
24 | Gujarat |
25 | Daman and Diu |
26 | Dadra and Nagar Haveli and Daman and Diu |
27 | Maharashtra |
29 | Karnataka |
30 | Goa |
31 | Lakshadweep |
32 | Kerala |
33 | Tamil Nadu |
34 | Puducherry |
35 | Andaman and Nicobar Islands |
36 | Telangana |
37 | Andhra Pradesh |
38 | Ladakh |
96 | Other Countries |
97 | Other Territory |
99 | Other Countries |
01 | Jammu and Kashmir |
02 | Himachal Pradesh |
03 | Punjab |
04 | Chandigarh |
05 | Uttarakhand |
06 | Haryana |
07 | Delhi |
08 | Rajasthan |
09 | Uttar Pradesh |
Dadra and Nagar Haveli and Daman and Diu became one union territory in 2020. The master list still shows 25 as Daman and Diu and 26 as Dadra and Nagar Haveli; GSTINs for the merged union territory use 26. Codes 96, 97 and 99 are special codes in the GST system, not states.
PAN holder types (the 4th character of the PAN)
Characters 3 to 12 of a GSTIN are the holder's PAN. The Income Tax Department says "the fourth character of PAN represents the status of the PAN holder". That is the 6th character of the GSTIN. Its list, last verified 11 November 2026 (source):
| Letter | PAN holder |
|---|---|
P | Individual |
C | Company |
H | Hindu Undivided Family (HUF) |
F | Firm or Limited Liability Partnership (LLP) |
A | Association of Persons (AoP) |
T | Trust |
B | Body of Individuals (BOI) |
L | Local authority |
J | Artificial juridical person |
G | Government agency |
So a GSTIN with C in the 6th place belongs to a company, and one with F to a firm or LLP. A sole proprietor registers with their personal PAN, so their GSTIN has P there.
The 13th and 14th characters
The law calls characters 13 and 14 together the entity code. In practice the 13th character is the entity number: a business can hold more than one registration in the same state under one PAN, and the first one is 1, the next is 2, and after 9 it goes on with A to Z. So "1" means the first registration under this PAN in this state. It is never 0.
The 14th character is Z by default on a standard GSTIN. This validator flags any other letter there as not standard.
How the GSTIN check character works
The 15th character is the checksum, worked out from the first 14 so that a typing mistake is caught. The GST system does not publish the method. This validator uses the Luhn mod 36 method, the same one the open-source python-stdnum library uses, and it gave the right check character for every real GSTIN we tested from lists that banks publish on their own websites:
- Give each character a value: 0 to 9 keep their value, A is 10, B is 11 and so on up to Z, which is 35.
- Multiply the values by 1, 2, 1, 2 and so on, starting from the left.
- For each product, add its quotient and remainder when divided by 36 (70 becomes 1 + 34 = 35).
- Add all 14 results. The check value is 36 minus (the total mod 36), and 36 itself becomes 0.
- Turn the check value back into a character with the same table.
For 29ABCDE1234F1Z the 14 results add up to 184. 184 mod 36 is 4, and 36 minus 4 is 32, which is the letter W. That is why 29ABCDE1234F1ZW would pass this step and 29ABCDE1234F1Z5 does not.
Special GST registrations
This validator checks standard PAN-based GSTINs, the kind shops, traders, companies and service providers get. Standard GSTIN only: it does not check these special shapes, and may mark them as not valid:
- Tax deductors (TDS). The GSTIN can carry a TAN in place of the PAN: the rules allow "ten characters for the PAN or the Tax Deduction and Collection Account Number" (CBIC registration rules).
- UINs for UN bodies, embassies and other notified persons. CBIC gives their format as 22YYAAA99999UIN: state code, year, country code, a serial number and the letters UIN, with no PAN (CBIC registration FAQs).
- Non-resident taxable persons, who register on the basis of a passport or a foreign tax number instead of a PAN.
For these, check the number on the GST portal's Search Taxpayer page.
Add this customer in PaisaBill
Once a buyer's GSTIN checks out, save it so you never type it again. In PaisaBill, once your shop is set up as GST registered with its GSTIN (and not under composition), type the buyer's number in "Customer GSTIN (for B2B)" on the bill. PaisaBill checks the format and the check character as you type, works out the place of supply from the first two digits, and charges IGST when the buyer is in another state. The buyer's GSTIN prints on the tax invoice, and a saved customer's GSTIN fills in by itself on the next bill. It is free to use today. See what the GST billing app does, or how to set it up as a billing app for kirana shops.
Making a B2B bill for the first time? Read the GST invoice format field by field, or see how to add a customer to a bill.
Sources
Read on 11 November 2026:
- CBIC: Registration under GST (GSTIN format)
- CBIC: GST registration rules
- CBIC: FAQs on registration, part 2 (UIN format)
- GST e-invoice system: master codes (state codes)
- Income Tax Department: How PAN is formed
- GST portal: Search Taxpayer and its user manual
- python-stdnum: GSTIN check character (open source)
This tool is general guidance, not tax advice. A GSTIN that passes the check may still be cancelled or belong to someone else. Always confirm on the GST portal before you rely on it.