How to Choose the Right Barcode Format for Your Business
A practical way to choose a barcode type: retail, cartons, pallets, internal stock, small parts and documents, with the format that fits each and why.
By StylQR Editorial TeamPublished 6 min read

Table of contents
The right barcode format is decided by who scans it and what the number has to mean to them. Products sold through shops need a GS1 retail code (EAN-13 or UPC-A). Cartons and pallets use ITF-14 or GS1-128. Anything that only your own team scans can use Code 128 or Data Matrix with your own numbering.
This guide walks through those decisions in order, with a comparison table and the mistakes that cost businesses reprints.
Start with three questions
Before you look at a single symbology, answer these:
- Who will scan it? A supermarket till, a warehouse handheld, a customer's phone, or only your own staff.
- What has to be in it? Just an item number, or extra data like a batch, an expiry date or a serial number.
- Where does it go? A large box, a small bottle, a curved tube, a metal part, a printed form.
The first question does most of the work. If someone outside your business scans the code, their systems decide the format, not you. A grocery chain's checkout reads GTINs in EAN or UPC barcodes; a carrier's sorting hub reads its own label format. Internal codes are where you get to choose freely.
Products sold in shops: EAN-13 or UPC-A
Consumer products sold through retailers carry a GTIN (Global Trade Item Number) encoded in an EAN-13 or UPC-A barcode. UPC-A holds 12 digits and is traditional in the US and Canada; EAN-13 holds 13 digits and is used almost everywhere else. Modern retail scanners read both, so the choice usually follows the GS1 office that issued your number.
The barcode is the easy part. The number has to come from your national GS1 organization, which licenses you a company prefix you then use to build GTINs. StylQR does not issue GTINs; the EAN-13 barcode generator draws the number you already own and checks the check digit for you. For the full background, see what a GS1 barcode is and how to create a barcode for your products.
Small packs get the compressed versions: EAN-8 and UPC-E. Both need the right kind of GS1 number, so ask your GS1 office before designing a pack around them.
Books and magazines are a special case. They use ISBN and ISSN numbers, issued by national ISBN and ISSN agencies, printed as EAN-13 barcodes with a 978 or 979 (books) or 977 (serials) prefix.
Outer cartons and pallets
When a case of 24 units ships from your warehouse to a retailer's distribution center, the case needs its own GTIN and a barcode that prints well on corrugated board.
- ITF-14 is the classic choice for printing straight onto cardboard. It encodes a 14-digit GTIN and tolerates the rough print quality of corrugated board better than EAN-13. The ITF-14 generator adds the bearer bars that protect it.
- GS1-128 is the logistics workhorse. It carries Application Identifiers (AIs), so one barcode can hold the GTIN in
(01), a batch in(10), a best-before date in(15)or an expiry date in(17). - SSCC-18 is the 18-digit Serial Shipping Container Code, normally printed as a GS1-128 with AI
(00)on the logistic label of each pallet or parcel.
If a retailer has sent you a supplier manual, it will say which of these it wants and where on the box. Follow it exactly; receiving docks reject non-conforming labels.
Internal stock, assets and documents
Barcodes nobody outside your business scans are free from GS1 rules. Your numbering can be SKUs, bin locations, employee IDs or asset tags.
| Format | Holds | Best for |
|---|---|---|
| Code 128 | Full ASCII, dense | Shelf labels, SKUs, work orders, shipping references |
| Code 39 | Uppercase letters, digits, a few symbols | Older systems that only read Code 39 |
| Data Matrix | Up to about 2,300 characters in a small square | Small parts, electronics, direct marking |
| QR code | Text or a link, phone-readable | Equipment manuals, check-in sheets, anything staff scan with phones |
| PDF417 | Large blocks of text | Forms, ID cards, shipping documents |
Code 128 is the sensible default for a linear internal barcode because it's compact and reads every character you'll need. Code 39 only wins when you're feeding legacy hardware that expects it; Code 128 vs Code 39 compares them in detail.
When the label is tiny or the item is small, a 2D code fits far more into less space. A Data Matrix a few millimeters wide can hold a part number and serial number that a linear barcode would need several centimeters for. 1D vs 2D barcodes explains the trade-off, including the scanner question below.
Batch, expiry and serial data
If you need to track lots for recalls, or expiry dates for food or medicine, you have two GS1 options:
- GS1-128, a linear barcode, which every warehouse scanner reads.
- GS1 DataMatrix, a 2D code that holds the same Application Identifiers in a much smaller area. It's already the norm on many medicines and medical devices.
Here is a typical element string, written in the human-readable form:
(01)09506000134352(17)271231(10)LOT42
That is a GTIN, an expiry date of 31 December 2027 and batch LOT42. The GS1 DataMatrix generator has an Application Identifier helper so you don't have to remember the codes.
Retail is heading in the same direction. GS1 US's Sunrise 2027 initiative aims to have checkouts able to read 2D barcodes by the end of 2027. What GS1 Sunrise 2027 means covers the timeline.
Check your scanners before you commit
The best format on paper fails if your hardware can't read it.
- Laser scanners read only linear barcodes. They can't read QR, Data Matrix or any 2D code.
- Imaging scanners (camera-based) read both 1D and 2D codes, as long as the symbology is enabled in their settings.
- Phones read QR codes out of the box. Many also read EAN, UPC, Code 128 and Data Matrix through apps, but support varies by device and app.
If you're buying new handhelds, a 2D imager keeps your options open. If you're stuck with laser scanners, stay with Code 128, GS1-128 or ITF-14.
Mistakes that cost a reprint
- Buying "cheap UPC numbers" from a reseller. Retailers that check the GS1 database may reject them. Get numbers from GS1.
- Shrinking the barcode to fit the artwork. Scanners need minimum bar widths and a clear quiet zone on both sides.
- Red or light-colored bars. Red-light scanners can't see red. Dark bars on a light background are the safe choice; StylQR's barcode generator warns you when a color may fail under a red laser.
- Truncating the height of EAN or UPC barcodes to save space. It makes them harder to scan at a till.
- Mixing formats with the same data, like an internal Code 128 that duplicates a GTIN on the same face of a pack, which confuses scanners and staff.
Making your first set
Once you know the format, open the barcode generator, pick the symbology, and enter your number. The live validation corrects check digits, and the size readout shows the printed width in millimeters so you can confirm it fits the label. Export SVG or an exact-size PDF for print work, and run the built-in "Test scan" before sending anything to the printer.
If you're labeling a whole catalog, the bulk barcode generator takes a spreadsheet of up to 5,000 rows and returns a ZIP or label sheets. How to generate multiple barcodes at once walks through that file setup.
Frequently asked questions
Can I use the same barcode number on two different products?
No. Each distinct product variant, such as a different size, flavour or color, needs its own GTIN if it is sold at retail. Reusing a number makes the till ring up the wrong item.
Do I need a GS1 number for barcodes that only my own business scans?
No. Internal formats like Code 128 or Data Matrix can carry any numbering scheme you invent, such as SKUs or asset tags. GS1 numbers are needed when trading partners or retailers will scan the code.
Is a QR code a barcode format?
Yes. A QR code is a two-dimensional barcode standardized as ISO/IEC 18004. It is a good choice when people will scan with phones, but most current retail checkouts still expect EAN or UPC on consumer products.
What size should a retail barcode be printed?
GS1 sets size ranges for each symbol in its General Specifications. For EAN-13 and UPC-A, the nominal 100% size is roughly 37 mm wide including quiet zones, and you should avoid truncating the bar height.


