Cartix Prime

How to create a barcode for products in India

For shop owners and small makers who want their products to scan. How to create a barcode for products depends on one question: will the product be sold only in your own shop, or in other shops and online too? This guide walks through both paths, from choosing the number to testing the printed label.

Updated 1 November 2026

How to create a barcode for products: the short answer

If the product is sold only in your own shop, create your own in-store code: pick a number starting with 2, add the check digit, print it on a label and link it to the item in your billing software. No registration and no fee. If the product will be sold by other shops, online marketplaces or supermarket chains, you need a real barcode number from GS1 India, and then you print it the same way.

A barcode has two parts that people often mix up: the number and the picture. Anyone can draw the picture for free. What matters is where the number comes from.

First decide: in-store code or GS1 code

Find your situation in this table. If two rows fit, follow the stricter one.

Your situationWhich codeWhy
Loose rice, dal or sugar you pack and sell in your own shopIn-store codeThe code never leaves your shop
Unbranded clothes, fancy items, hardware with no maker's barcodeIn-store codeYou only need your own counter to know the item
Sweets, cakes or snacks made in your own bakery for your counterIn-store codeSold only by you
Your own brand of pickle or masala that other local shops will stockGS1 codeTheir billing software may already use your in-store number for something else
Selling on an online marketplaceUsually GS1 codeMarketplaces commonly ask for a GTIN; check the seller rules for your category
Supplying a supermarket chain or modern tradeGS1 codeBuyers in modern trade generally expect GS1 barcodes from the brand owner
ExportGS1 codeGS1 numbers are recognised across countries

The reason is simple. An in-store code only has to be unique inside your shop. A GS1 number is unique in the world, because GS1 gives each brand owner its own block of numbers. In India those numbers begin with 890.

Path 1: create in-store barcodes (free)

This is what most kirana stores, garment shops and bakeries need. Here is the process, using a provision store in Thrissur that packs its own 1 kg bags of matta rice and sambar powder, as an example.

Step 1: list every item that needs a code

Walk the shelves and write down every item that has no maker's barcode. Count each size and variant separately. Matta rice 1 kg and matta rice 5 kg are two items. A shirt in sizes M, L and XL is three items. One code must point to exactly one thing on the shelf.

Step 2: choose a numbering pattern

Use 13-digit numbers that start with 2. GS1 keeps numbers starting with 20 to 29 for in-store and internal use, so they cannot clash with a brand's 890 code. A simple pattern:

  • Start with 20 for items with a fixed price.
  • Leave 21 and 22 free if you plan to use weighing-scale labels later. Scales often use those prefixes for weight and price.
  • Fill the next ten digits with your own running number, so the first 12 digits read 200000000123 for one item, 200000000124 for the next, and so on. The 13th digit is worked out in step 3.

Step 3: add the check digit

The 13th digit is a check digit worked out from the first 12. Scanners use it to reject a misread instead of billing the wrong item. Do not guess it. Type your 12 digits into the free EAN-13 check digit calculator. For example, 200000000123 gets the check digit 4, so the full code is 2000000001234. The next item, 200000000124, gets 1 and becomes 2000000001241. One digit of difference at the end changes the check digit completely. The maths is shown in the guide to EAN-13 and other barcode types.

Step 4: make the barcode picture

For a handful of items, paste the number into the free barcode generator and print it. For a whole shop, let your billing software make and print the codes, so the number, item and price stay together. Typing 300 codes into one program and 300 items into another is how mistakes start.

Step 5: link the code to the item

Save the number in the barcode field of that item in your billing software. If you import items from Excel, set the barcode column to Text first, or Excel will turn 2000000001234 into 2.00E+12.

Step 6: print and test before you label the shelf

Print five labels. Scan each one at the counter. Check that the right item, price and GST rate come up. Only then print the rest.

Path 2: get GS1 barcode numbers (paid)

If your product will travel beyond your shop, the brand owner registers with GS1 India and receives a block of numbers: 100, 1,000, 10,000 or 1,00,000 of them. You then give one number to each product, size and variant, and print them on the pack. The documents, fees, renewal rules and the MSME reimbursement are covered in the GS1 barcode registration guide.

