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.

This runs in your browser. Nothing you type is sent to us.

Try a sample:

Type a GSTIN above, or press a sample.

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.

PositionTypeWhat it meansIn the sample
1 and 2DigitsThe state or union territory code27 (Maharashtra)
3 to 12PANThe 10-character PAN of the business or its ownerABCPS1234F
13Digit or letterWhich registration this is for that PAN in that state: 1 for the first, 2 for the second, then letters after 91
14LetterAlways ZZ
15Digit or letterA check character worked out from the first 14X

GST state codes

First two digitsState or union territory
01Jammu and Kashmir
02Himachal Pradesh
03Punjab
04Chandigarh
05Uttarakhand
06Haryana
07Delhi
08Rajasthan
09Uttar Pradesh
10Bihar
11Sikkim
12Arunachal Pradesh
13Nagaland
14Manipur
15Mizoram
16Tripura
17Meghalaya
18Assam
19West Bengal
20Jharkhand
21Odisha
22Chhattisgarh
23Madhya Pradesh
24Gujarat
25Daman and Diu
26Dadra and Nagar Haveli and Daman and Diu
27Maharashtra
28Andhra Pradesh (old code)
29Karnataka
30Goa
31Lakshadweep
32Kerala
33Tamil Nadu
34Puducherry
35Andaman and Nicobar Islands
36Telangana
37Andhra Pradesh
38Ladakh
97Other territory
99Centre 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.

Say yes with confidence.

Tell us what you need to verify. A person replies, not a bot.