GSTIN validator and format checker

Free · No signup · Guide approved 18 November 2026 by Nirav Italiya, founder · How we check guides

How do I check if a GSTIN is valid?

Paste one GSTIN or a list. The checker tests the 15-character structure, the 2-digit state code, the embedded PAN, the registration number and the final check digit, and tells you exactly which part is wrong. A GSTIN that passes is correctly formed; to confirm it is registered and active, search it on the GST portal.

Format valid
1
Invalid
1
  • 27AAPFU0939F1ZVFormat valid

    • ✓ 15 characters (15 entered)
    • ✓ State code 27: Maharashtra
    • ✓ PAN AAPFU0939F (Firm or LLP)
    • ✓ Registration number under this PAN: 1
    • ✓ 14th character is Z (normally Z)
    • ✓ Check digit V is correct
  • 24ABCDE1234F1Z5Invalid

    • ✓ 15 characters (15 entered)
    • ✓ State code 24: Gujarat
    • ✓ PAN ABCDE1234F (unknown holder type)
    • ✓ Registration number under this PAN: 1
    • ✓ 14th character is Z (normally Z)
    • ✗ Check digit should be 6, not 5

This checks the structure and the check digit offline; nothing is sent anywhere. A valid format does not prove the GSTIN is registered or active: confirm that with “Search Taxpayer” on the GST portal before you rely on it.

Listings that sell

Catalogue photos without a studio

Upload one photo of your garment and get on-model photos for Meesho, Amazon, Flipkart and Myntra in about 3 minutes.

  • First 2K photo free, no card
  • Ready in about 3 minutes
  • Full commercial rights
Flat-lay photo of a sareeThe same saree on an AI model, made with DrapifyApp

How to use it

  1. Paste one GSTIN, or several (one per line).
  2. Read the result for each: valid format, or the exact character that is wrong.
  3. For a supplier or customer you will rely on, confirm the GSTIN is active on the GST portal’s Search Taxpayer page.

Who this is for

This checker is for Indian sellers and accountants who handle GSTINs: supplier and customer numbers copied from invoices, WhatsApp messages and visiting cards, or typed into your billing software. A single wrong character in a GSTIN can mean a rejected invoice, a mismatch in your return, or input tax credit your buyer cannot claim. The checker catches typing mistakes before they reach a document.

It works on one number or a whole list. Paste up to 200 GSTINs, one per line, separated by commas or semicolons, and each gets its own result with the part that is wrong. It runs in your browser, so the numbers are not sent anywhere.

What the six checks are

Each GSTIN is cleaned to capitals with spaces removed and then tested in six steps. The result lists each one with a tick or a cross.

The checks on a 15-character GSTIN
PositionWhat it holdsWhat the tool tests
1–2State codeThe code is in the list of GST state and territory codes, and the state name is shown
3–12PAN of the holderFive letters, four digits, one letter; the fourth letter indicates the holder type, such as company or firm
13Registration number under that PAN in the stateA digit 1–9 or a letter
14Fixed letterNormally Z
15Check characterMatches the character calculated from the first 14
WholeLengthExactly 15 characters

How the check digit works

The last character is a checksum. Each of the first 14 characters is converted to a value from 0 to 35 (digits 0–9, letters A=10 to Z=35). Characters in odd positions are multiplied by 1, and characters in even positions by 2. Each product is split in base 36, and the quotient and remainder are added. The sum of all 14 is divided by 36, and the check character is the one for 36 minus the remainder, taken modulo 36.

The worked example uses the first 14 characters of a made-up GSTIN, 24ABCDE1234F1Z. The total of the last column is 174. 174 divided by 36 leaves a remainder of 30, and 36 minus 30 is 6, so the valid last character is 6. A number ending in 5 fails the check. A number ending in 6 passes the check, though that does not mean it belongs to a real business.

Check-digit working for 24ABCDE1234F1Z (made-up example)
PositionCharacterValueWeightProductReduced (quotient + remainder)
122122
244288
3A1011010
4B1122222
5C1211212
6D1322626
7E1411414
811222
922122
1033266
1144144
12F1523030
1311111
14Z3527035 (1 + 34)

