Search tools...
utility-tools

GSTIN Validator: Complete Guide to GST Number Format, Structure, State Codes & Validation in 2026

Understand every character of a GSTIN, verify checksum, and avoid costly GST compliance errors.

11 min readUpdated March 19, 2026GSTIN, GST, Tax India, Validation

India's Goods and Services Tax system runs entirely on a 15-character alphanumeric identifier called the GSTIN — Goods and Services Tax Identification Number. Every business registered under GST gets a unique GSTIN, and this number appears on every invoice, every tax return, every e-way bill, and every GST credit transaction in the country. If a GSTIN is wrong — even by a single character — the receiving business cannot claim Input Tax Credit (ITC), the invoice becomes non-compliant, and both parties risk GST notices.

This comprehensive guide explains exactly how a GSTIN validator works, breaks down all 15 characters of the GSTIN structure, lists all 37 state and UT codes, explains how the checksum algorithm detects errors without a database query, and walks you through what to do when you encounter a GSTIN that fails validation. Whether you're an accountant, a business owner, a developer building billing software, or just someone who wants to verify a vendor's GST number before paying an invoice, this guide covers everything you need.

Free Tool

Validate Any GSTIN Format Instantly — Free

Use ToolsArena's GSTIN Validator to verify the format, state code, embedded PAN, and checksum of any GSTIN in under a second. No signup, no data storage.

Validate GSTIN Now

What is GSTIN and Why Must Every Business Have One?

The Birth of GST and GSTIN

India rolled out the Goods and Services Tax on July 1, 2017 — one of the most significant tax reforms in the country's history. GST replaced a complex web of Central and State taxes (VAT, CST, Service Tax, Excise Duty, etc.) with a unified tax structure. As part of this, every business that crosses the GST registration threshold is assigned a GSTIN — a unique, state-specific identifier that tracks all their GST-related activity.

Think of GSTIN as a business's "tax address." It tells you exactly which state the business operates from, what type of taxpayer it is, and links it to the PAN of the proprietor, company, or entity. Every B2B transaction in India is tied to GSTINs — the buyer's and the seller's.

Who Needs a GSTIN?

  • Businesses with annual turnover above ₹40 lakh (goods) or ₹20 lakh (services) — these thresholds vary for some states
  • Inter-state suppliers of goods or services (regardless of turnover)
  • E-commerce operators and sellers on platforms like Amazon, Flipkart, Meesho
  • Input Service Distributors (ISDs)
  • Casual taxable persons and Non-Resident Taxable Persons (NRTPs)
  • Businesses required to pay tax under Reverse Charge Mechanism (RCM)
ITC at Risk: If you pay an invoice from a supplier whose GSTIN is invalid or whose GST registration has been cancelled, you cannot claim Input Tax Credit on that purchase. The GST portal will reject your ITC claim. Always validate a supplier's GSTIN before finalising a purchase order.

What Happens If You Don't Validate?

ScenarioConsequenceWho Gets Hurt
Wrong GSTIN on outbound invoiceInvoice invalid; buyer cannot claim ITCYour buyer
Wrong supplier GSTIN in GSTR-2BITC claim mismatch; GST noticeYou
Fake GSTIN from vendorITC denied; penalty under Section 74You
Cancelled GSTIN supplierNo ITC; potential fraud reportYou
Wrong state code in GSTINWrong tax apportionment (IGST vs CGST/SGST)Both parties

Breaking Down the 15-Character GSTIN Structure

The Complete GSTIN Anatomy

A GSTIN is always exactly 15 characters long — no more, no less. Each position carries specific, encoded information. Let's decode a real-looking GSTIN: 27ABCPK7896L1ZE

GSTIN Format: [2 digits — State Code] + [10 chars — PAN of Entity] + [1 digit — Registration Number within State] + [1 letter — Default 'Z'] + [1 char — Checksum]

Character-by-Character Breakdown

PositionValueMeaningExample
1–227State/UT code (Maharashtra = 27)27
3–12ABCPK7896LPAN of the registered taxpayer (exactly 10 chars)ABCPK7896L
131Entity number — same PAN can register in same state multiple times (1 = first registration)1
14ZReserved character — always 'Z' by default in current GST systemZ
15EChecksum character — computed from the first 14 charactersE

Key Observations

Position 13 (Entity Number): This is a digit from 1 to 9, then A, B, C, etc. (up to 35). Most businesses have '1' here. A business with multiple registrations under the same PAN in the same state would have 2, 3, etc. This handles scenarios like large companies with multiple business verticals registered separately in the same state.

