Skip to content
Create GST-compliant invoices in minutesStart free
Industry Guides

How to Create a Product Barcode for Billing: UPC, EAN and Free Tools

Which barcode symbology a small Indian retailer actually needs, when a GS1 India licence is required and when an internal code is fine, and how to print labels that scan first time.

AK
Amresh Kumar · 9 min read · updated 25 November 2026
On this page

Key takeaways

  • If the product will be scanned only in your own shop, you do not need a GS1 licence — generate an internal Code 128 barcode from your own SKU.
  • If the product will be sold through another retailer, a marketplace or modern trade, you need a real GTIN from GS1 India, which is the only authorised source of 890-prefixed barcodes.
  • EAN-13 is the 13-digit retail barcode used in India; UPC-A is the 12-digit US and Canada equivalent. Both are GS1 numbers.
  • Most scan failures are printing problems, not data problems — a missing quiet zone, too small a symbol, or a smudged thermal label.
  • A barcode is a stock identifier. It has nothing to do with the HSN code, and neither one belongs in the other's field.

Checked 28 October 2026

The GS1 position in this article is taken from GS1 India, which states that it is the only authorised provider of barcodes beginning with the prefix 890 and warns buyers against unauthorised sources. Licence fees vary by product count and turnover and are revised from time to time, so we do not quote them here — check gs1india.org for the current schedule before you budget.

A barcode does one job: it turns a product into a number your till can read in a tenth of a second. For a shop doing three hundred lines a day, that is the difference between a queue and a counter.

The confusion starts because two very different things are both called "getting a barcode". One is buying a licence from GS1 India so your product can be scanned anywhere in the world. The other is generating a label for your own shelves so your own billing software can find the item. The first costs money and takes paperwork. The second is free and takes about a minute.

Most retailers and small manufacturers need the second. Some need the first. Knowing which one you are is the whole decision, so start there.

When you need a GS1 India licence, and when you do not

The test is simple: will anybody outside your own business scan this code?

If the answer is no — you are a kirana, a hardware shop, a pharmacy or a garment retailer putting labels on stock so your own counter can ring it up — then no licence is needed. You can number your items however you like and print them as Code 128 labels.

If the answer is yes — you manufacture or pack a product that will sit on someone else's shelf, go into a supermarket chain, list on a marketplace, or cross a border — you need a genuine Global Trade Item Number, a GTIN, issued to you by GS1 India. Retail chains and marketplaces verify GTINs against the GS1 registry, and a number you made up will be rejected.

There is a third situation that trips people up. If you buy branded goods and resell them, the manufacturer's barcode already exists on the pack. Do not relabel it. Scan the existing code into your item master and use it. Printing your own label over a valid EAN is work you do not need to do and it breaks any returns handling upstream.

Licence or no licence

What you are doingWhat you needSymbology
Labelling stock for your own shop or warehouseNothing — generate your ownCode 128 or Code 39
Reselling branded goods that already carry a barcodeNothing — reuse the existing codeEAN-13 already on the pack
Manufacturing a product for modern trade, marketplaces or exportA GS1 India licence and a GTINEAN-13 (890 prefix for India)
Very small packs where a 13-digit symbol will not fitGS1 India licenceEAN-8
Outer cartons and shipper casesGS1 India licenceITF-14
Weighed or loose items priced at the counterNothing — in-store numberingCode 128 with embedded price or weight

UPC, EAN-13 and Code 128: which one you actually need

EAN-13

Thirteen digits, the standard retail barcode in India and most of the world. The first three digits are the GS1 prefix — 890 for numbers issued by GS1 India — followed by a company prefix, a product reference and a check digit. The length of the company prefix varies: a licensee with few products gets a longer prefix and fewer product slots, and vice versa.

UPC-A

Twelve digits, used in the United States and Canada. It is the same system, one digit shorter. Modern scanners read both. If your target is a US marketplace, that market expects a UPC; for Indian retail, EAN-13 is what you want. The search for "create UPC barcode" is usually really a search for "create a retail barcode", and in India the answer is EAN-13.

EAN-8

Eight digits, for packs physically too small to carry an EAN-13 — sachets, small cosmetics, single-serve items. Issued by GS1, with fewer product numbers available.

Code 128

The one most small Indian retailers should be using internally. It is alphanumeric, so it will encode an SKU like SHIRT-BLU-42 rather than forcing you into a digits-only scheme. It is compact, every scanner reads it, and it needs no licence because the number means nothing outside your business.

Code 39

Older, less dense, also alphanumeric. Still common on asset tags and in some industrial settings. If you are starting fresh, use Code 128 instead.

QR and GS1 DataMatrix

Two-dimensional codes that hold far more data — batch, expiry, serial number. GS1 India supports GS1 Digital Link QR codes and GS1 DataMatrix. These matter for pharmaceuticals and food traceability. For ordinary shelf billing they are overkill, and many counter scanners are laser units that cannot read them at all.

Creating barcodes for your own SKUs, step by step

