Skip to content

Tools

Will my code fit?

Measure the space on the packaging where the code will go (width and height, in millimetres) and we'll tell you what size it fits at while meeting GS1's requirements, counting the blank margin and the numbers underneath.

Measure the truly free space: without folds, seams, edges or text.

How to use it

  1. Choose the type of barcode: EAN-13 for a product sold in shops, ITF-14 for a case or a 2D code.
  2. Measure the free space on the packaging, width and height in millimetres, without folds, seams, edges or text.
  3. Press “Calculate”: we tell you what size it fits at while meeting GS1's requirements, and you can generate it at that size.

A worked example

A 40 × 30 mm space for an EAN-13: it fits at 100%, with a 0.33 mm module, and takes up 37.29 × 26.48 mm with its blank margins and the numbers underneath. It could go bigger, up to 107%.

In a 25 × 20 mm space it doesn't fit even at 80%: the GS1 minimum takes up 29.83 × 21.18 mm. There the calculator suggests an EAN-8, which GS1 assigns for small packs, and tells you how much space a GS1 DataMatrix would take.

Common mistakes

  • Measuring the whole pack. What counts is the free space: a fold or a seam across the barcode stops it being read.
  • Forgetting the blank margin. An EAN-13 needs 11 free modules on the left and 7 on the right; the calculator already counts them.
  • Cutting down the bar height. GS1 advises against it: the barcode reads worse when it's passed diagonally over the scanner.
  • Going below 80%. Below that, many scanners won't read it. If it doesn't fit, an EAN-8 is better than an EAN-13 that's too small.

Frequently asked questions about barcode size

What size is an EAN-13 barcode?

At 100%, the module (the narrowest bar) is 0.33 mm: the barcode is 37.29 mm wide with its blank margins and its bars are 22.85 mm tall. GS1 allows 80% to 200%, and the height changes in the same proportion. What an EAN-13 is, in the glossary (in Spanish)

What is the minimum size of an EAN-13?

80%: a 0.264 mm module, which makes the barcode 29.83 mm wide with its blank margins. Any smaller and many scanners won't read it.

Can a barcode be made shorter?

Cutting down the bar height is called truncating, and GS1 advises against it: the barcode reads worse diagonally. If there's no other way, the calculator tells you how much you'd have to cut; check it with your customer or with AECOC.

What if the barcode doesn't fit on the pack?

For very small packs GS1 can assign an EAN-8, which is 81 modules wide with its margins against 113 for an EAN-13. It's granted by GS1 itself (in Spain, AECOC). A GS1 DataMatrix takes up less space, but shop tills will start reading them towards the end of 2027. Generate an EAN-8

Other tools

See all the tools

Where to start with barcodes? Start here (in Spanish): short, free paths in the Academy, depending on what you're here to do.