Position 14 (Reserved 'Z'): Currently always 'Z' in the production system. Some older test GSTINs and system-generated test numbers use other characters here, which is why validators check for 'Z' specifically.

Position 15 (Checksum): This is the computed check character, derived using a modified Luhn-type algorithm. A validator uses this to instantly catch typos without any database call. We cover this in detail in the checksum section.

Quick Validation Rule: The PAN embedded in a GSTIN (positions 3–12) must itself be a valid PAN. So if GSTIN validation fails, it might be because the embedded PAN is invalid. Check both the GSTIN format AND the PAN within it.

All 37 State and UT Codes with Two-Digit Prefixes

The Complete State Code Reference Table

The first two digits of any GSTIN identify the Indian state or Union Territory where the business is registered. There are 37 unique codes — 28 states and 8 Union Territories (one UT has two codes due to bifurcation history). Memorising these is useful when doing quick manual checks.

CodeState / UTCodeState / UT
01Jammu & Kashmir20Jharkhand
02Himachal Pradesh21Odisha
03Punjab22Chhattisgarh
04Chandigarh (UT)23Madhya Pradesh
05Uttarakhand24Gujarat
06Haryana25Daman & Diu (UT, now merged)
07Delhi (NCT)26Dadra & Nagar Haveli (UT)
08Rajasthan27Maharashtra
09Uttar Pradesh28Andhra Pradesh (new)
10Bihar29Karnataka
11Sikkim30Goa
12Arunachal Pradesh31Lakshadweep (UT)
13Nagaland32Kerala
14Manipur33Tamil Nadu
15Mizoram34Puducherry (UT)
16Tripura35Andaman & Nicobar Islands (UT)
17Meghalaya36Telangana
18Assam37Andhra Pradesh (Seemandhra)
19West Bengal38Ladakh (UT)
97Other Territory99Centre Jurisdiction

Why the State Code Matters for Tax Compliance

The state code in a GSTIN determines how taxes flow between the Centre and the State. Here's why it's critical:

  • Intra-state supply: If buyer and seller are in the same state, CGST + SGST is levied. The SGST goes to that state's government.
  • Inter-state supply: If buyer and seller are in different states, IGST is levied. The Centre then apportions this between origin and destination states.
  • Wrong state code error: If a supplier from Maharashtra (27) uses a GSTIN with Karnataka state code (29), IGST will be charged when CGST+SGST should apply — creating a tax credit mismatch.
State Code Mismatch: If the state code in a vendor's GSTIN doesn't match their business address, it's a red flag. Either the GSTIN is wrong, or they're billing from a different registered office. Clarify before proceeding.

How the GSTIN Checksum Algorithm Works

Why Checksums Matter

The 15th character of a GSTIN is a computed checksum. This allows anyone to verify that a GSTIN is structurally valid without accessing any government database. It's the same principle used in credit card numbers (Luhn algorithm), ISBN book numbers, and bank account IBANs — a mathematical relationship between all the other characters and the last one.

The GSTIN Checksum Algorithm — Explained Simply

The GST portal uses a modified base-36 checksum (GST Check Digit Algorithm). Here's how it works, in plain English:

  1. Each of the first 14 characters is converted to a number. Letters A=10, B=11, ... Z=35. Digits 0–9 stay as 0–9.
  2. Each number is multiplied by a position-specific factor (the factors alternate in a defined pattern).
  3. All products are summed up, then divided by 36.
  4. The remainder of that division maps back to a character (0→'0', 1→'1', ..., 10→'A', 11→'B', etc.).
  5. That character is the valid checksum — it must match the 15th character of the GSTIN.
What this means in practice: Our GSTIN validator performs this exact computation in your browser — no server call needed. If you accidentally swap two characters, or type one wrong letter, the checksum won't match and the validator will tell you immediately.

What the Checksum CAN and CANNOT Detect

Error TypeDetected by Checksum?Explanation
Single character substitution (e.g., 'A' → 'B')Yes (almost always)Changes the checksum computation result
Transposition of two adjacent charactersYes (usually)Position-specific factors catch most transpositions
Missing or extra character (length error)YesTotal length must be exactly 15
Completely fabricated GSTIN with correct checksumNoChecksum only validates structure, not existence
Cancelled/suspended GSTINNoRequires database lookup on GST portal
GSTIN of a different stateNoWrong state code passes checksum if rest is consistent
Pro Tip for Developers: If you're building billing or accounting software, implement GSTIN checksum validation as a client-side check before allowing form submission. This eliminates the most common data entry errors and reduces load on the GST API.

Common GSTIN Errors and How to Fix Them

