๐Ÿ’ผ Business Tools

Barcode Types Explained: Code 128, EAN-13 and UPC

Which barcode should you use? Learn the differences between Code 128, EAN-13, UPC-A, Code 39 and ITF-14, how check digits work, and when you need GS1 numbers.

In this article
  1. The most common barcode types
  2. EAN-13: the retail standard
  3. Do you need official GS1 numbers?
  4. Code 128: the all-rounder
  5. Code 39 and ITF-14
  6. Printing barcodes that scan every time
  7. Generate barcodes free

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

TypeEncodesTypical use
EAN-1313 digitsRetail products in India, Europe and most of the world
UPC-A12 digitsRetail products in the USA and Canada
EAN-88 digitsVery small retail packs
Code 128Letters, numbers, symbolsInventory, SKUs, shipping and logistics
Code 39Uppercase letters, numbers, a few symbolsIndustrial, automotive, ID badges
ITF-1414 digitsOuter 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:

  1. GS1 prefix โ€” identifies the country of the issuing GS1 organisation (890 for India).
  2. Company number โ€” assigned to the brand owner.
  3. Product number โ€” chosen by the company for each product variant.
  4. 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.

Keep reading

๐Ÿ’ผ Business Break-Even Point Explained With a Small Business Example Find out how many units you need to sell to cover your costs. Learn the break-even formula, contribution margin, and how pricing and cost changes move it. ๐Ÿ’ผ Business GST Invoice Format: Every Field Your Invoice Must Have A clear checklist of the details a GST tax invoice must show in India โ€” GSTIN, invoice number, HSN/SAC, tax split, place of supply โ€” with a sample layout. ๐Ÿ’ผ Business How to Write a Quotation That Wins the Job A practical guide to writing quotations that clients accept: what to include, how to describe scope, set validity and payment terms, and follow up professionally.