December 4, 2026  ·  6 min read

GSTIN Validator — Validate Indian GST Numbers (GSTIN) with State Code & Checksum

Finance India GST
Free Tool Available Try the GSTIN Validator — validate format, state code, PAN linkage, and official mod-19 checksum. Generate test GSTINs. No signup, runs in your browser.

What is a GSTIN?

GSTIN (Goods and Services Tax Identification Number) is a 15-character PAN-based unique identifier assigned to every GST-registered entity in India. It replaced the previous TIN/VAT registration numbers and is mandatory for businesses with turnover above the threshold limit.

GSTIN Structure

The 15 characters follow this format: SSPPPPPPPPPPEZC

PositionComponentLengthDescription
1–2State Code2 digitsState/UT code (01–38)
3–12PAN10 charsEntity's Permanent Account Number
13Entity Code1 char1–9 or A–Z (registration count)
14Default1 charAlways 'Z'
15Checksum1 charMod-19 check character

Example: 29AAAAA0000A1Z5 — Karnataka (29) + PAN (AAAAA0000A) + Entity 1 + Z + Checksum 5

Indian State Codes for GSTIN

The first 2 digits represent the state/union territory where the entity is registered:

CodeState/UTCodeState/UT
01Jammu & Kashmir20Jharkhand
02Himachal Pradesh21Odisha
03Punjab22Chhattisgarh
04Chandigarh23Madhya Pradesh
05Uttarakhand24Gujarat
06Haryana25Daman & Diu
07Delhi26Dadra & Nagar Haveli
08Rajasthan27Maharashtra
09Uttar Pradesh28Andhra Pradesh (old)
10Bihar29Karnataka
11Sikkim30Goa
12Arunachal Pradesh31Lakshadweep
13Nagaland32Kerala
14Manipur33Tamil Nadu
15Mizoram34Puducherry
16Tripura35Andaman & Nicobar
17Meghalaya36Telangana
18Assam37Andhra Pradesh (new)
19West Bengal38Ladakh

Mod-19 Checksum Algorithm

The 15th character is a checksum calculated using a weighted sum mod 19:

Weights: position 1=2, 2=3, 3=4, ..., 14=15
Values: 0-9 = 0-9, A-Z = 10-35
Sum = Σ(value[i] × weight[i]) for i=1 to 14
Remainder = Sum mod 19
Checksum Map: 0-9, A-I (A=10, B=11, ..., I=18)
What the Validator Returns
  • Valid/Invalid — passes all format, state code, PAN, and checksum checks
  • State — state/UT name and code
  • PAN — the embedded 10-character PAN
  • Entity Code — registration sequence (1–9, A–Z)
  • Checksum — expected vs actual

GSTIN Generator

Need test GSTINs for integration? The generator creates structurally valid GSTINs:

Important: Generated GSTINs are for testing only. They are not registered on the GST portal and cannot be used for real tax filings or invoicing.

Common Use Cases

Developers

Validate GSTIN in invoicing/billing software before API calls to GSTN.

Accountants

Quickly verify client GSTIN format before filing returns.

E-commerce

Validate vendor GSTIN during onboarding for TCS/TDS compliance.

Students

Understand GSTIN structure. Learn mod-19 checksum algorithm.

Related Tools