Small Business

GSTIN Explained: How to Check a GST Number, Decode the State and Find Typing Errors

How a GSTIN is built, how the check character is calculated, what the state and PAN parts tell you and how to catch typing errors on invoices and returns.

Saizul Amin
Saizul Amin23 Oct 2026 · 3 min read
GSTIN Explained: How to Check a GST Number, Decode the State and Find Typing Errors

GSTIN Explained

Every business registered for GST in India has a 15-character Goods and Services Tax Identification Number, the GSTIN. It appears on invoices, e-way bills and returns, and a wrong GSTIN can block input tax credit. The GSTIN Checker tests a number and decodes its parts.

The 15 characters

A GSTIN such as 27AAPFU0939F1ZV is divided into five parts. The first two characters are the state or union territory code: 27 is Maharashtra, 29 Karnataka, 07 Delhi, 33 Tamil Nadu, and so on. The next ten characters are the PAN of the taxpayer, here AAPFU0939F. The thirteenth character is the number of the registration of the same PAN in that state: 1 for the first, 2 for the second, and letters after 9. The fourteenth character is Z by default. The fifteenth is a check character.

The check character

The last character guards against typing errors. To find it, convert the first 14 characters to numbers using the sequence 0 to 9 then A to Z (A is 10, Z is 35). Multiply the numbers at odd positions by 1 and at even positions by 2. Divide each product by 36 and add the quotient and the remainder. Add all the results. The check character is the character whose value is (36 minus the sum modulo 36) modulo 36. For 27AAPFU0939F1Z the result is V, so the number ends in V.

What the tool does

Paste GSTINs, one per line. The tool checks the length, the pattern, the state code and the check character. For a valid GSTIN it shows the state, the PAN inside, the entity number and the check character. For an invalid one it explains the problem and shows the expected check character. State codes from 01 to 38, except 25, and 97 and 99 are accepted. You can download the results as a spreadsheet.

What a pass does not mean

A GSTIN that passes is well formed, but it may not be registered, may be cancelled or may belong to another business than the one on the invoice. The check character is public, so anyone can make a number that passes. To confirm a supplier, use the "search taxpayer" function on the GST portal, which shows the legal name, the status and the date of registration.

The PAN inside

The tenth to the twelfth characters are the PAN, so the same PAN check applies. The fourth letter of the PAN shows the type of business: C for a company, F for a firm, P for an individual. This helps you to see that a "private limited" supplier has a company PAN. Our PAN validator on this site decodes it.

A worked example

27AAPFU0939F1ZV passes: Maharashtra, PAN AAPFU0939F, entity 1. 27AAPFU0939F1ZX fails because the check character should be V. 27AAPFU0939F1AV fails because the fourteenth character must be Z. 25AAPFU0939F1ZV fails because 25 is not a state code. A number with 14 characters fails on length.

Where it helps

Accountants who enter vendor details, developers who add a GSTIN field, auditors who clean master data and anyone who prepares returns. A wrong GSTIN on a supplier's invoice or in GSTR-1 can mean that the buyer cannot claim input credit, so checking before filing saves money and time.

Quick answers

What is the structure of a GSTIN? State code (2), PAN (10), entity number (1), Z and a check character.

How is the check character found? With a base-36 weighted sum of the first 14 characters.

Does a pass mean the GSTIN is active? No. Search the GST portal to confirm registration and status.

Which state codes are valid? 01 to 38 except 25, plus 97 and 99.

Can I check a list? Yes. Paste one GSTIN per line and download the results.

Is my data stored? No. It stays in your browser.

Limits

Format and check character only. It is not tax advice.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages