GSTIN validator and state code decoder
Check that a GST number is correctly formed, see which state issued it and read the PAN inside it. Sample GSTINs for testing are included.
How this GSTIN check works
It checks the pattern
A GSTIN always has 15 characters, in a fixed order. If one is out of place, the tool tells you which.
It reads the state
The first two digits are a state code: 27 is Maharashtra, 07 is Delhi, 29 is Karnataka. A code that no state uses means the number is wrong.
It pulls out the PAN
Characters 3 to 12 are the PAN of the business. The tool shows it and tells you whether it belongs to a person, a company, a firm or another kind of holder.
It tests the last character
The 15th character is worked out from the first 14 with a fixed formula. If any character is mistyped, the last one no longer fits, and the tool shows what it should have been.
It stops there
A correctly formed GSTIN can still belong to nobody, or to a business whose registration was cancelled. Only a live check can say whether it is active.
GSTIN format, character by character
Using the sample GSTIN 27ABCPS1234F1ZX.
| Position | Type | What it means | In the sample |
|---|---|---|---|
| 1 and 2 | Digits | The state or union territory code | 27 (Maharashtra) |
| 3 to 12 | PAN | The 10-character PAN of the business or its owner | ABCPS1234F |
| 13 | Digit or letter | Which registration this is for that PAN in that state: 1 for the first, 2 for the second, then letters after 9 | 1 |
| 14 | Letter | Always Z | Z |
| 15 | Digit or letter | A check character worked out from the first 14 | X |
GST state codes
| First two digits | State or union territory |
|---|---|
01 | Jammu and Kashmir |
02 | Himachal Pradesh |
03 | Punjab |
04 | Chandigarh |
05 | Uttarakhand |
06 | Haryana |
07 | Delhi |
08 | Rajasthan |
09 | Uttar Pradesh |
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 |
28 | Andhra Pradesh (old code) |
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 |
97 | Other territory |
99 | Centre jurisdiction |
Questions about GSTINs.
What is a dummy GSTIN I can use for testing?
Use 27ABCPS1234F1ZX. It has a real state code, a correctly shaped PAN and the right check character, so it passes strict validators. For other states, use 07ABCPS1234F1ZZ for Delhi or 29ABCCS1234F1ZK for a company in Karnataka.
Many dummy GSTINs copied from the web fail the check character, which is why some forms reject them. These samples are made up for testing your own forms and code. Do not put them on an invoice or a return.
What is the format of a GSTIN?
A GSTIN has 15 characters: a 2-digit state code, the 10-character PAN of the business, one character that counts registrations, the letter Z and one check character. For example, in 27ABCPS1234F1ZX the state is 27, the PAN is ABCPS1234F, the registration count is 1 and the check character is X.
GSTIN stands for Goods and Services Tax Identification Number.
What do the first two digits of a GSTIN mean?
They are the code of the state or union territory where the business is registered. For example, 07 is Delhi, 09 is Uttar Pradesh, 24 is Gujarat, 27 is Maharashtra, 29 is Karnataka, 33 is Tamil Nadu and 36 is Telangana. The full list is in the table above.
A business that works in several states has a separate GSTIN for each one, all built on the same PAN.
How do I find the PAN from a GSTIN?
Take characters 3 to 12. Every GSTIN has the PAN of the business inside it, straight after the state code. In 27ABCPS1234F1ZX the PAN is ABCPS1234F.
The 4th letter of that PAN tells you the kind of holder: P for a person, such as a sole proprietor, C for a company, F for a firm or LLP.
How is the last character of a GSTIN worked out?
It is calculated from the first 14 characters, so a single typing mistake changes it. The steps are:
- Turn each character into a number: 0 to 9 stay as they are, A is 10, B is 11, up to Z which is 35.
- Multiply the numbers by 1 and 2 in turn: the first by 1, the second by 2, the third by 1 and so on.
- Divide each result by 36 and add the quotient to the remainder.
- Add all 14 answers together and find the remainder when the total is divided by 36.
- Subtract that from 36. If you get 36, use 0. Turn the number back into a character.
How do I check if a GSTIN is genuine and active?
A format check is the first step, and a live lookup is the second. The format check on this page catches mistyped and made-up numbers. It cannot tell you whether the registration exists today.
Anyone can look up one GSTIN at a time on the government's GST portal. To check many, or to do it inside your own software, businesses use a GST verification API, which returns the status, the legal name and whether returns are being filed.
Does this tool send the GSTIN anywhere?
No. The check runs inside your browser. The GSTIN you type is not sent to us, to the GST portal or to anyone else.
More free tools
Say yes with confidence.
Tell us what you need to verify. A person replies, not a bot.