Do this once, properly, and it will serve you for years.

Setting up internal barcodes

  • Design the SKU scheme first, on paper. Category, then brand or supplier, then variant, then size. Keep it short and never reuse a retired code.
  • Do not start your internal numbers with 890, or with any three digits that look like a GS1 prefix — you will eventually confuse your own scanner data with real GTINs.
  • Decide the symbology: Code 128 for anything with letters in it, EAN-13 only if you hold a GS1 licence.
  • Enter the code against the item in your billing software before you print anything. A label with no matching item master row is a label that fails at the counter.
  • Generate the symbol with a barcode tool, print one, and scan it with the actual scanner you use at the till — not the phone camera.
  • Print a test sheet of twenty across the range of label sizes you use, and scan every one before committing to a roll.
  • Write the scheme down and give it to whoever does your stock entry, so new items follow the same pattern.

For the generation step itself, a free online barcode generator is perfectly adequate for internal codes — it is a mathematical encoding, not a service. What matters is that the output is a vector or a high-resolution image, not a screenshot. A barcode scaled up from a 200-pixel PNG will not scan reliably at any size.

Printing: label sizes, thermal vs laser, and the quiet zone

This is where most barcode projects fail, and it is nearly always one of three things.

The quiet zone

Every barcode needs blank margin on the left and right — roughly ten times the width of the narrowest bar. Designers and shop owners both tend to crop it off to fit more on a label. A symbol with no quiet zone will scan in good light at the right angle and fail the rest of the time, which is worse than failing outright because nobody traces the cause.

Size

A standard EAN-13 is about 37 mm by 26 mm at full size. It can be scaled down to roughly 80% of that and still scan. Below that, print quality has to be excellent. If the label is small, use EAN-8 or a Code 128 with a shorter data string rather than shrinking a long symbol.

Thermal vs laser

Direct thermal labels are cheap, need no ribbon, and fade — in heat, in sunlight, against a car dashboard. Fine for fast-moving grocery, bad for slow-moving stock or anything stored near a window. Thermal transfer uses a ribbon and lasts for years. A laser printer on A4 sheet labels is the cheapest way to start and the most awkward to maintain, because a part-used sheet jams.

The surfaces that defeat scanners

Shiny foil, transparent film, deeply curved bottles and crinkled polythene all scatter the laser. The fix is matte white label stock and a flat area on the pack, not a better scanner.

Choosing a label printer

TypeCost to runDurabilityBest for
Direct thermal, rollLow — labels onlyMonths; fades in heat and lightGrocery, FMCG, fast-moving shelves
Thermal transfer, rollMedium — labels and ribbonYearsHardware, pharma, apparel, slow-moving stock
Laser on A4 sheet labelsLow to start, wasteful in useGoodOccasional batches, very small shops
InkjetHighPoor — smudges and bleedsNot recommended for barcodes

Linking the barcode to the item master so billing is one scan

The barcode is useless on its own. What makes it worth the effort is that scanning it pulls the whole row — description, HSN code, GST rate, unit, selling price, current stock — into the invoice line.

That means the item master has to be right before the labels go on. Our walkthrough of creating a GST invoice covers which fields a compliant line needs, and the invoice format guide sets out the statutory particulars. The comparison of billing apps for Indian businesses covers which ones handle barcode scanning at the counter rather than only in stock entry.

A few practical rules that save a lot of grief later:

  • One barcode, one item, one rate. If you sell the same shirt at two prices, those are two items.
  • Never reuse a barcode for a different product, even years later. Old labels survive in returns and in customer hands.
  • Multi-pack is a separate code. A single bottle and a case of twelve are different GTINs and different item rows.
  • Keep the scanner on the counter, not in the back office. The value is at billing speed, not in stock audits.

A barcode is not an HSN code

This confusion is common enough to be worth stating plainly.

The barcode identifies your specific stock item. It is a commercial identifier with no legal status under GST. The HSN code classifies the kind of goods for tax purposes and is required on the invoice under Rule 46(g).

Two different brands of toilet soap have two different barcodes and the same HSN heading. A ₹10 bar and a ₹110 bar of the same brand have different barcodes, the same HSN, and the same rate. Neither field substitutes for the other, and no invoice is required to show the barcode at all.

Where they connect is on the item master: scanning the barcode should bring the correct HSN and rate onto the invoice automatically, which is exactly why getting the HSN right once, at item setup, matters more than getting it right at billing time.

Common scan failures and how to fix them

  • Scans, but nothing comes up. The code is readable and the item master has no matching row. Add the item, or correct a typo in the code field.
  • Reads the wrong item. Almost always a reused or duplicated code. Audit for duplicates — most billing software can list them.
  • Will not read at all. Check the quiet zone first, then the print resolution, then the surface. Try printing the same code at full size on plain matte paper: if that scans, the problem is the label, not the data.
  • Reads intermittently. Faded thermal label, or a symbol printed too small. Reprint.
  • Extra characters at the end. The scanner is configured to append a suffix the software does not expect. Reconfigure the scanner to send Enter only.
  • Works on one scanner, not another. You are using a 2D code — QR or DataMatrix — on a laser scanner that only reads 1D symbols. Use Code 128 or buy an imager.