The Most Frequent GSTIN Mistakes

After analyzing thousands of GSTIN validation failures, here are the most common issues:

Error 1: Invalid State Code

The first two digits must be a valid state/UT code from 01 to 38 (or 97, 99). Codes like 00, 39–96, 98 are invalid. This happens when someone types the state code incorrectly or uses a made-up number.

Error 2: Invalid Embedded PAN

The characters at positions 3–12 must form a valid PAN. If the 4th character of that embedded PAN (6th character of the GSTIN) is not one of the 10 valid PAN type codes (A, B, C, F, G, H, J, L, P, T), the GSTIN is invalid.

Error 3: Wrong Length

Exactly 15 characters required. Common issues:

  • Only 14 characters entered (missing the checksum character)
  • 16+ characters (space or extra character accidentally included)
  • GSTIN copied with a trailing hyphen or slash from a document

Error 4: Lowercase Letters

GSTINs use uppercase letters throughout. Any lowercase letter will fail validation immediately.

Error 5: Position 14 is Not 'Z'

The 14th character must always be 'Z' in the current GST system. If it's any other character, the GSTIN is either invalid or from a test environment.

ErrorExampleFix
Invalid state code (00)00ABCPK7896L1ZEConfirm correct state code from business address
Lowercase27abcpk7896l1zeConvert all to uppercase
14 chars only27ABCPK7896L1ZCheck if checksum character is missing
Position 14 not Z27ABCPK7896L1AEConfirm GSTIN from original registration certificate
Wrong checksum27ABCPK7896L1ZXLikely typo — re-enter from source document
Systematic Error Alert: If a business consistently sends you GSTINs that fail checksum validation, they may be generating fake invoices. Under GST law, knowingly accepting invoices with fraudulent GSTINs can make you liable for the tax evaded. Report suspicious patterns to your CA or to the GST helpdesk.

GSTIN vs GSTIN Verification vs GST Registration — What's the Difference?

Three Things People Confuse Constantly

These three terms sound similar but are completely different steps in the GST ecosystem. Let's clear the confusion once and for all.

1. GSTIN (The Number Itself)

GSTIN is the 15-character identifier assigned when a business completes GST registration. It's static — once assigned, it doesn't change (though the status can change if registration is cancelled or suspended).

2. GSTIN Format Validation (Structure Check)

This is what our tool does — checks if the 15-character string follows the correct format: valid state code, valid embedded PAN, 'Z' in position 14, correct checksum. This is a pure offline, mathematical check. It tells you if the GSTIN could be real — not whether it actually IS registered.

3. GSTIN Verification (Database Check)

This is done on the GST portal (gst.gov.in → Search Taxpayer). It queries the GST database to confirm: business name, registration status (active/cancelled/suspended), state, and filing history. This is the definitive check before dealing with any new supplier.

FeatureFormat ValidatorGST Portal Verification
SpeedInstant2–5 seconds
Internet neededNoYes
Confirms GSTIN existsNoYes
Shows business nameNoYes
Shows registration statusNoYes (Active/Cancelled)
Shows filing complianceNoYes (last filed return)
PrivacyHigh (offline)Medium (GSTIN sent to GST API)
Best Practice Workflow: (1) Format validate using ToolsArena → (2) Database verify on gst.gov.in → (3) Check that the business name matches your invoice → (4) Optionally check their last return filing date to confirm they are filing-compliant before issuing large ITC claims.

When You Need to Validate Someone Else's GSTIN

Supplier Due Diligence: The ITC Protection Guide

As a buyer, your Input Tax Credit depends entirely on your supplier's GST compliance. The GST law makes it crystal clear: if your supplier has collected GST from you but not deposited it with the government, you bear the risk of ITC reversal. This has prompted the Income Tax Department and GST authorities to issue several circulars emphasizing supplier verification.

When MUST You Validate a Supplier's GSTIN?

  • New supplier onboarding: Before placing the first purchase order
  • High-value purchases: Before any transaction above ₹2.5 lakh
  • Quarterly review: For all major suppliers — their registration status may have changed
  • Before filing GSTR-3B: Reconcile supplier GSTINs against GSTR-2B data
  • When GSTR-2A mismatch occurs: If a supplier's invoice doesn't appear in your GSTR-2A, verify their GSTIN immediately

The Reverse: When Customers Validate Your GSTIN