What a pass does and does not mean

A pass means the number is correctly formed: the right length, a known state code, a PAN-shaped middle and a matching check digit. A single mistyped or swapped character will almost always break the check digit, so a pass is good evidence that the number was copied properly.

It does not prove that the GSTIN was issued, is active, belongs to the business named on the invoice, or matches the state of the supplier’s address. Cancelled and suspended registrations still pass. Before you pay a supplier or claim credit on their invoice, search the number on the GST portal’s taxpayer search and compare the legal name and status.

Using the checker in a routine

  • Validate customer GSTINs before you create invoices, so you do not need to cancel and reissue.
  • Validate a supplier’s GSTIN when you add them to your records, then confirm its status on the portal.
  • Paste a column of GSTINs from a spreadsheet before you upload them to filing software. The summary shows how many are valid and how many are not.
  • Look at the PAN holder type. If the fourth letter says “Individual” but the invoice is from a company name, ask why.
  • Keep a note of the date you verified each GSTIN, so you can show it if asked.

How a GSTIN is built

A GSTIN has 15 characters. The first two are the state code (24 is Gujarat, 27 Maharashtra), the next ten are the holder’s PAN, the 13th is the registration number under that PAN in the state (1 for the first), the 14th is normally Z, and the 15th is a check character calculated from the other fourteen.

The check digit catches typos

The last character is calculated from the first 14 using a base-36 checksum. A single wrong or swapped character almost always changes it, so a failed check digit usually means a typo when the number was copied.

Format is not registration

This tool cannot tell whether a GSTIN has been issued, cancelled or suspended. That information is only on the GST portal, so check there before you claim input tax credit on a supplier’s invoice.

Common mistakes

  • Assuming a valid format means an active registration.
  • Confusing the letter O with the digit 0, or I with 1, when copying from print or handwriting.
  • Checking only the first characters. Errors often occur in the last few.
  • Entering the GSTIN for a different state than the one on the invoice. The state code shows which state the number belongs to.
  • Using a PAN or a UIN in the box. The tool expects a 15-character GSTIN and will report the length.

What this tool can’t do

  • It works offline and cannot look up a registration, legal name, status or filing history. That information is only on the official portal.
  • It requires the 14th character to be Z, which is true of GSTINs in normal use. A number that deviates will be flagged even if it came from a source you trust, so verify it on the portal.
  • The state list reflects the codes in the tool at the time of review. If the government adds or changes codes, an unrecognised code will be marked as an error and should be checked on the portal.

How this guide was made: drafted with AI assistance from the tool’s own calculations and behaviour, then checked against our editorial policy and approved by the founder before publishing.

Official sources

Fees, tax rates and rules change. Confirm the current figures on the official page before you rely on a result:

Questions

How many digits is a GST number?
15 characters: a 2-digit state code, a 10-character PAN, a registration number, the letter Z and a check character.
How do I find the PAN from a GSTIN?
Characters 3 to 12 of the GSTIN are the PAN. The validator shows it for each number.
What does the 4th letter of the PAN mean?
It shows the holder type: P for an individual, C for a company, F for a firm or LLP, H for an HUF, T for a trust and so on.
Can I check GST numbers in bulk?
Yes. Paste up to 200 numbers, one per line, and each is checked separately.
Is the GSTIN sent anywhere?
No. The check runs in your browser.
How do I verify a GST number online?
Check the format here first, then search the GSTIN on the GST portal’s “Search Taxpayer” page to see the legal name and whether it is active.
What does the first two digits of a GSTIN mean?
They are the state code where the business is registered, for example 07 for Delhi, 24 for Gujarat and 27 for Maharashtra.
Can a business have more than one GSTIN?
Yes. A business gets a separate GSTIN in each state where it registers, and can hold more than one in a state for separate business verticals.

Related free tools

More free tools: Tax & GST

See all Tax & GST tools