Restaurants and food businesses have their own version of this problem, because weighed items and kitchen-made dishes have no manufacturer barcode at all — our notes on GST for restaurants cover the billing side of that.

Frequently asked questions

Do I need to pay GS1 India to put barcodes on my own products?
Only if the barcode will be scanned outside your own business. For labels used purely on your own shelves and at your own counter, generate an internal Code 128 barcode for free — no licence, no registration. You need a GS1 India licence and a real GTIN when the product goes into another retailer's store, a marketplace, modern trade or export, because those channels verify the number against the GS1 registry. GS1 India states it is the only authorised provider of barcodes starting with 890 and warns against buying them from unauthorised sellers.
What is the difference between a UPC and an EAN-13 barcode?
They are the same system at different lengths. UPC-A is 12 digits and is the retail standard in the United States and Canada. EAN-13 is 13 digits and is what the rest of the world, including India, uses. Both are GS1 numbers and essentially every modern scanner reads both. If you are selling in India, ask GS1 India for EAN-13; a UPC only matters if you are listing on a US marketplace that insists on one.
Can I reuse a barcode number across two different products?
No. One code must mean exactly one item, including size and variant — a 500 ml bottle and a 1 litre bottle of the same product are two codes. Reuse causes the wrong item and the wrong price to come up at the counter, and it corrupts your stock figures silently. The same applies to retiring a code: do not reissue it to a new product later, because old labels survive in returns and in customers' homes for years.
What label size and printer do I need for retail shelf barcodes?
A full-size EAN-13 is roughly 37 mm by 26 mm and can be scaled to about 80% before scanning gets unreliable, so a 40 mm by 30 mm label is a safe default. Leave the quiet zone — blank margin on both sides of the symbol, about ten times the narrowest bar width. Use direct thermal for fast-moving grocery, thermal transfer for anything that sits on the shelf for months or is stored in heat, and avoid inkjet, which smudges and bleeds.
Does a barcode have to appear anywhere on a GST invoice?
No. Rule 46 lists the particulars a tax invoice must carry and a barcode is not among them. The only machine-readable requirement is the QR code carrying the Invoice Reference Number, which applies to businesses issuing e-invoices — currently those whose aggregate turnover exceeded ₹5 crore in any financial year from 2017-18 onwards. A product barcode is purely a commercial stock identifier, and the field you do have to get right is the HSN code.
How do I barcode loose or weighed items like grains and vegetables?
Use an in-store weighing scale that prints a Code 128 label encoding the item code together with the weight or the price. That label is read once at the counter and then discarded, so it never needs to be a GS1 number. Do not try to assign a fixed barcode to a variable-weight item — the price will not match the scan. If you also sell the same commodity pre-packed and labelled, remember that packing changes the GST position as well as the barcode: several staples are nil when loose and 5% when pre-packaged and labelled.
Is a free online barcode generator good enough, or should I buy software?
For internal Code 128 labels a free generator is fine — encoding a string into bars is standard mathematics, not a service worth paying for. What matters is the output quality: take a vector file or a high-resolution image, never a screenshot, and test-scan a printed sample with the scanner you actually use at the till. Paid label software earns its keep only when you need batch printing of hundreds of labels with variable data, which most single-shop retailers do not.

Create GST-compliant invoices in minutes

Invoicing, inventory and GSTR-1/3B reports for Indian businesses. Free to start.

Start free

Or reach us directly

About the author

Amresh Kumar

Accountant

Handles GST billing and monthly filings for small businesses.

More from Amresh

Get new articles by email

No more than one a week. Unsubscribe in one click.

Keep reading

Business Margin Calculator: Markup vs Margin Formula for Indian Retailers

Margin and markup are not the same number, and confusing them is how shops price below cost. Here are the four formulas, worked on GST-inclusive Indian purchase prices.

18 November 2026 · 7 min readRead
Hands writing on tax documents with laptop, glasses, and currency on desk.

GST Return Filing for Shopify Sellers in India (GSTR-1/3B from your orders)

A Shopify store is not a marketplace, so nobody collects TCS or prints invoices for you. Every order needs its own GST invoice, and GSTR-1 and GSTR-3B are built from those invoices. Here is the order-to-return path, table by table.

13 September 2026 · 10 min readRead
Vibrant street scene in New Delhi with people, shops, and a rickshaw in a busy marketplace.

GST for Flipkart Sellers: TCS, Returns, Credit Notes for RTO

Flipkart collects TCS on every sale and sends a large share of orders back as customer returns or RTO. Both need credit notes against the original invoice, or your GSTR-1 overstates sales and disagrees with Flipkart's GSTR-8. Here is the full monthly routine.

12 September 2026 · 10 min readRead
WhatsApp