Guide · barcodes

Code 128 vs EAN-13 for inventory

For products sold through retailers, EAN-13 with a GS1 number. For everything inside your business, Code 128 with your own codes. Here is why, and how to design those codes.

Make Code 128 labels Free, runs in your browser

Side by side

Code 128EAN-13
What it holdsLetters, digits, punctuationExactly 13 digits
Who allocates the codesYouGS1 (licensed company prefix)
Check digitAutomatic, hiddenVisible 13th digit
Retail checkoutsNoYes
CostFreeGS1 membership fees
SizeVaries with lengthFixed (80–200%)

Why Code 128 suits internal use

When to use EAN-13 internally

If you sell products that already carry an EAN-13, scan that number rather than adding your own label. Most stock systems let a product have both a SKU and a GTIN. For goods you make and sell yourself only through your own shop, Code 128 is enough; if you later sell through retailers, you will need GS1 numbers and can add them then.

Designing internal codes

  1. Fixed length. SKU0001 to SKU9999 rather than SKU1 to SKU9999. Zero-padded codes sort properly and look consistent. The label sheet maker's sequence fill can zero-pad.
  2. Short. Every Code 128 character adds width. Eight to ten characters fits easily on a 63.5 mm label.
  3. Unambiguous characters. Avoid mixing O and 0, I and 1, and S and 5 in places people will type.
  4. No meaning that changes. Do not build a price or a supplier into the code; those change and the label would be wrong.
  5. A prefix per type. SKU, BIN, AST (asset) and so on make labels easy to tell apart.

Printing

Print Code 128 labels on standard sheets such as L7160 (21 per A4) or L7651 (65 per A4) with the label sheet maker, or on a thermal label printer from PNG files at 600 dpi made with the bulk ZIP. Keep a module width of about 0.25 mm or more for reliable reading.

Scanners and software

Any USB or Bluetooth barcode scanner that reads EAN-13 also reads Code 128: they are both standard linear symbologies and need no special setting. Most scanners act like a keyboard, typing the code into whatever field has focus, so they work with spreadsheets, stock systems and point-of-sale software without integration. Phones work too, with a barcode app or the scanning built into many stock and point-of-sale apps. If you want staff to scan with phone cameras, consider QR codes instead, which every phone camera opens without an app.

A worked example

A small coffee roaster sells 250 g and 1 kg bags in its own café and online, and supplies three independent grocers. The bags sold through the grocers need EAN-13 barcodes with the roaster's GS1 numbers, because the grocers' tills scan them. Inside the roastery, green-bean sacks, shelf bins and equipment carry Code 128 labels such as BEAN-ETH-001, BIN-A03 and AST-0007, printed on L7160 sheets. The stock system stores both the SKU and the GTIN for each retail product, so either can be scanned.

Changing later

If you start with Code 128 on your own products and later need retail barcodes, keep your SKUs and add GTINs to your product records; there is no need to relabel your shelves or bins.

What about QR codes?

QR codes hold more data in a small square and every phone camera reads them, which makes them useful for equipment manuals, maintenance logs and anything staff check with a phone. They need 2D imaging scanners rather than older laser scanners. For shelf and bin labels scanned all day with a handheld scanner, Code 128 is still the most robust choice.

Frequently asked questions

Can I put my own numbers in an EAN-13?

Technically yes, but don't: those numbers may belong to someone else's products, and a retailer's or customer's scanner could match them to the wrong item. GS1 reserves prefixes 20 to 29 for internal use, but Code 128 is simpler.

Will my scanner read Code 128?

Every standard barcode scanner reads both Code 128 and EAN-13.

Is Code 128 bigger?

For short codes of 6 to 10 characters it is similar to an EAN-13; long or text-heavy codes are wider.

Can I use QR codes for inventory?

Yes, especially for small labels or data that includes a web link. You need 2D-capable scanners or phones.

Should my SKU and barcode be the same?

Usually yes for internal codes: printing the SKU as the barcode avoids a lookup table.

What about products I buy in already barcoded?

Use the manufacturer's EAN or UPC for those; your system can store both.

Sources

Rules on this page last verified against these sources on 29 October 2026. This is general information, not tax or legal advice.