Begin with the scanning environment
Start by asking where the code will be scanned and with what equipment. A retail checkout, a warehouse conveyor, a handheld inventory scanner and a customer's phone are different environments. The required symbol, physical dimensions and quality criteria follow from that use. A single recommended width for every barcode would ignore those differences.
For a trading partner's label, obtain their specification before designing the artwork. Record the required format, data fields, minimum dimensions, placement and verification requirements. If you are producing internal labels, make a small trial with the equipment your team actually uses. Decide what a successful scan means in that system: the correct item found, the right stock action recorded, or the intended page opened.
Understand the X-dimension
The X-dimension is the width of a barcode's narrowest module. Wider bars are built from multiples of it; a two-dimensional symbol uses a grid of modules. This is more useful than the overall width alone because a long Code 128 value needs more modules than a short one. Two labels with identical outside dimensions can therefore have very different scanning difficulty.
GS1 Sweden's size guidance lists a recommended X-dimension of 0.330 mm for EAN-13 on a consumer item and a permitted range of 0.264–0.660 mm for that application. Those figures must not be applied indiscriminately to warehouse labels or every other symbology. The same guidance lists different dimensions for outer packaging and logistics uses. Read the applicable specification as a whole, including height.
The generator's size readout helps you plan artwork, but the physical result still depends on the layout program and printer. If you scale an exported image to 80 percent, you also scale the narrow bars to 80 percent. Record the intended final size in millimetres and check a printed sample with a ruler rather than relying on a screen zoom percentage.
Clear margins are part of the code
Quiet zones are the blank areas around the symbol. Keep surrounding text, borders, logos and other marks out of them. Trimming a downloaded image tightly to its bars removes useful information for the reader. A white rectangle behind a barcode also needs enough room for those margins, especially when the underlying packaging is patterned or coloured.
The required margin depends on the format. GS1's size guide gives EAN-13 eleven modules on the left and seven on the right; UPC-A requires nine on each side. QR codes need clear space on all four sides. Preserve the margins supplied by the generator, and verify the applicable requirements if you reduce the margin control or alter the artwork in another program.
Leave room for production variation as well. Labels can shift slightly during cutting or application. A design whose clear zone ends exactly at a cut line is fragile even if the digital file appears correct. Keep the symbol away from seams, folds and curved edges that may obscure part of the pattern.
Choose SVG or PNG deliberately
SVG stores the barcode as vector shapes, so it is usually the better starting point for print artwork. Use the EAN-13, UPC-A or Code 128 generator to export a symbol, then place it in your label document at its intended size. Keep a copy of the original export so that later editing does not become the only available master.
PNG is useful when your label software does not accept SVG. Export enough pixels for the intended print size and avoid enlarging a small bitmap. Resampling can turn hard bar edges into grey intermediate pixels. A screenshot of the preview is a poor master because browser zoom, display scaling and cropping introduce extra uncertainty.
Printer resolution matters too. At 300 dots per inch, one dot is approximately 0.0847 mm. A three-dot module is about 0.254 mm, while four dots are about 0.339 mm. This arithmetic illustrates why a convenient-looking pixel choice may miss a required physical minimum. It is not a universal printer setting; evaluate the actual output and the applicable symbol specification.
Keep contrast and materials predictable
Black symbols on a clean white background are a practical starting point. Avoid pale bars, textured backgrounds and decorative gradients. A phone camera and a red-light scanner do not interpret colour in the same way, so a colourful label that works on one device may fail elsewhere. Test with the destination equipment before adopting a branded colour combination.
Gloss, transparent film, metallic packaging and curved containers can create glare or distort the apparent shape. Print on the material you intend to use, attach the label in its final position, and try it under ordinary working light. Do not assume that success on a matte paper proof guarantees success on a shiny finished product.
Watch for printer-specific defects: missing lines, uneven darkness, ink spread, smudging and worn printheads. Increasing darkness may help a faint label but can also fill narrow gaps. Make one controlled adjustment at a time and retain the earlier sample, so you can tell which change actually improved the result.
Print one controlled sample
Check the paper or label size in both the application and printer driver. Disable unintended fitting or shrinking when the document is already prepared at its final dimensions. A setting called actual size or 100 percent is a useful starting point, but still measure the output: application and driver settings can interact.
For a batch from the bulk generator, test short and long values, not just the first row. Long Code 128 values create wider symbols, while longer QR content produces a denser grid. A layout that works for one value may crowd the margins of another. Check that every visible human-readable number agrees with its intended source row.
Scan the printed sample and compare the decoded value exactly. A successful beep does not prove the product mapping is correct. Test again after applying the label to the item. If the receiving partner requires formal barcode verification, arrange that separately; a consumer phone is a useful check but does not issue a standards-based print-quality grade.
Keep a repeatable production record
Save the approved source value, symbol format, master artwork, dimensions, printer model, paper stock and relevant driver settings together. Name versions clearly so that an obsolete label is not accidentally reprinted. When changing printers, materials or layout software, repeat the sample test instead of assuming the previous approval transfers automatically.
Printing a UPC or EAN here does not register its number with GS1. Confirm the identifier's allocation and product mapping separately from the image and print checks. The UPC versus EAN guide explains that distinction. For a practical decoding checklist, continue to testing a barcode with your phone.
Primary references
Last reviewed: · How we maintain these tools
Address labels
Printing recipient addresses? Use the free address label maker to lay out labels for Avery sheets or thermal printers.
Questions
Frequently asked questions
Is there one minimum size for every barcode?
No. The required module width, height and margins depend on the format and scanning application. Check the relevant specification and the receiving partner’s requirements.
Should I download SVG for printing?
SVG is a useful print master because it preserves vector shapes. Confirm the final physical dimensions and test the printed result.
Does a successful phone scan prove print compliance?
No. It demonstrates a decode under those conditions. Formal verification and trading-partner acceptance are separate checks.