Before you claim input tax credit on a supplier's invoice, before you add a new B2B customer, and before you pay an advance to someone you met on a marketplace, one 15-character string is worth thirty seconds of attention: the GSTIN. This validator checks the format and the check digit of any GST number in your browser, decodes the state, the PAN behind it and the type of taxpayer, and tells you exactly which character is wrong when it does not add up — then links you to the GST portal to confirm the registration is actually active.
What the 15 characters mean
Take 27AAPFU0939F1ZV:
| Position | Value | Meaning |
|---|---|---|
| 1–2 | 27 | State code — 27 is Maharashtra, 07 Delhi, 09 Uttar Pradesh, 29 Karnataka, 33 Tamil Nadu, 24 Gujarat |
| 3–12 | AAPFU0939F | The PAN of the business |
| 6th character overall (4th of the PAN) | F | Type of holder — F firm/LLP, C company, P individual/proprietor, H HUF, T trust, A AOP, G government |
| 13 | 1 | Entity number: the first registration of that PAN in that state; a second branch registration would be 2, then 3…9, A…Z |
| 14 | Z | Fixed for every GSTIN |
| 15 | V | Check digit, computed from the previous fourteen characters |
Because the PAN sits inside the GSTIN, a supplier's GST number and their PAN must agree — a mismatch on an invoice is a reliable sign that something was typed wrong or invented.
The check digit
The last character is not decorative. Each of the first fourteen characters becomes a value (0–9, then A–Z as 10–35), multiplied alternately by 1 and 2; the quotient and remainder of each product on division by 36 are summed, and the check digit is whatever brings the total to the next multiple of 36. One mistyped character almost always breaks it, which is why this catches transpositions that look perfectly plausible. When the check fails, the tool shows the number with the correct final character so you can see whether it was a slip.
How to use it
- Paste the GST number from the invoice, the purchase order or the vendor form. Spaces, dashes and lower case are cleaned up automatically.
- Read the verdict. A valid number shows the state, the PAN, the taxpayer type and how many registrations that PAN holds in the state.
- If it fails, the message names the reason — wrong length, bad state code, malformed PAN, missing Z, or a check-digit mismatch.
- Click through to the GST portal's search to confirm the registration is active and matches the legal name on the invoice.
Need a dummy GSTIN for testing?
Developers building invoicing, ERP or billing software need GST numbers that pass validation without belonging to anyone. The generator on this page builds one for any state and taxpayer type: the state code is real, the PAN pattern is well formed, the 14th character is Z and the check digit is computed properly, so your validation logic accepts it — but the number is not a live registration and will return nothing on the GST portal.
Use them in test environments, seed data, screenshots and documentation. Do not put one on an invoice, a vendor form or a website footer: issuing a document with a GST number that is not yours is a misrepresentation, and the portal check takes ten seconds for anyone who wants to look.
If you only need a format example, 27AAPFU0939F1ZV is the one used in GST documentation.
Format valid is not the same as registered
This tool proves a number is well formed. It cannot tell you whether the registration exists, is active, is suspended or cancelled, or belongs to the business named on the invoice — only the GST portal can, and it is free. Do both checks for any new supplier, because input tax credit depends on the supplier actually filing. The wider verification routine, including what to do when a GSTIN turns out to be cancelled, is in How to verify a GST number (GSTIN).
When to check a GSTIN
- New supplier onboarding — before the first purchase order goes out.
- Every B2B invoice you receive: a wrong GSTIN on a purchase means the credit never appears in your GSTR-2B.
- Before invoicing a business customer — a wrong GSTIN costs them the credit and gets the bill returned. The GST invoice generator validates the field as you type.
- Marketplace and tender counterparties, and fake notices — scammers quote numbers that do not validate; see GST scam calls and fake notices.
Related tools
- GST invoice generator — invoices with GSTIN validation built in.
- HSN/SAC code finder — the other field auditors check.
- GST calculator — CGST/SGST or IGST from the place of supply.
- Purchase order — capture the supplier's GSTIN up front.
- GST filing calendar — when the credit actually lands.