Your customers will — and should — validate your GSTIN. Make sure your GSTIN is:

  1. Printed correctly on all invoices (exact 15-character format, uppercase)
  2. Active (not cancelled or suspended) — check monthly on gst.gov.in
  3. Matching your registered state (if you're in Maharashtra, your GSTIN starts with 27)
  4. Filing-compliant — customers check if you've been filing GSTR-1 regularly, as that determines if their ITC will show up in GSTR-2A/2B
The 2% Rule for Missing ITC: If your supplier's tax is not deposited and doesn't appear in your GSTR-2B, the GST law allows you to claim ITC provisionally — but only up to a certain percentage of the matched credit. Cross-verification of GSTINs is the first step in ensuring clean ITC.

Tools for GSTIN Verification at Scale

For businesses with hundreds of suppliers, manual verification is impractical. Use these approaches:

  • GST Suvidha Provider (GSP) APIs: Bulk GSTIN verification via authorized providers
  • Tally, Zoho Books, SAP: Most modern accounting software has built-in GSTIN validation on the supplier master
  • GSTN's own bulk search: The GST portal allows searching up to 10 GSTINs at once on the Search Taxpayer page

How to Use the Tool (Step by Step)

  1. 1

    Enter the GSTIN

    Type the full 15-character GSTIN into the validator field. The tool accepts both uppercase and lowercase input and normalizes automatically.

  2. 2

    Click Validate GSTIN

    Hit the "Validate GSTIN" button. The tool instantly checks: state code validity, embedded PAN format, position 14 "Z" check, and checksum computation — all without any API call.

  3. 3

    Review the Breakdown

    The validator displays: the state name (from the 2-digit code), the embedded PAN, the entity registration number, and whether the checksum is valid.

  4. 4

    Cross-Check State Code

    Confirm the state in the GSTIN matches the supplier's business address on the invoice. A Maharashtra supplier should have 27 as the prefix.

  5. 5

    Verify on GST Portal for Full Confirmation

    For new suppliers or high-value transactions, go to gst.gov.in → Search Taxpayer and enter the GSTIN to confirm it is active, the business name matches, and they are filing-compliant.

Frequently Asked Questions

Can two businesses have the same GSTIN?+

No. GSTIN is unique to each business registration. However, one PAN can have multiple GSTINs — one for each state they are registered in, and multiple registrations within the same state (differentiated by position 13). But the full 15-character GSTIN is always unique.

My supplier's GSTIN passes format validation but the GST portal says "No Records Found." Why?+

Format validation only checks the structural pattern. "No Records Found" on the GST portal means either (a) the GSTIN was never registered in the GST database, (b) the registration has been cancelled and removed, or (c) there is a very recent registration not yet propagated. Request the supplier's GST registration certificate and compare the GSTIN exactly.

Is it legal to operate without a GSTIN if my turnover is below the threshold?+

Yes, businesses below the threshold (₹40 lakh for goods, ₹20 lakh for services, with lower thresholds for some states and special category states) are not required to register. However, they cannot charge GST or issue tax invoices, and they cannot claim ITC. They may voluntarily register if they wish.

What does it mean when a GSTIN shows "Cancelled" on the GST portal?+

A cancelled GSTIN means the business is no longer registered under GST. This can happen voluntarily (business closed, turnover fell below threshold) or compulsorily (GST authorities cancelled due to non-compliance). You should not accept GST invoices from a cancelled GSTIN holder — ITC will be denied.

Can an NRI or foreign company get a GSTIN?+

Yes. Non-Resident Taxable Persons (NRTPs) and foreign companies supplying to India can get a temporary GSTIN for the period of their taxable activity. These GSTINs have specific state codes and are valid only for the duration of their registration period.

The 14th character of a GSTIN I received is not Z — is it fake?+

Almost certainly invalid. In the production GST system, position 14 is always "Z". The only exceptions are test environment GSTINs used by GST Suvidha Providers and government agencies for integration testing. If a real supplier gives you a GSTIN with position 14 ≠ Z, it is either a typo or a fabricated number.

How do I find out which state code corresponds to my state?+

Use the table in this guide — all 37 state and UT codes are listed. Alternatively, check your GST registration certificate or look at the "Search Taxpayer" page on gst.gov.in where the state name is displayed alongside the GSTIN.

Does GSTIN change when a company changes its name or address?+

No. GSTIN does not change when a company changes its name or registered address within the same state. However, if a business opens a new place of business in a different state, they need a new (additional) GSTIN for that state. If they shift their principal place of business from one state to another, they need to cancel the old GSTIN and obtain a new one for the new state.

Free — No Signup Required

Validate Any GSTIN Format Instantly — Free

Use ToolsArena's GSTIN Validator to verify the format, state code, embedded PAN, and checksum of any GSTIN in under a second. No signup, no data storage.

Validate GSTIN Now

Related Guides