In this article
Barcodes look alike โ black bars on white โ but there are many types, each designed for a different job. Choose the wrong one and your products wonโt be accepted by retailers, or your warehouse scanners wonโt read your labels. Hereโs a clear guide.
The most common barcode types
| Type | Encodes | Typical use |
|---|---|---|
| EAN-13 | 13 digits | Retail products in India, Europe and most of the world |
| UPC-A | 12 digits | Retail products in the USA and Canada |
| EAN-8 | 8 digits | Very small retail packs |
| Code 128 | Letters, numbers, symbols | Inventory, SKUs, shipping and logistics |
| Code 39 | Uppercase letters, numbers, a few symbols | Industrial, automotive, ID badges |
| ITF-14 | 14 digits | Outer cartons and cases |
EAN-13: the retail standard
When you buy packaged goods in an Indian shop, the barcode is almost always EAN-13. Its 13 digits contain:
- GS1 prefix โ identifies the country of the issuing GS1 organisation (890 for India).
- Company number โ assigned to the brand owner.
- Product number โ chosen by the company for each product variant.
- Check digit โ the final digit, calculated from the other twelve.
How the check digit works
Multiply digits in odd positions by 1 and even positions by 3, add them up, and find the number that brings the total to the next multiple of 10.
890123456789?
Odd positions: 8 + 0 + 2 + 4 + 6 + 8 = 28
Even positions: (9 + 1 + 3 + 5 + 7 + 9) ร 3 = 102
Total = 130 โ next multiple of 10 is 130 โ check digit 0.
Full code: 8901234567890.
If one digit is mistyped or misread, the check digit usually wonโt match, and the scanner rejects the code instead of recording the wrong product.
Do you need official GS1 numbers?
If you sell through retail stores, supermarkets or major marketplaces โ yes. Retailers rely on every EAN being unique worldwide. In India, these numbers are licensed through GS1 India, which assigns you a company prefix and lets you create numbers for your products.
If the barcode is only for your own use โ tracking stock, tagging assets, labelling shipments โ you donโt need GS1. Use Code 128, which can hold your own SKU like TS-BLU-M-042.
Don't invent EAN-13 numbers for retail products. They may already belong to another company's product, causing billing errors and rejection by retailers.
Code 128: the all-rounder
Code 128 can encode letters, numbers and symbols compactly, which is why itโs used on courier labels, warehouse bins and internal stock tags. If youโre not sure what to use for internal purposes, Code 128 is almost always the right choice.
Code 39 and ITF-14
- Code 39 is older and less compact, but still common in manufacturing, automotive parts and ID cards. It supports uppercase letters, digits and a few symbols.
- ITF-14 goes on outer shipping cartons containing multiple retail units, and is designed to print well on corrugated cardboard.
Printing barcodes that scan every time
- Contrast: black bars on a white background. Avoid red bars โ many scanners use red light and canโt see them.
- Quiet zone: leave blank space on both sides of the barcode.
- Size: donโt shrink retail barcodes too much; follow GS1 size guidance for retail products.
- Resolution: use vector formats (SVG) for label printing so bars stay perfectly sharp.
- Test with a scanner or phone app before printing a batch.
Generate barcodes free
Our Barcode Generator creates Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes, adds check digits automatically, and lets you download PNG or SVG files for printing.
Free toolTry the Barcode GeneratorCreate printable barcodes for products, stock and shipping labels.Frequently asked questions
Can I make up my own EAN-13 numbers?
You can generate the image, but retailers and marketplaces require EAN numbers licensed from GS1. Made-up numbers may clash with real products. Use Code 128 for internal labels.
What does 890 at the start of a barcode mean?
890 is the GS1 prefix assigned to India. It shows where the company that registered the number is based, not necessarily where the product was made.
Can phones scan these barcodes?
Yes. Most barcode scanner apps and many camera apps read EAN, UPC, Code 128 and Code 39.
Written by the Toolsopedia team. Spotted an error? Tell us and weโll fix it.