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.
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.
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)
What Happens If You Don't Validate?
| Scenario | Consequence | Who Gets Hurt |
|---|---|---|
| Wrong GSTIN on outbound invoice | Invoice invalid; buyer cannot claim ITC | Your buyer |
| Wrong supplier GSTIN in GSTR-2B | ITC claim mismatch; GST notice | You |
| Fake GSTIN from vendor | ITC denied; penalty under Section 74 | You |
| Cancelled GSTIN supplier | No ITC; potential fraud report | You |
| Wrong state code in GSTIN | Wrong 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
Character-by-Character Breakdown
| Position | Value | Meaning | Example |
|---|---|---|---|
| 1–2 | 27 | State/UT code (Maharashtra = 27) | 27 |
| 3–12 | ABCPK7896L | PAN of the registered taxpayer (exactly 10 chars) | ABCPK7896L |
| 13 | 1 | Entity number — same PAN can register in same state multiple times (1 = first registration) | 1 |
| 14 | Z | Reserved character — always 'Z' by default in current GST system | Z |
| 15 | E | Checksum character — computed from the first 14 characters | E |
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.
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.
| Code | State / UT | Code | State / UT |
|---|---|---|---|
| 01 | Jammu & Kashmir | 20 | Jharkhand |
| 02 | Himachal Pradesh | 21 | Odisha |
| 03 | Punjab | 22 | Chhattisgarh |
| 04 | Chandigarh (UT) | 23 | Madhya Pradesh |
| 05 | Uttarakhand | 24 | Gujarat |
| 06 | Haryana | 25 | Daman & Diu (UT, now merged) |
| 07 | Delhi (NCT) | 26 | Dadra & Nagar Haveli (UT) |
| 08 | Rajasthan | 27 | Maharashtra |
| 09 | Uttar Pradesh | 28 | Andhra Pradesh (new) |
| 10 | Bihar | 29 | Karnataka |
| 11 | Sikkim | 30 | Goa |
| 12 | Arunachal Pradesh | 31 | Lakshadweep (UT) |
| 13 | Nagaland | 32 | Kerala |
| 14 | Manipur | 33 | Tamil Nadu |
| 15 | Mizoram | 34 | Puducherry (UT) |
| 16 | Tripura | 35 | Andaman & Nicobar Islands (UT) |
| 17 | Meghalaya | 36 | Telangana |
| 18 | Assam | 37 | Andhra Pradesh (Seemandhra) |
| 19 | West Bengal | 38 | Ladakh (UT) |
| 97 | Other Territory | 99 | Centre 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.
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:
- 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.
- Each number is multiplied by a position-specific factor (the factors alternate in a defined pattern).
- All products are summed up, then divided by 36.
- The remainder of that division maps back to a character (0→'0', 1→'1', ..., 10→'A', 11→'B', etc.).
- That character is the valid checksum — it must match the 15th character of the GSTIN.
What the Checksum CAN and CANNOT Detect
| Error Type | Detected by Checksum? | Explanation |
|---|---|---|
| Single character substitution (e.g., 'A' → 'B') | Yes (almost always) | Changes the checksum computation result |
| Transposition of two adjacent characters | Yes (usually) | Position-specific factors catch most transpositions |
| Missing or extra character (length error) | Yes | Total length must be exactly 15 |
| Completely fabricated GSTIN with correct checksum | No | Checksum only validates structure, not existence |
| Cancelled/suspended GSTIN | No | Requires database lookup on GST portal |
| GSTIN of a different state | No | Wrong state code passes checksum if rest is consistent |
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.
| Error | Example | Fix |
|---|---|---|
| Invalid state code (00) | 00ABCPK7896L1ZE | Confirm correct state code from business address |
| Lowercase | 27abcpk7896l1ze | Convert all to uppercase |
| 14 chars only | 27ABCPK7896L1Z | Check if checksum character is missing |
| Position 14 not Z | 27ABCPK7896L1AE | Confirm GSTIN from original registration certificate |
| Wrong checksum | 27ABCPK7896L1ZX | Likely typo — re-enter from source document |
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.
| Feature | Format Validator | GST Portal Verification |
|---|---|---|
| Speed | Instant | 2–5 seconds |
| Internet needed | No | Yes |
| Confirms GSTIN exists | No | Yes |
| Shows business name | No | Yes |
| Shows registration status | No | Yes (Active/Cancelled) |
| Shows filing compliance | No | Yes (last filed return) |
| Privacy | High (offline) | Medium (GSTIN sent to GST API) |
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:
- Printed correctly on all invoices (exact 15-character format, uppercase)
- Active (not cancelled or suspended) — check monthly on gst.gov.in
- Matching your registered state (if you're in Maharashtra, your GSTIN starts with 27)
- 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
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
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
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
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
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
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.
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 NowRelated Guides
How to Calculate GST in India — Formula, Examples & Calculator (2026)
Complete guide to calculating GST for any good or service in India — inclusive, exclusive, IGST, CGST, SGST.
TDS Calculator
Calculate TDS on salary, FD interest, rent, freelancing income, and property sale — know exactly how much is deducted and when.
Income Tax Calculator India 2025-26 — New vs Old Tax Regime
Complete guide to FY 2025-26 tax slabs, deductions, and which regime saves you more money.