WhatsApp to Tally is live today, not a waitlist. Free for 14 days.

GSTIN checker

Check whether a GST number is correctly formed: state code, PAN, entity number and check digit. Free, no sign-up, and it runs entirely in your browser.

15 characters. Spaces and dashes are ignored; it checks as soon as you have typed 15.

The result will appear here.

What this checks: the format and the check digit, offline, in your browser. Nothing you type is sent anywhere. It cannot tell whether a GSTIN is registered, active or cancelled; for that, use Search Taxpayer on the GST portal.

Check many GSTINs at once

Cleaning a supplier list before importing it into Tally? Paste the whole column and copy the results back as CSV.

Up to 500 at a time, for example a column copied from your supplier master.

Same rule as above: format and check digit only, checked in your browser. Registration status is on the GST portal.

What is a GSTIN?

A GSTIN (Goods and Services Tax Identification Number) is the 15-character number every business registered under GST in India gets. It is issued per state: a business with offices in Karnataka and Maharashtra holds two GSTINs, one for each state, built on the same PAN.

The GSTIN must appear on every tax invoice, for both the supplier and, on a B2B sale, the buyer. It is how the GST system matches the supplier’s outward supplies (GSTR-1) with the buyer’s inward supplies (GSTR-2B), which decides whether the buyer gets input tax credit.

People also call it a GST number or GST registration number. They mean the same thing.

GSTIN format: the 15 characters

Every GSTIN follows the same pattern: 2 digits, a 10-character PAN, one entity character, the letter Z, and a check digit.

PositionPartExampleMeaning
1–2State code29State or UT where this registration was taken (29 = Karnataka)
3–12PANABCPE1234FPAN of the registered person or business
13Entity number1Which registration this is for the same PAN in the same state (1–9, then A–Z)
14Fixed letterZZ for regular GSTINs
15Check digit7Worked out from the first 14 characters

Put together, the example reads 29ABCPE1234F1Z7. It is made up for this page and does not belong to any business.

How the GSTIN check digit works

The last character is calculated from the first 14 using a Mod-36 method. It exists to catch typing mistakes: change any single character and the check digit will almost always stop matching. The steps:

  1. Give each of the first 14 characters a value in base 36: digits 0–9 are 0–9, and letters A–Z are 10–35 (A = 10, B = 11 … Z = 35).
  2. Multiply the values by 1 and 2 alternately: position 1 by 1, position 2 by 2, position 3 by 1, and so on.
  3. For each product, add its quotient and remainder when divided by 36 (for 70, that is 1 + 34 = 35).
  4. Add up those 14 results.
  5. The check value is (36 − (sum mod 36)) mod 36. Turn it back into a character with the same table: 0–9 stay digits, 10–35 become A–Z.

Worked through for the example 29ABCPE1234F1Z:

Character29ABCPE1234F1Z
Value291011122514123415135
× factor12121212121212
Quotient + remainder2181022121514226430135

The sum is 173. 173 mod 36 is 29, and (36 − 29) mod 36 is 7, which is the character 7. So the full GSTIN is 29ABCPE1234F1Z7.

What the 4th PAN letter tells you

Characters 3 to 12 are the PAN, and the 4th letter of a PAN (the 6th character of the GSTIN) shows what kind of holder it belongs to. It is a quick sense check: a supplier invoicing as a private limited company should have a C there, not a P.

LetterHolder type
PIndividual (including a sole proprietor)
CCompany
HHindu Undivided Family (HUF)
FFirm or LLP
AAssociation of Persons (AOP)
TTrust
BBody of Individuals (BOI)
LLocal authority
JArtificial juridical person
GGovernment

GST state code list

The first two digits of a GSTIN are the state code. This is the full list of GST state and union territory codes. Codes 25 and 28 are older codes that still appear on GSTINs issued before the changes noted.

CodeState / UTType
01Jammu and KashmirUnion territory
02Himachal PradeshState
03PunjabState
04ChandigarhUnion territory
05UttarakhandState
06HaryanaState
07DelhiUnion territory
08RajasthanState
09Uttar PradeshState
10BiharState
11SikkimState
12Arunachal PradeshState
13NagalandState
14ManipurState
15MizoramState
16TripuraState
17MeghalayaState
18AssamState
19West BengalState
20JharkhandState
21OdishaState
22ChhattisgarhState
23Madhya PradeshState
24GujaratState
25Daman and DiuOld code; merged into 26 in 2020Union territory
26Dadra and Nagar Haveli and Daman and DiuUnion territory
27MaharashtraState
28Andhra Pradesh (before division)Old code; Andhra Pradesh now uses 37State
29KarnatakaState
30GoaState
31LakshadweepUnion territory
32KeralaState
33Tamil NaduState
34PuducherryUnion territory
35Andaman and Nicobar IslandsUnion territory
36TelanganaState
37Andhra PradeshState
38LadakhUnion territory
97Other TerritorySpecial
99Centre JurisdictionSpecial

