What is an HSN code and its full form?
An HSN code is the number that tells the tax system exactly what you are selling.
- HSN stands for Harmonised System of Nomenclature, a global product-classification system built by the World Customs Organization (WCO) and used in over 200 countries.
- India uses it under GST to fix the tax rate on every good, and under customs as the ITC-HS tariff for imports and exports.
- It is a numeric code, 2 to 8 digits long, that moves from a broad category down to one specific product.
- Goods use an HSN code. Services use a SAC code instead (see the full HSN code vs SAC code comparison).
For an exporter, the code matters twice over: it sets your GST treatment at home and it clears your goods through customs abroad.
Get it right once and the same eight digits carry your invoice, your shipping bill and your bank paperwork without a single query.
What is the HSN code in GST?
Under GST, the HSN code is how the return system knows which rate applies to a line on your invoice. Every rate notification is keyed to an HSN, so the code, not the product description, decides the tax.
You quote the code on the tax invoice and again in GSTR-1, where a separate HSN summary table reports the value and tax for each code you have used.
If you sell abroad, the same summary carries into GSTR-1 for export of services.
The buyer's input tax credit (ITC) flows from this match, so a wrong code on your side can block credit on theirs.
The code is also fixed, not a matter of opinion. It comes from the CBIC tariff and the WCO's chapter notes, which means two suppliers selling the identical product should be filing the identical HSN.
What is the HSN code structure (2/4/6/8 digit)?
An HSN code reads from left to right, widening detail as it goes. The first six digits are the global WCO standard shared by every country. India adds two more digits to reach the eight-digit ITC-HS code used for trade.
Here is a real eight-digit code decoded, aluminous cement, HSN 25233000:
2 5 │ 2 3 │ 3 0 │ 0 0 │ │ │ │ │ │ │ +-- Tariff item (2 digits): India-specific detail │ │ +-------- Sub-heading (2 digits): aluminous cement │ +-------------- Heading (2 digits): cement +-------------------- Chapter (2 digits): salt, sulphur, stone, lime, cement
- Digits 1-2 (Chapter 25): the broad family, here mineral products such as salt, stone and cement.
- Digits 3-4 (Heading 23): the product group within it, cement.
- Digits 5-6 (Sub-heading 30): the specific product, aluminous cement. These six digits are the WCO standard.
- Digits 7-8 (Tariff item 00): India's own split under ITC-HS, giving the full customs-grade code 2523 3000.
How do I find the HSN code for my product?
Treat this as a two-source method, not a single lookup. A finder tool alone will not stand up if an officer disagrees.
Step 1: Search the GST portal
Use the HSN search on the GST portal (services.gst.gov.in) to find candidate codes by keyword or description.
Step 2: Confirm against the CBIC tariff
Open the relevant chapter in the CBIC tariff and read the chapter and section notes. These notes decide borderline cases and override a loose keyword match.
Step 3: Cross-check a second source
Match the customs tariff heading your product would clear under. If the GST search and the customs tariff point to the same six digits, you are on solid ground.
Step 4: Ask a CA for a ruling call
Ask a CA for a ruling call on genuinely ambiguous items. Xflow is a payments platform, not a classification authority, so the final code is a decision for the GST portal, CBIC and your accountant.
Do not simply copy the HSN off a supplier's invoice. Their product may differ slightly from yours, and the liability for a wrong code on your invoice stays with you.
Is a 4-digit HSN code valid, and when is an 8-digit HSN mandatory?
Both can be valid. Which length you must quote depends on your aggregate annual turnover (AATO) and on whether the supply is a domestic sale or an export.
| Supply type | AATO up to ₹5 crore | AATO above ₹5 crore |
|---|---|---|
| Domestic B2B invoice | 4 digits | 6 digits |
| Domestic B2C invoice | 4 digits (optional below ₹1.5 cr historically, now widely required) | 6 digits |
| Export of goods | 8 digits (ITC-HS) | 8 digits (ITC-HS) |
The rule that catches exporters: for export of goods, the full 8-digit ITC-HS code is mandatory regardless of turnover.
A four-digit code that is fine for a domestic sale will fail on a shipping bill. This matrix is current as of July 2026; confirm the latest CBIC notification before filing.
The same turnover logic drives e-invoicing. Once you cross the e invoice limit, each invoice must be reported to the portal with a valid HSN on every line.
What is the HSN code for export of goods?
Exports run on the 8-digit ITC-HS code, the same tariff the customs system uses to assess and clear your consignment. The code appears in three linked places and they must all agree:
- On the export invoice, against each line item.
- On the shipping bill filed with customs.
- In your GSTR-1 HSN summary and, where applicable, the e-invoice.
Because exports are zero-rated, a clean code chain is what lets your refund or LUT claim run without a hold.
The mechanics of the underlying supply sit in our guide to export of services under GST for service exporters.
What happens if you use the wrong HSN code?
A wrong code is rarely just a typo. It usually pulls the wrong GST rate with it, which is where the cost lands.
| Error | Consequence |
|---|---|
| Wrong HSN, wrong rate charged | Short payment of tax, plus differential tax on assessment |
| Buyer's ITC mismatch | Buyer's input tax credit can be blocked or reversed |
| Interest on short-paid tax | Interest, generally at 18% per annum, on the shortfall |
| General penalty | Up to ₹50,000 under Section 125 (₹25,000 CGST + ₹25,000 SGST) |
| Return already filed | Correct it by the 30 November amendment deadline for the year in GSTR-1 |
The relief here is procedural, not punitive. If you spot the error, you amend the code in a later GSTR-1 before the deadline and the exposure narrows to the tax and interest, not the full penalty.
Raising invoices under e invoicing under GST helps here, since the invoice registration portal validates the HSN against the master list and flags an invalid code before you file.
Where does the HSN code sit on an export invoice?
On a compliant export invoice, the HSN column runs alongside the product description, quantity, taxable value and GST rate. The eight-digit code justifies the rate you have applied and gives customs the tariff line for the shipping bill.
Keep the invoice, the shipping bill and the bank realisation record on one code. When the numbers reconcile, your zero-rated claim and your foreign-exchange documentation both clear faster.
This is where getting paid meets getting classified.
Xflow Invoicing captures the correct HSN or SAC on each export invoice, and the auto-issued eFIRA reconciles the receipt against it, so the record you show your CA and the record customs sees line up.
Automatic eFIRA/FIRC in 24 hours. RBI and FEMA compliance, handled by Xflow.
Frequently asked questions
Yes, for GST-registered businesses. The number of digits scales with turnover, and export-of-goods invoices need the full 8-digit ITC-HS code regardless of turnover.
HSN classifies goods, SAC classifies services, both under GST. See the full HSN vs SAC code comparison for the side-by-side; if you export services, you file SAC, not HSN.
Yes. HSN groups similar products, so several distinct items can fall under one heading or sub-heading if the tariff and chapter notes place them there.
Transport is a service, so it takes a SAC code, not an HSN. Goods transport by road, for example, sits under SAC 9965, reported the same way in GSTR-1.
No. If you supply services rather than goods, you classify under a SAC code. Only goods carry an HSN, so a software or design exporter files SAC.
Businesses with AATO up to ₹5 crore generally quote 4 digits and those above ₹5 crore quote 6 digits on domestic supplies. Export of goods always needs 8 digits.
No. A 4-digit code may satisfy a small domestic supplier, but export of goods requires the 8-digit ITC-HS code on both the invoice and the shipping bill.