GSTIN Verifier — Check a GST Number’s Format and Checksum

Enter a GSTIN to check its structure and check character, and see what each part means — the state, the PAN inside it and the registration number. Paste a list to check many at once.

BusinessRuns in your browser — nothing uploaded

Mode

Valid GSTIN format

What each part means
State code29Karnataka
PANAAACI4798LPAN of the business owner or entity
Entity number1Registration no. 1 for this PAN in this state
TypeZRegular taxpayer
Check characterUMatches the first 14 characters

This checks the structure and check character — it catches typos, but can’t tell you whether the GSTIN is active or who holds it. For that, use Search Taxpayer on the GST portal. Everything here runs in your browser; nothing is uploaded.

Validation code for developers
Language
const CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

// The 15th character, computed from the first 14
function gstinCheckChar(first14) {
  let sum = 0;
  for (let i = 0; i < 14; i++) {
    const p = CHARS.indexOf(first14[i]) * (i % 2 === 0 ? 1 : 2);
    sum += Math.floor(p / 36) + (p % 36);
  }
  return CHARS[(36 - (sum % 36)) % 36];
}

// State code + PAN (or TAN for TDS) + entity no. + Z/D/C + check character
const GSTIN_RE = /^[0-9]{2}([A-Z]{5}[0-9]{4}[A-Z][1-9A-Z][ZC]|[A-Z]{4}[0-9]{5}[A-Z][1-9A-Z]D)[0-9A-Z]$/;

export function isValidGstin(input) {
  const g = input.replace(/\s/g, "").toUpperCase();
  return GSTIN_RE.test(g) && gstinCheckChar(g.slice(0, 14)) === g[14];
}

How it works

  1. 1

    Splits it into parts

    State code (2 digits), PAN (10), entity number (1), a type letter (usually Z) and a check character.

  2. 2

    Checks the state code

    Flags codes that don’t exist, including retired ones like 25 (Daman and Diu, now 26).

  3. 3

    Recomputes the check character

    The 15th character is calculated from the first 14. If it doesn’t match, you’ll see what it should be — usually that means a typo.

  4. 4

    Handles TDS and TCS registrations

    Tax deductors are registered on a TAN (type D) and e-commerce operators collect TCS (type C) — both are recognised.

Questions, answered

No. It means the number is well-formed and has no typos. To confirm it’s active and see the legal name, use Search Taxpayer on the GST portal (services.gst.gov.in).

Popular uses

Read the guide