GSTIN Validator

Check a GSTIN's format and check digit, and decode its state code and embedded PAN

15 characters: state code, PAN, entity number, Z, check character.

Runs entirely in your browser. Nothing you type or upload is sent to us or stored. How we handle privacy

Format and checksum only. A GSTIN can pass every check here and still not be registered, or be cancelled or suspended. To see the legal name and whether it is active, use Search Taxpayer on the official GST portal.
Result
Type or paste a GSTIN to check it.
GST state codes (first two digits)
CodeState / UT
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
Old code: moved to 26 from 1 August 2020 after the merger
26Dadra and Nagar Haveli and Daman and Diu
Merged UT (since 26 January 2020)
27Maharashtra
28Andhra Pradesh (old)
Undivided Andhra Pradesh; not used for GSTINs, which use 37
29Karnataka
30Goa
31Lakshadweep
32Kerala
33Tamil Nadu
34Puducherry
35Andaman and Nicobar Islands
36Telangana
37Andhra Pradesh
38Ladakh
97Other Territory
Offshore areas outside any state, e.g. oil and gas fields
99Centre Jurisdiction
Used for some centrally administered registrations, e.g. foreign online service providers
Source: state code master on the GST e-invoice portal, checked October 2026.

Runs entirely in your browser. Nothing you type or upload is sent to us or stored.

Results are for general guidance. Please check anything important before relying on it. Terms of use

How to Use

  1. Type or paste the 15-character GSTIN from an invoice, quotation or supplier form. Spaces and lower-case letters are fine. Use Try an example to see a sample.
  2. The result updates as you type. A valid format means the length, state code, embedded PAN, entity number and the check character all add up.
  3. If something is wrong, the tool says which part. For a wrong last character it also shows what the check character should be, which usually points to a typo earlier in the number.
  4. See the state and the PAN inside the GSTIN, and use the state-code table below the tool to look up any code.
  5. To confirm the business is actually registered and active, search the GSTIN on the official GST portal (Search Taxpayer).

What a GSTIN validator checks

Every business registered under GST gets a 15-character Goods and Services Tax Identification Number (GSTIN). Before you put a supplier's GSTIN on a purchase entry, or a customer's GSTIN on a B2B invoice, it pays to catch typos. With a wrong GSTIN, the buyer may not see the invoice in GSTR-2B and can lose input tax credit. This GSTIN validator checks the structure and the built-in check character, all inside your browser.

It checks format and checksum only. It doesn't contact the GST Network, so it can't tell you whether the GSTIN is registered, active, cancelled or suspended, or what the business's legal name is. For that, use Search Taxpayer โ†’ Search by GSTIN/UIN on the official GST portal.

Structure of a GSTIN

PositionExample (27AAPFU0939F1ZV)Meaning
1โ€“227State code (27 = Maharashtra)
3โ€“12AAPFU0939FPAN of the business (4th letter F = firm)
131Entity number: the 1st registration under this PAN in this state (1โ€“9, then Aโ€“Z)
14Z"Z" by default
15VCheck character

A business with several registrations in the same state (for separate business verticals, say) gets 1, 2, 3 and so on in position 13. Special registrations, such as the UIN given to embassies and UN bodies, registrations of foreign online service providers, and tax deductors registered with a TAN, use different characters in positions 3โ€“14. The tool accepts these if the state code and check character are right, and tells you that the middle part isn't a PAN.

How the check character is calculated

The last character is computed from the first 14 with a mod-36 method similar to the Luhn algorithm used on card numbers:

value(c) = 0โ€“9 for digits, A=10 โ€ฆ Z=35
for i = 1 โ€ฆ 14: p = value(cแตข) ร— (1 if i is odd, 2 if i is even)
  sum += floor(p รท 36) + (p mod 36)
check = (36 โˆ’ sum mod 36) mod 36 โ†’ back to a character

Worked example: for 27AAPFU0939F1Z the products are 2, 14, 10, 20, 25, 30, 30, 0, 9, 6, 9, 30, 1 and 70 (Z = 35, doubled). Only 70 is 36 or more, and it counts as 1 + 34 = 35. The sum is 221; 221 mod 36 = 5; 36 โˆ’ 5 = 31, which is V. So 27AAPFU0939F1ZV is correct. Every character is weighted by its position, so a single wrong character anywhere changes the check character. If the last character doesn't match, there's almost always a typo somewhere earlier.

GST state codes worth knowing

CodeState / UTNote
26Dadra and Nagar Haveli and Daman and DiuDaman and Diu GSTINs (code 25) moved to 26 from 1 August 2020
36 / 37Telangana / Andhra Pradesh28 was undivided Andhra Pradesh and isn't used in GSTINs
38LadakhSeparate from Jammu and Kashmir (01)
97Other TerritoryAreas outside any state or UT, such as offshore installations
99Centre JurisdictionSome centrally administered registrations

The full list is in the table under the tool. Source: the state code master published on the GST e-invoice portal (einvoice1.gst.gov.in), checked October 2026.

Tips

  • The state code must match the state the supplier is registered in. If you're billed from a Karnataka address with a 27 GSTIN, ask why.
  • Characters 3โ€“12 should match the supplier's PAN. A mismatch with the PAN on their other documents is a red flag.
  • A valid format doesn't prove the business is real or active. Confirm on the GST portal before you pay GST to a new supplier.

Frequently Asked Questions

No. This tool checks only the format and the check character, in your browser. It doesn't contact the GST Network, so a GSTIN can pass here and still be cancelled, suspended or never issued. Use Search Taxpayer on gst.gov.in to see the legal name and registration status.

With a mod-36 checksum over the first 14 characters: each character's value (0-9, A=10 to Z=35) is multiplied by 1 or 2 depending on its position, the quotient and remainder of each product divided by 36 are added up, and the check value is (36 โˆ’ sum mod 36) mod 36, turned back into a digit or letter.

The state code of the state or UT where the business is registered. For example: 07 Delhi, 27 Maharashtra, 29 Karnataka, 33 Tamil Nadu, 36 Telangana and 37 Andhra Pradesh. The full list is in the table on this page.

26. After the two UTs merged in January 2020, GSTINs of Daman and Diu (code 25) were moved to code 26 from 1 August 2020. Code 25 is no longer used for new registrations.

A GSTIN is PAN-based: characters 3 to 12 are the PAN of the business. That's why one business has the same 10 characters in all its GSTINs across states, with only the state code, entity number and check character changing.

It counts the business's registrations under the same PAN in the same state: 1 for the first, 2 for the second, up to 9, and then A to Z.