A practical HSN code and GST rate reference for computer and electronics shops, covering pen drives, external hard drives, SSDs, memory cards and the accessories that fill the rest of the shelf.
If you run a computer or electronics shop, your invoices cover a strange mix of products. A single bill can carry a laptop, a 1TB external drive, a pen drive, a USB cable and a laptop bag, and each of those sits under a different HSN heading even though almost all of them are taxed at the same rate. Get the code wrong and nothing breaks on the day of the sale, but your GSTR-1 HSN summary stops matching your stock, and that is a painful thing to reconstruct months later.
This post is the reference sheet for that shelf: which HSN code goes on storage devices, what the GST rate is, and how to set it up once so you never think about it again at the billing counter.
Nearly every storage product in a computer shop falls under one of two headings, and the split is not about capacity or brand. It is about whether the device is a standalone recording medium or a unit of an automatic data processing machine.
The practical dividing line most shops use: if it is a removable medium the customer carries around, look at 8523. If it is a drive that goes inside a machine or attaches as a storage unit of one, look at 8471 70. External portable hard drives are the genuinely debatable case, and both 8471 70 and 8523 are seen in the trade. Whichever you choose, write it down and stay consistent across every invoice for that item, because consistency is what your returns and any future scrutiny actually test.
The good news is the rate side is simple. Almost the entire category is at 18%, so a wrong HSN code rarely changes the tax you collect. It changes your reporting.
| Product | HSN | GST rate |
|---|---|---|
| Pen drive / USB flash drive | 8523 51 | 18% |
| Memory card (SD, microSD) | 8523 51 | 18% |
| Internal SSD | 8471 70 | 18% |
| Internal hard disk drive | 8471 70 | 18% |
| External / portable hard drive | 8471 70 (also seen as 8523) | 18% |
| Blank CD / DVD | 8523 41 / 8523 49 | 18% |
| Laptop, desktop, tablet | 8471 30 / 8471 41 | 18% |
| Keyboard, mouse, scanner | 8471 60 | 18% |
| Monitor | 8528 52 | 18% |
| Printer, multifunction device | 8443 32 | 18% |
| Router, switch, network card | 8517 62 | 18% |
| USB and data cables | 8544 42 | 18% |
| Power bank | 8507 60 | 18% |
| Headphones, earphones, speakers | 8518 | 18% |
| Webcam | 8525 80 | 18% |
| Laptop bag / backpack | 4202 | 18% |
| UPS / inverter for computers | 8504 40 | 18% |
Treat this as a starting point for your item master, not gospel. Rates and sub-headings do change, and a few lines (bags, cartridges, some cables) depend on material and construction. Verify anything unusual against the official list before you commit it.
The number of HSN digits required depends on your turnover, not on what you sell:
So a small shop can legitimately bill a pen drive as 8523, while a larger distributor needs 8523 51. If you are anywhere near the threshold, store the 6 or 8 digit code in your item master now and let your billing software print what is needed. Widening a code later is easy; going back to fill in missing digits across a year of invoices is not.
The mistake that costs shops real time is treating HSN as something typed at the counter. It should be an attribute of the product, saved once.
If you are setting this up in Trayvo, the flow is covered in our post on setting up HSN codes in your item master and sales account, and you can confirm any individual code with the step-by-step guide to checking HSN codes on the GST portal.
A pen drive is a solid-state non-volatile storage device, so it falls under heading 8523, specifically 8523 51 at the 6 digit level. The GST rate is 18%. The same code applies to SD and microSD memory cards.
For drives installed in or attached to a computer as a storage unit, yes: both internal hard disk drives and internal SSDs are reported under 8471 70 at 18%. The code diverges once the device is really a portable recording medium, such as a flash drive, which belongs to 8523.
Both 8471 70 and 8523 are used in the trade, since an external drive is arguably a storage unit and arguably a portable medium. The rate is 18% either way. Pick one, record it in your item master, and use it consistently on every invoice for that product rather than switching between bills.
Mostly no. Computers, storage drives, keyboards, monitors, cables, power banks and bags are all at 18%, which is why an accessory-heavy bill rarely has mixed rates. The HSN codes still differ by product type, so each item needs its own code even when the rate matches.
Collecting the right tax is the part that matters most, but an incorrect or missing HSN code on an invoice is still a compliance defect and can attract a penalty, and it distorts the HSN summary in your GSTR-1. The low-effort fix is to correct the code in your item master so every future invoice is right, rather than patching individual bills.
Start using Trayvo today and see the difference in your shop.