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 situation | Which code | Why |
|---|---|---|
| Loose rice, dal or sugar you pack and sell in your own shop | In-store code | The code never leaves your shop |
| Unbranded clothes, fancy items, hardware with no maker's barcode | In-store code | You only need your own counter to know the item |
| Sweets, cakes or snacks made in your own bakery for your counter | In-store code | Sold only by you |
| Your own brand of pickle or masala that other local shops will stock | GS1 code | Their billing software may already use your in-store number for something else |
| Selling on an online marketplace | Usually GS1 code | Marketplaces commonly ask for a GTIN; check the seller rules for your category |
| Supplying a supermarket chain or modern trade | GS1 code | Buyers in modern trade generally expect GS1 barcodes from the brand owner |
| Export | GS1 code | GS1 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
| Mistake | What happens | Do this instead |
|---|---|---|
| Same code on two sizes | The 5 kg bag bills at the 1 kg price | One code per size and variant |
| In-store code starting with 8 or 9 | It may match a real brand's barcode | Start in-store codes with 2 |
| Random 13 digits without a check digit | Scanners refuse it, or software rejects it | Use the check digit calculator |
| Reusing a code from a discontinued item | Old stickers on shelves bill the new item | Retire codes; issue a fresh one |
| Putting your in-store code on goods you supply to others | Their system may already use that number | Get 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.