GSTIN checker: validate & decode a GST number
Paste a GSTIN, or a whole list, to check its check character, state code and the PAN inside it. A mistyped number shows the check character its first 14 characters call for. Everything is worked out from the number itself: the GST portal isn’t asked, so this can’t tell you whether a number is registered or active.
What this GSTIN checker does
A GSTIN (Goods and Services Tax Identification Number) is the 15-character number every GST-registered business in India prints on its invoices. It isn’t a random string: the first two digits are the state, the next ten are the holder’s PAN, then come a registration count, a type letter and, last, a check character worked out from the other fourteen. That structure means a lot can be checked from the number alone.
Paste one GSTIN and you get it taken apart field by field: the state or union territory, the PAN and what its fourth letter says about the holder (individual, company, firm or LLP, HUF, trust and so on), which registration it is for that PAN in that state, and whether the check character matches. If it doesn’t, the page shows the check character the first 14 characters call for, so you can see straight away whether the last character was simply mistyped.
Paste a list (from an invoice register, a vendor master or a purchase report) and every number gets a status in one table, with a count of valid, invalid and repeated numbers and a CSV download of the results.
Why use it
Check character verified
The mod-36 checksum GSTN uses, recomputed from the first 14 characters. A mismatch shows the character those 14 call for.
Decoded part by part
State or union territory, the PAN and its holder type, the registration count and the type letter, each labelled and coloured.
Whole lists at once
Up to 500 numbers from a register or vendor master: a status per row, counts of valid, invalid and repeated numbers.
Errors spelled out
Wrong length, stray characters, an unknown state code, a PAN letter where a digit belongs, a 14th character that isn’t Z: each said plainly.
CSV download
Every decoded field and problem for each number, ready for Excel or Google Sheets.
Special numbers handled
TDS deductors with a TAN, e-commerce operators, UINs for embassies and UN bodies, and foreign online service suppliers.
What the 15 characters mean
| Characters | Part | What is checked |
|---|---|---|
| 1–2 | State code | One of the GST state and territory codes: 01 Jammu and Kashmir to 38 Ladakh, plus 97 Other Territory and 99 Centre Jurisdiction. 26 is the merged Dadra and Nagar Haveli and Daman and Diu; 25 (Daman and Diu) is accepted with a note, since its taxpayers were given new numbers starting 26 from August 2020. 28, undivided Andhra Pradesh, predates GST and is rejected: Andhra Pradesh GSTINs start 37. |
| 3–12 | PAN | Five letters, four digits, a letter, and a fourth letter that is a real PAN holder type: P individual, C company, H HUF, F firm or LLP, A association of persons, T trust, B body of individuals, L local authority, J artificial juridical person, G government. |
| 13 | Registration number | How many registrations this PAN has in this state: 1 to 9, then A to Z for the 10th to the 35th. Never 0. |
| 14 | Type | Z for regular registrations. D marks a tax deductor (TDS, section 51) and C an e-commerce operator collecting tax (TCS, section 52); both are recognised. |
| 15 | Check character | Must equal the character computed from the first 14 (a mod-36 checksum, explained below). |
How to use it
- Paste or type a GSTIN in the box. Lower case is fine, and so are spaces or hyphens inside it (29 ABCPZ 0000A 1ZA): they are removed. A leading “GSTIN:” label is ignored.
- Or paste a list, one number per line, or separated by commas, semicolons or spaces. Up to 500 numbers are checked at once; blank lines are skipped.
- Read the result. The page checks as you type. One number gets a card with each part labelled and coloured; a list gets a table. Problems are spelled out (“character 9 should be a digit, not O”), not just flagged.
- Fix a typo. If only the check character disagrees, the card shows what it should be. If the letter O or I sits where a digit belongs (or 0 or 1 where a letter belongs) and swapping them gives a valid number, it offers that number.
- Keep or share it. Copy link gives a link that reopens the same check (lists of up to 100 numbers). Download CSV saves a list’s results, one row per number with every decoded field, for a spreadsheet.
- Confirm registration on the GST portal. A number can be perfectly formed and still be cancelled, suspended or never issued. The result links to the portal’s Search Taxpayer page for that.
How the check character works
Each of the 36 characters 0–9 and A–Z gets a value from 0 to 35. The first 14 characters are multiplied alternately by 1 and 2, starting with 1. Each product is split into its two base-36 digits (the product divided by 36, and the remainder), and all of those are added up. The check character is whatever brings the total up to a multiple of 36. It is the Luhn algorithm (the one on credit card numbers) carried over from base 10 to base 36.
Because every character’s contribution changes when the character changes, any single mistyped character is caught: in this tool’s own test, every one of the 35 possible wrong characters at every one of the 15 positions failed the check. Swapping two neighbouring characters is caught too, with one exception the checksum can’t see (0 next to Z); the format rules catch that one. What the check can’t catch is two characters swapped with one between them, since those positions carry the same weight: the format rules stop some of those, but not all.
Special numbers
Not every GSTIN is a PAN with a state code in front. This checker knows these other layouts and doesn’t reject them:
- TDS deductors
- Government departments and others deducting tax under section 51 have D as the 14th character. Characters 3–12 may be a TAN (four letters, five digits, a letter) instead of a PAN; both are accepted.
- E-commerce operators (TCS)
- C as the 14th character, with a PAN in characters 3–12.
- UIN holders
- Embassies, consulates and UN bodies get a Unique Identity Number: state code, 2-digit year, 3-letter country code, 5-digit serial, then UN (or ON for other notified persons) and a check character.
- Foreign online service suppliers (OIDAR)
- The same layout with OS as the type, under state code 99.
When a number follows the digits-first layout with some other type code, or has a 14th character other than Z, D or C but a correct check character, the result says format not checked rather than invalid: the check character shows it is very unlikely to be a typo, and the rules for that registration type aren’t published.
What it can’t tell you
Everything here is worked out from the characters you paste. The GST portal isn’t asked: its taxpayer search needs a captcha for each lookup, and its API is only open to registered GST Suvidha Providers. So this tool can’t say whether a number is registered, active, cancelled or suspended, or whose it is. A number that passes every check here may still not exist. For status, legal name and filing history, use the portal’s Search Taxpayer page.
Who it’s for
For accounts teams
Check suppliers’ GSTINs before booking purchase invoices, so input tax credit isn’t lost to a typo.
For businesses billing B2B
Check a customer’s GSTIN before an invoice goes out, so it lands in their GSTR-2B.
For CAs and tax consultants
Clean a client’s vendor master in one paste and hand back a CSV of what needs fixing.
For developers
See exactly why a number fails while building or testing your own GSTIN validation.
Frequently asked questions
Does this check whether a GSTIN is registered or active?
No. It checks the number’s format and check character, offline: the GST portal isn’t asked. A well-formed number can still be cancelled, suspended or never issued. For the registration status and the legal name, use the GST portal’s Search Taxpayer page.
Why doesn’t it look the number up on the GST portal?
The portal’s taxpayer search asks for a captcha on every lookup, and its API is only available to GST Suvidha Providers with their own keys. So this tool only reads what the number itself can tell.
What is the 15th character of a GSTIN?
A check character computed from the first 14 with a mod-36 version of the Luhn algorithm. It exists to catch typing mistakes: change any one character and the check no longer matches.
The check character is wrong. Is the last character the typo?
Not necessarily. The check character only says that something in the number is wrong, not where. The page shows the check character the first 14 characters call for: if those 14 match the invoice or the supplier’s registration certificate, the last character was the mistake. Otherwise one of the others is.
Does a valid check character mean there is no typo?
Almost always, but not always. Any single wrong character and any swap of two neighbouring characters are caught. Two characters swapped with one in between (say 1234 typed as 3214) leave the check character unchanged, and two separate mistakes get past the check character about 3 times in 100, though the format rules stop most of those.
Which state codes does it know?
01 to 38, except 28 (undivided Andhra Pradesh, which predates GST), plus 97 Other Territory and 99 Centre Jurisdiction. 26 is Dadra and Nagar Haveli and Daman and Diu. 25, the old Daman and Diu code, is accepted with a note, because its taxpayers were given new GSTINs starting 26 from 1 August 2020. 38 is Ladakh and 37 Andhra Pradesh.
What does the 13th character mean?
How many registrations the same PAN holds in that state: 1 for the first, up to 9, then A for the 10th through Z for the 35th. A business with branches registered separately in one state gets 1, 2, 3 and so on.
Why is the 14th character usually Z?
Z is the default for regular registrations. Tax deductors under section 51 have D there, and e-commerce operators collecting tax under section 52 have C. This checker accepts all three. Another letter with a correct check character is shown as “format not checked” rather than wrong.
Does it work for UINs, OIDAR and TDS registrations?
Yes. UINs (embassies, consulates, UN bodies) and foreign online service suppliers (OIDAR) have a different layout: state code, year, country code, serial number and a two-letter type, then the check character. TDS deductors may have a TAN where the PAN would be. All are decoded and their check character verified.
How many numbers can I check at once?
Up to 500 per paste; anything past that is left out and counted. Copy link works for lists of up to 100 numbers (longer ones make links too long), and Download CSV for any list.
Are the numbers I paste stored?
They are sent to this site’s server to be checked, like any form, and not looked up anywhere else. See the privacy policy for what the site may log.
Read the full story: One wrong character in a GSTIN can cost you the input tax credit: how the check character catches it, and what it misses (12 min read)
More India tools
- ITR JSON to Computation: Open the JSON of an Income Tax Return (ITR-1 to ITR-7) as readable tables, with each field explained from the official schema.
- LRS Remittance & TCS Calculator: The most foreign currency (USD, EUR, GBP and more) you can send abroad from an INR account once TCS, GST and bank commission are paid, keeping a cash buffer behind.
- Is NSE / BSE Open Now?: Is NSE / BSE open right now?
- Indian Income Tax Calculator: New vs Old Regime, Firm, LLP & Company: Income tax for FY 2020-21 to 2026-27: yours under the new and old regime side by side, or a partnership firm’s, LLP’s or company’s, with MAT and 115BAA for companies.