GST Number Validator
Finance & Global IDsCheck if a GST number follows the correct 15-character format — state code, PAN, entity code, and checksum. Runs in your browser, no signup needed.
Reviewed by the thecalcu.com team · Last updated July 19, 2026
What is a GST?
A GST Number Validator checks whether a GSTIN (Goods and Services Tax Identification Number) conforms to the official 15-character format defined by the Goods and Services Tax Network (GSTN). GST was introduced in India on 1 July 2017 as a unified indirect tax, replacing a patchwork of central and state levies including VAT, service tax, and excise duty. Every business that registers under GST, mandatory above the prescribed turnover threshold, receives a unique GSTIN that identifies the taxpayer, their state, and their PAN.
A GSTIN is not a random identifier: each of its 15 characters carries specific meaning. The first two digits encode the state code (01–37), the next ten characters are the taxpayer's PAN number, the thirteenth character is an entity number for businesses with multiple registrations in one state, the fourteenth is always the letter Z, and the fifteenth is an alphanumeric checksum. A single character in the wrong position or character class makes the entire number invalid.
This validator checks the format of the GSTIN instantly as you type. It also breaks down each segment, telling you the state the number corresponds to, the embedded PAN portion, and the entity and checksum characters, so you can spot exactly where a typo occurred.
Important: format validation confirms the structure is correct; it does not verify that the GSTIN is currently registered, active, or in good standing with the GSTN portal. For live registration lookup, use the official GST portal. For related Indian financial ID validation, see the PAN Validator.
Why Use a GST Number Validator?
Entering or copying a GSTIN incorrectly is a common and costly mistake. An invalid GSTIN on a tax invoice means the buyer cannot claim the Input Tax Credit (ITC) for that purchase, a direct financial loss. Similarly, filing a GSTR return with an incorrect supplier GSTIN causes a mismatch that the GSTN flags and requires an amendment.
Common situations where format errors cause problems:
- A vendor provides their GSTIN verbally or in a chat message and a digit or letter is transposed during entry into your accounting software
- An e-commerce seller onboarding a new vendor collects GSTINs via a form and wants to catch format errors at submission rather than during invoice reconciliation
- A developer building a billing or ERP system needs to validate GSTINs at the point of data entry before the record is saved
- An accountant reconciling GSTR-2A with purchase invoices wants to quickly confirm which supplier GSTINs are structurally malformed
A single validation step before the number is used, in an invoice, a return, or a vendor record, prevents downstream corrections that require portal amendments and often involve penalties or delayed ITC claims. Use the GST Calculator to compute tax amounts once you have confirmed the GSTIN is valid.
Who Should Use This Validator?
Accountants and tax professionals handling GST invoicing, return filing, and ITC reconciliation, confirm vendor GSTINs before entering them into accounting software to prevent GSTR-2A mismatches.
E-commerce and marketplace operators onboarding sellers, validate GSTINs at registration to catch typos before they propagate into invoices and returns.
Developers building billing, ERP, or procurement systems, add GSTIN format validation to the data-entry layer, using the same regex this tool implements.
Business owners and sole proprietors who issue or receive GST invoices and want to confirm the GSTIN printed on a document is structurally correct before accepting it.
Startups and small businesses new to GST who want to understand the format of their own GSTIN, the segment breakdown makes the structure legible for the first time.
If you need to verify the embedded PAN, use the PAN Validator. To calculate the GST amount on a transaction, use the GST Calculator.
What Insights Does the GST Validator Give You?
When the GSTIN is valid, the validator provides a full segment breakdown:
- State, the two-digit state code and the corresponding state name (e.g.
29, Karnataka) - PAN portion, the 10-character PAN embedded in characters 3–12
- Entity number, the registration sequence for this entity in that state
- Checksum, the final alphanumeric character
This breakdown is useful when you receive a GSTIN and want to confirm it is registered in the expected state, or when you want to extract the PAN portion for cross-referencing.
When the GSTIN is invalid, the validator identifies the specific rule that failed, wrong length, invalid state code, PAN portion in the wrong format, or wrong character in position 14.
Scope: format validation only. The validator cannot tell you whether the GSTIN is currently active, whether the business has filed returns, or whether the registration has been cancelled or suspended.
How to use this GST calculator
- Open the GST Number Validator on this page.
- Type or paste the GSTIN into the GST Number field. The validator automatically converts lowercase letters to uppercase, so you do not need to manually capitalise.
- The result badge updates instantly. A green Valid badge confirms the GSTIN matches the correct 15-character format.
- If the badge shows Invalid, read the error message, it specifies whether the length is wrong, the state code is out of range, or a specific segment has the wrong character pattern.
- Fix the character that is causing the failure, common issues are a digit where a letter is expected in the PAN portion, a wrong state code, or a missing character, and the badge updates immediately.
- For a valid GSTIN, review the segment breakdown in the details section to confirm the state code and embedded PAN match what you expect.
Formula & Methodology
The validator applies the official GSTN format rule using a regular expression:/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$/| Position | Characters | Rule | |---|---|---| | 1–2 | State code | Two digits, 01–37 | | 3–7 | PAN letters | Five uppercase letters (A–Z) | | 8–11 | PAN digits | Four digits (0–9) | | 12 | PAN check letter | One uppercase letter (A–Z) | | 13 | Entity number | One character: 1–9 or A–Z | | 14 | Fixed | Must be Z | | 15 | Checksum | One alphanumeric character (0–9 or A–Z) | Valid example:29ABCDE1234F1Z5State: 29 (Karnataka) | PAN: ABCDE1234F | Entity: 1 | Fixed: Z | Checksum: 5 Invalid example:99ABCDE1234F1Z5State code99is outside the valid range of 01–37, making the GSTIN invalid. The check is synchronous and purely client-side, no external API calls are made. The state name lookup uses a static map of Indian state codes defined in GST rules.
Related Tools
You may also find these useful: Email Validator.
Frequently Asked Questions