Common GSTIN mistakes on bills

  • O and 0, I and 1, S and 5, B and 8. These look alike on a printed or scanned bill. The pattern helps: positions 1–2 and 8–11 are always digits, and positions 3–7 and 12 are always letters. The check digit catches most of the rest.
  • A GSTIN from another state. A supplier with branches in several states has a different GSTIN in each. If the bill came from their Chennai branch, the GSTIN should start with 33, not their head office’s code. The state code also decides whether the bill should carry IGST or CGST + SGST.
  • Buyer and supplier GSTINs swapped. On some bills the buyer’s GSTIN is printed in the supplier’s box, or the supplier repeats their own number in both places. Both GSTINs can be perfectly valid and the bill still wrong.
  • A missing or extra character. Usually a dropped digit in the PAN part. The length check shows it straight away.
  • A valid but cancelled GSTIN. The format can be perfect for a registration that has since been cancelled. Only the GST portal’s Search Taxpayer shows the current status.

How to verify a GST number is active

A valid format is the first step. To confirm the registration itself, use the government’s own search, which needs no login:

  1. Open Search Taxpayer on services.gst.gov.in and choose Search by GSTIN/UIN.
  2. Enter the GSTIN, fill in the captcha and search.
  3. Compare the legal name and trade name with the name on the bill, and check that the status reads Active. The page also shows the date of registration, the taxpayer type and recent return filing.

Run the format check here first: it saves a round trip to the portal for a number that has a typo in it, and the bulk mode lets you weed out the bad entries in a supplier list before checking the rest one by one.

Why the buyer GSTIN on a purchase bill matters

You can claim input tax credit only on bills issued to your GSTIN. If the supplier types your GSTIN wrong, or uses your other state’s number, the invoice is filed against someone else in their GSTR-1. It will not show up in your GSTR-2B, and the credit is not yours to claim until the supplier amends it.

That is why it is worth checking the buyer GSTIN on every purchase bill before it is entered, not at the end of the month when GSTR-2B does not match the books. The check digit catches typos; comparing the number with your own registration catches the rest.

The same check, on every bill

TaskAutomate reads purchase bills sent on WhatsApp or uploaded, and runs this check automatically on each one before posting it to Tally: the buyer GSTIN must pass the format and check-digit test and match your company’s, and the CGST, SGST or IGST on the bill must fit the supplier’s state code. You choose whether a bill that fails is flagged with a warning or held until someone reviews it.

See GST checks and invoice data extraction for how it works.

GSTIN checker questions

How do I check if a GSTIN is valid?

Type or paste the 15-character GSTIN into the checker at the top of this page. It confirms the length, the state code, the PAN inside it, the 13th and 14th characters and the check digit, and tells you in plain words what is wrong if any of these fail. The check runs in your browser; nothing is sent anywhere.

Can this tell me if a GSTIN is active or cancelled?

No. This checker only confirms that a GSTIN is correctly formed and that its check digit adds up. A correctly formed GSTIN can still be unregistered, suspended or cancelled. To see the registration status, legal name and filing details, use Search Taxpayer on the official GST portal (services.gst.gov.in).

What is the state code in a GSTIN?

The first two digits of a GSTIN are the state code of the state or union territory where that registration was taken, for example 29 for Karnataka, 27 for Maharashtra and 07 for Delhi. A business registered in three states has three GSTINs with three different state codes. The full list is in the state code table on this page.

What does the 13th character of a GSTIN mean?

The 13th character is the entity number: how many GST registrations the same PAN holds in that state. It is 1 for the first registration, 2 for the second, and so on up to 9, after which letters A to Z are used. It cannot be 0.

What is the check digit in a GSTIN?

The 15th character is a check digit calculated from the first 14 characters with a Mod-36 method. If any one character is mistyped, the check digit almost always stops matching, so a failed check digit usually means a typing mistake rather than a fake number.

Why is the 14th character of a GSTIN always Z?

The 14th character is currently Z for regular GSTINs. It is reserved by the GST system and carries no information about the business, so a GSTIN with any other letter or a digit in that place is mistyped.

Is the PAN inside a GSTIN the same as the business PAN?

Yes. Characters 3 to 12 of a GSTIN are the PAN of the business or person registered. The 4th letter of that PAN shows the holder type, for example P for an individual or proprietor, C for a company and F for a firm or LLP.

Stop retyping GSTINs into Tally.

TaskAutomate reads each purchase bill, checks the GSTINs and tax split, and posts the voucher into Tally for you.