Free tool · India
GSTIN validator
Paste a GSTIN to check its 15-character format, state code, embedded PAN and check digit. It catches typing mistakes before they end up on an invoice or a return.
FreeNo sign-upRuns in your browser
What a GSTIN is made of
The Goods and Services Tax Identification Number is 15 characters long. Reading left to right:
- Characters 1 to 2: the state or Union Territory code (27 is Maharashtra, 29 is Karnataka, 07 is Delhi).
- Characters 3 to 12: the PAN of the taxpayer: five letters, four digits and a letter. The fourth letter of the PAN says what kind of holder it is, for example P for an individual, C for a company, F for a firm or LLP, H for a Hindu undivided family.
- Character 13: how many registrations that PAN holds in the state, counted 1 to 9 and then A to Z.
- Character 14: always Z.
- Character 15: a check character computed from the other 14.
How the check digit works
Letters and digits are given values from 0 to 35 (0 to 9, then A to Z as 10 to 35). Walking through the first 14 characters, each value is multiplied by 1 in odd positions and by 2 in even positions. Each product is split into its quotient and remainder when divided by 36, and these are added together. The 15th character is the one whose value is (36 − total mod 36) mod 36. A single mistyped character, or two characters swapped, will almost always break this check.
What this tool cannot tell you
Passing the format and check digit means the number is well formed. It does not mean the GSTIN was ever issued, that it is still active, or that it belongs to the business in front of you. Before you claim input tax credit or issue a B2B invoice to a new customer, confirm the registration on the GST portal. The GST invoice format page lists where the buyer’s GSTIN belongs on a tax invoice.
Common questions
What is the format of a GSTIN?
A GSTIN has 15 characters. The first two are the state code, the next ten are the PAN of the taxpayer, the 13th is the number of registrations the same PAN holds in that state (1 to 9, then A to Z), the 14th is always Z, and the 15th is a check digit.
How is the GSTIN check digit worked out?
Each of the first 14 characters is given a value (0 to 9, then A = 10 up to Z = 35). Values in odd positions are multiplied by 1 and values in even positions by 2. Each product is divided by 36, and the quotient and the remainder are added up. The check character is the one whose value equals (36 minus the total modulo 36) modulo 36.
Does a valid result mean the GSTIN is active?
No. This tool checks the format and the check digit only. A GSTIN can pass both and still be cancelled, suspended or never issued. To confirm that a registration is active, and to see the legal name and status, use “Search Taxpayer” on the GST portal (gst.gov.in).
Which state codes does it accept?
It accepts the state and Union Territory codes from 01 to 38. Codes 97 (other territory) and 99 (centre jurisdiction) are used for special cases and are not accepted here. Code 25 is the older code for Daman and Diu, which now sits under 26, so a GSTIN starting with 25 may be an old registration.
Why does a GSTIN I copied fail the check?
The usual causes are a typing slip, the letter O in place of the digit 0 (or I in place of 1), a missing or extra character, or a space or hyphen picked up when copying. The tool strips spaces and hyphens and turns letters into capitals, so check for the others.
Is the GSTIN I enter stored or sent anywhere?
No. The check runs in your browser. Nothing is saved or sent, and this site has no analytics.
Keep every customer’s GSTIN clean in Zebill
Zebill works out the tax on every line, keeps your invoices, stock and books in step, and has an AI assistant that enters your purchase bills. Free while in early access.