Free tool for India
GSTIN validator for one number or a whole list.
Check a GST number’s format and check character, and see its state and PAN. Paste a list or open a file to check thousands at once, then download the result. Whether a GSTIN is active is for the GST portal to say.
- Format and check character
- Bulk check, CSV export
- Nothing is sent or saved
GSTIN validator
How a GSTIN is built.
What the official texts say about the 15 characters, and who gets a number that doesn’t follow the pattern.
A GSTIN has 15 characters: the first 2 are the state code, the next 10 are the PAN of the legal entity, the next 2 are an entity code, and the last is a check sum.
Source: GST Council, “Registration under GST Law”, checked 17 Oct 2026
Registration is PAN based and state specific: a supplier registers in each state or union territory it supplies from.
Source: GST Council, “Registration under GST Law”, checked 17 Oct 2026
A person with more than one place of business in a state may be granted a separate registration for each, so one PAN can hold several GSTINs in one state.
Source: CGST Act 2017, s.25(2), proviso, checked 17 Oct 2026
A PAN is needed for registration, but a person who deducts tax under section 51 (TDS) may have a TAN instead.
Source: CGST Act 2017, s.25(6), proviso, checked 17 Oct 2026
On the GST portal, a TDS applicant without a PAN selects TAN and enters it.
Source: GST portal FAQs, tax deductor, checked 17 Oct 2026
A non-resident taxable person doesn’t need a PAN: a passport number, or the tax identification number of their own country, will do.
Source: GST portal FAQs, non-resident taxable person, checked 17 Oct 2026
UN bodies, embassies and other notified persons get a Unique Identity Number (UIN). GSTN gives its pattern as 22YYAAA99999UIN: state code, year, country code, a five-digit serial, then UIN (or ONP for another notified person).
Source: GSTN, FAQs on registration (part 2), checked 17 Oct 2026
The GST system’s state code list gives 01 to 38 for the states and union territories, 97 for “Other Territory”, and 96 and 99 for “Other countries”.
Source: E-invoice system, master codes, checked 17 Oct 2026
A tax invoice must show the supplier’s GSTIN, and the recipient’s GSTIN or UIN when the recipient is registered.
Source: CGST Rules 2017, rule 46(a) and (d), checked 17 Oct 2026
The GST portal’s Search Taxpayer takes a GSTIN, UIN or PAN and shows the legal name, trade name, date of registration, taxpayer type and the GSTIN’s status, so you can check a GSTIN is genuine.
Source: GSTN, Welcome Kit for New Businesses, §3.4, checked 17 Oct 2026
One GSTIN, step by step.
27AAPFU0939F1ZV, a sample from python-stdnum’s test cases, taken apart and its check character worked out.
- State codeMaharashtra
- 27
- PAN, characters 3–124th letter F
- AAPFU0939F
- Entity code and 14th character
- 1 Z
- Odd places, × 12 + 10 + 25 + 30 + 9 + 9 + 1
- 86
- Even places, × 214 + 20 + 30 + 0 + 6 + 30 + 35
- 135
- Total, and what’s left ÷ 36
- 221 → 5
- Check character36 − 5 = 31 = V
- V
Digits count as themselves and letters as A = 10 to Z = 35. A product of 36 or more adds its quotient and remainder: Z is 35, 35 × 2 = 70 = 1 × 36 + 34, so it adds 1 + 34 = 35. The 15th character given is V, so the check passes.
A sample used in open-source tests, not a business we know of. A passing check says nothing about whether a GSTIN is registered or active.
What it does not check.
Look these up on the GST portal’s Search Taxpayer before you rely on a GSTIN.
Whether the GSTIN is active
A valid format doesn’t mean the GSTIN was ever issued, or that it hasn’t been cancelled.
Search Taxpayer shows the GSTIN’s status and its date of cancellation, if any.
Source: GSTN, Welcome Kit for New Businesses, §3.4, checked 17 Oct 2026
Who it belongs to
The number doesn’t carry a name. A real GSTIN copied onto someone else’s invoice passes every check here.
Search Taxpayer shows the legal name and trade name of the business behind a GSTIN.
Source: GSTN, Welcome Kit for New Businesses, §3.4, checked 17 Oct 2026
Return filing
Whether a supplier files its returns isn’t in the number. Search Taxpayer shows a return filing table.
Whether the PAN exists
The tool checks that characters 3–12 have a PAN’s shape: five letters, four digits, a letter. It can’t tell whether the Income Tax Department issued that PAN.
UINs, non-resident and TDS registrations
They follow other patterns. The tool marks them “not a regular GSTIN” instead of passing or failing them.
A non-resident taxable person may be granted registration on the basis of documents other than a PAN.
Source: CGST Act 2017, s.25(7), checked 17 Oct 2026
Very large files
Files up to 5 MB are read in your browser. The table shows the first 500 rows; the CSV download has every row.
More GST and compliance tools.
Work out GST, check a GSTIN, see whether e-invoicing or an e-way bill applies, and keep the due dates. And the tools that go with this one.
GSTIN questions people ask.
How do I check whether a GSTIN is valid?
In two steps. First the format: 15 characters with a state code, a PAN, an entity code and a check character that adds up, which this tool checks. Then whether it is real and active: search it on the GST portal’s Search Taxpayer.
What does each part of a GSTIN mean?
The first two digits are the state code. The next ten characters are the holder’s PAN. The 13th and 14th are an entity code: in practice a number for each registration under that PAN in the state, then Z. The 15th is a check character.
How is the GSTIN check digit calculated?
No official text gives the method. Open-source checkers use Luhn mod 36: each of the first 14 characters becomes a number (0–9, then A = 10 to Z = 35), every second one is doubled, each product adds its quotient and remainder by 36, and the check character is what brings the total to a multiple of 36.
Can I find the PAN from a GSTIN?
For a regular GSTIN, yes: characters 3 to 12 are the PAN. A TDS deductor may be registered with a TAN instead, and a non-resident may have no PAN at all.
Why does one business have more than one GSTIN?
Registration is state by state, so a business has a GSTIN in each state it supplies from. Within a state it can also take a separate registration for each place of business.
Does a valid result mean the GSTIN is active?
No. It means the number is built correctly and its check character adds up. Only Search Taxpayer on the GST portal shows whether a GSTIN is active or cancelled, and whose it is.
Is what I type saved or sent anywhere?
No. Every check, including a file you open, runs in your browser. Nothing is sent, stored or tracked by the tool.
Does PrimoERP use the GSTINs on my invoices?
Yes. PrimoERP puts GST on every invoice and sets the place of supply from your GSTIN and your customer’s, then applies CGST and SGST or IGST.
— the PrimoERP team
Come for a free ERP demo. We'll show you your business on one screen.
your business, on one screen, in one sitting.
Bring your questions and a rough idea of how you work today. We set up a demo for a business like yours and walk through it with you.
- Set up for your industry
- Online, at a time you pick
- No card, no contract