A few points that save trouble:

  • Only the brand owner applies. If a job worker packs your masala under your name, you apply, not the packer.
  • Apply directly. GS1 India says it does not appoint agents for allocating numbers. Websites that sell "cheap barcodes" are selling numbers that belong to someone else, and big buyers can check.
  • Plan your numbers before you print packs. List every product and size you sell now and expect to add in the next few years. The block size cannot be changed later.
  • Never reuse a number for a different product, even after you stop making the old one. Old packs can still be on someone's shelf.

Printing the barcode so it actually scans

A correct number printed badly is still a bad barcode. Whether in-store or GS1, check these before printing a thousand packs or labels:

  • Dark bars on a light background. Black on white is safest. Red bars cannot be read by many scanners, and dark packs need a white patch behind the code.
  • Clear space on both sides. Leave blank margin left and right of the bars. Text or a border too close stops the scan.
  • Do not squash it. Shrinking the height a little is usually fine; shrinking the width too much is not.
  • Flat, not on a fold. On a pouch, place the code on a flat face, away from the seal and the crimp.
  • Numbers below the bars. If the scan fails, the cashier can type the digits.
  • Right label size. A 13-digit code fits on a 38x25 mm or 50x25 mm sticker. Sizes for different uses are in the guide to barcode label sizes.

Mistakes that cause trouble at the counter

MistakeWhat happensDo this instead
Same code on two sizesThe 5 kg bag bills at the 1 kg priceOne code per size and variant
In-store code starting with 8 or 9It may match a real brand's barcodeStart in-store codes with 2
Random 13 digits without a check digitScanners refuse it, or software rejects itUse the check digit calculator
Reusing a code from a discontinued itemOld stickers on shelves bill the new itemRetire codes; issue a fresh one
Putting your in-store code on goods you supply to othersTheir system may already use that numberGet GS1 numbers for anything sold outside

Doing it in Cartix Prime

On every Cartix Prime plan, an item with no barcode can get an in-store EAN-13 made for it, and Cartix Prime checks that the number is not already used in your shop. Each size or colour variant can have its own barcode. When you scan a maker's barcode that is new to your shop, the item name can fill in from Open Food Facts while you are online.

Printing the labels needs Silver or above: the label designer, ready templates such as 50x25 mm and two-across 38x25 mm, and bulk printing from a purchase so the quantities come across. Silver is ₹4,999 a year for one computer and one phone, and every new shop gets 7 days of Silver free. If unbarcoded items are slowing your counter today, read how to handle items without barcodes, or see the whole workflow on the barcode software page.

Questions

Can I make my own barcode for free?
Yes, for products sold only in your own shop. Choose a 13-digit number starting with 2, add the check digit and print it. You need GS1 India numbers only if other shops, marketplaces or chains will sell the product.
Can I use a random number as a barcode?
Not safely. A random number may match a real brand's barcode, and without a correct check digit many scanners will not read it. Start in-store numbers with 2 and work out the last digit with a check digit calculator.
Do homemade products need a barcode?
No law needs a barcode on every product, but many buyers do. If you sell only from your own counter, an in-store code is enough. If a supermarket or marketplace will stock your product, they usually expect a GS1 barcode.
Do I need a different barcode for each size?
Yes. A 200 g and a 500 g pack of the same product must have different barcodes, and so must different flavours or colours. Otherwise the counter bills the wrong price and stock goes wrong.
Can I put a QR code instead of a barcode on my product?
A QR code is good for a website link or details, but most shop billing systems and supermarket counters scan the EAN-13 barcode to bill. Print the barcode for billing; add a QR only as an extra.
Can I buy barcodes from a website instead of GS1 India?
GS1 India says it does not appoint agents for allocating barcode numbers, and only GS1 India issues numbers starting with 890. Numbers bought from resellers may belong to someone else. Apply directly to GS1 India.

Try it at your counter tonight.

2 days with everything, free. Bring your items from Excel, connect the printer and scanner you already have, and start billing the same day.

Cartix Prime Offline is ₹8,999 once, with the first year of updates. Online plans from ₹599 a year. See prices