Print specs for a QR code next to your UPC or EAN
A 2D code that reads on a phone can still fail at a red-light checkout scanner, and you find out after the print run. This guide gives the GS1 values your artwork and printer need to meet, and how to check them before you print.
DLCode · Updated · 8 min read
Why the second code needs its own spec
A phone camera uses white light, so it can read codes that a checkout scanner can't. Retail scanners and verifiers use red light with a 660 nm peak. GS1's 2D Barcode Colour & Quality Guide shows a red QR code that a phone can decode but a red-light POS scanner may not detect.
The GS1 General Specifications (Release 25.0, January 2025) set the size, quiet zone, and minimum print quality for each barcode used at retail point of sale (POS). For the migration to 2D, section 4.15.2 says a GS1 DataMatrix, a QR Code with a GS1 Digital Link URI, or a Data Matrix with a GS1 Digital Link URI SHALL be used in addition to the EAN/UPC barcode. This protects stores that cannot yet scan 2D codes consistently. Your pack carries two codes, and each one has to meet its own spec.
Size and quiet zones
GS1 sizes barcodes by the X-dimension. For a linear barcode this is the width of the narrowest bar. For a 2D code it is the width of one square module. Symbol specification table 1 covers trade items scanned at general retail POS, and its addendum 2 covers 2D barcodes.
| Symbol | Min X | Target X | Max X | Quiet zone | Min quality |
|---|---|---|---|---|---|
| UPC-A | 0.264 mm | 0.330 mm | 0.660 mm | 9X left, 9X right | 1.5/06/660 |
| EAN-13 | 0.264 mm | 0.330 mm | 0.660 mm | 11X left, 7X right | 1.5/06/660 |
| EAN-8 | 0.264 mm | 0.330 mm | 0.660 mm | 7X left, 7X right | 1.5/06/660 |
| QR Code (GS1 Digital Link URI) | 0.396 mm | 0.495 mm | 0.990 mm | 4X on all four sides | 1.5/12/660 |
| GS1 DataMatrix | 0.396 mm | 0.495 mm | 0.990 mm | 1X on all four sides | 1.5/12/660 |
The 2D values are 1.5 times the linear values. A footnote to the addendum says optical effects in image capture require Data Matrix and QR Code symbols to be printed at 1.5 times the X-dimension allowed for linear symbols. The 0.495 mm target is 1.5 times the 0.330 mm EAN/UPC target.
At the target X-dimensions, the minimum quiet zones are as follows.
- UPC-A: 2.97 mm on each side.
- EAN-13: 3.63 mm on the left and 2.31 mm on the right.
- QR Code: 1.98 mm on every side.
GS1's colour guide recommends a quiet zone slightly larger than the minimum to allow for production tolerances. For UPC-A and EAN-13, the minimum symbol height at the target X-dimension is 22.85 mm.
A QR code's overall size depends on how much data it holds and its error correction level. GS1's 2D Barcodes at Retail POS guideline gives example widths at 0.495 mm for a QR code with a GS1 Digital Link URI. The code was about 20.3 mm wide with low error correction and about 28.2 mm with high error correction. In another example, two codes at the same X-dimension measured 20.3 mm and 22.3 mm, depending on whether the data was uppercase or lowercase. The General Specifications require the uncompressed form of GS1 Digital Link URI syntax.
GS1 US advises brand owners not to default to the minimum, target, or maximum X-dimension. The right size depends on the space on the pack, the scanning environment, print quality, and the resolution of your printing process.
Placement next to the linear barcode
Keep the EAN/UPC barcode where you already put it. For items scanned at checkout, GS1 US says the barcode generally goes in the lower right-hand section of the back of the package. Then place the 2D code using the multiple-barcode rules in section 4.15 of the General Specifications.
- Same purpose, adjacent placement. If both codes serve POS, place them next to each other and keep both quiet zones clear. The brand owner decides whether the codes sit in a row or a stack, and which one comes first.
- Adjacent not possible. Place the 2D code on an adjoining surface. Section 6 placement rules still apply, such as 8 mm (0.3 inch) of free space between barcodes and the panel edge.
- Different purposes, non-adjacent placement. If the 2D code is only for consumer engagement, keep the two codes apart. GS1 US suggests putting them on different panels so a flatbed scanner does not read both.
- One code, several uses. If the same 2D code will be scanned at POS and by consumers, placement for POS takes precedence.
Distance matters. GS1's 2D Barcodes at Retail POS guideline says the 2D code needs to be within 50 mm (1.97 inches) of the linear barcode's centre to reach the target checkout throughput. The 2020 GS1 US Getting Started Guide says codes on the same panel should be less than 6 inches apart. If they are farther apart, scanners may treat them as two items and charge the customer twice.
Color, contrast, and substrate
POS scanners and verifiers light the code with narrow-band red light at a 660 nm peak. Under red light, red and white surfaces reflect the same amount of light, so red modules can look like background. GS1 says black and white is the best color combination for consistent reading.
| Use | Good choices | Avoid |
|---|---|---|
| Dark modules or bars | Black, dark blue, dark green, dark brown | Red, orange, yellow, gradients |
| Light background | White, yellow, light orange, red | Dark colors, gradients |
| Reverse (light on dark) 2D codes | Matte white modules on black, dark blue, dark green, or dark brown | Low-contrast pairs |
GS1's colour guide calls for a symbol contrast of at least 30% to reach the 1.5 minimum grade, and recommends about 50% for greater reliability. Contrast analysers that use white light can give misleading results. Linear barcodes are printed with normal reflectance, typically black bars on a white background, so reverse reflectance applies only to the 2D code.
Substrate causes failures that the artwork file does not show.
- Metal, foil, and metallised film. Do not print the code directly on a shiny or reflective surface. GS1 recommends a matte black code on a white background.
- Transparent film. Print a matte, opaque white area first and put a black code on top. Otherwise the contents of the pack become part of the background.
- Glossy substrates. High-sheen surfaces can produce reflections that hide the code or distort the shape of its modules.
- Bar color. GS1 US says to print the bars in a single ink color.
Print quality grades and what retail expects
ISO/IEC 15416 sets out how to grade linear barcodes, and ISO/IEC 15415 does the same for 2D symbols. A verifier grades each measured parameter from 0.0 to 4.0, and the lowest parameter grade sets the symbol grade. For 2D codes, the parameters include symbol contrast, modulation, axial and grid nonuniformity, unused error correction, and fixed pattern damage.
GS1 states the minimum as grade/aperture/wavelength.
- 1.5/06/660 for EAN/UPC. Overall grade 1.5, measured with a 0.15 mm (0.006 inch) aperture under 660 nm light.
- 1.5/12/660 for QR Code and Data Matrix at POS. Overall grade 1.5, measured with a 0.012 inch (about 0.30 mm) aperture under 660 nm light.
On the older ANSI letter scale that GS1 still references, a grade of 1.5 falls in the C band. GS1 US says barcodes above the 1.5 minimum should scan in the open supply chain. Print quality degrades over time and in transit, so aim for a higher grade when you print. The General Specifications say a grade is only meaningful with its aperture and light source, so ask your verifier to report all three. GS1 recommends verifiers that conform to ISO/IEC 15426-1 for linear codes and ISO/IEC 15426-2 for 2D codes.
Proofing and verification steps
- Confirm the data. All GS1 barcodes on a single trade item SHALL encode the same GTIN, and any attribute values, such as a lot number, SHALL be the same.
- Ask your printer which barcode orientation suits the print direction on its press. Some processes print better when the bars run in the web direction.
- Run a printability test on the production press and substrate. Verify the test symbol to measure bar gain, then set the bar width reduction for your X-dimension.
- Build the master artwork with the X-dimension and the selected bar width reduction recorded alongside the file.
- Verify the proof as part of approval. Proofing presses are not the same as production presses, so a proof can differ slightly from the production job.
- Check bar widths on the first sheets during make-ready, sample at intervals during the run, and verify a final sample when the job ends.
- Scan the QR code with a phone and, if you can, a retail POS scanner. A phone read alone does not show that the code will read at POS.
Common mistakes
- Resizing placed artwork. GS1 US says not to shrink or enlarge existing barcode art. Re-create it at the size you need, because bar width reduction is set for one X-dimension. If you scale a combined file evenly, 80% takes UPC-A to 0.264 mm and the QR code to 0.396 mm, which are both minimums. Any smaller and both fall below the specification.
- Truncating the UPC. Cutting bar height removes omnidirectional scanning. The General Specifications allow a truncated barcode only when a full-size barcode cannot be printed.
- Recoloring to match the brand. Red, orange, or yellow modules and gradients can drop below the contrast that red-light scanners need.
- Putting graphics in the quiet zone. Graphics, colors, or other printed elements inside the 4X margin of the QR code can reduce reading performance.
- Customizing the matrix. GS1 treats logos placed over the data as damage, and its colour guide says reshaped or recolored modules frequently cause verifier quality issues. GS1 says to avoid customization and logos in codes scanned at POS.
- Tight curves. On curved packs, the angle between the tangent at the centre of a linear barcode and the tangent at its outer guard bars must be less than 30 degrees. If it is more, turn the bars perpendicular to the generating lines of the surface. GS1 prefers ladder orientation on curved surfaces.
- Bad locations. The General Specifications say never to place barcodes or their quiet zones on perforations, die-cuts, seams, ridges, edges, tight curves, folds, flaps, overlaps, or rough textures.
- Missing the human-readable digits. All encoded digits SHALL be shown under an EAN-13, UPC-A, or EAN-8, so a cashier can key the GTIN if a scan fails.
Send your printer a file that meets spec
DLCode gives you print-ready barcode and QR artwork built to the GS1 retail values in this guide, so your proof starts in spec.
- One vector file per product (SVG, PDF or EPS) with the UPC-A, EAN-13 or EAN-8 and the QR code 4 mm apart, at 1:1 scale, in black on white.
- QR modules at 0.495 mm with the 4-module quiet zone built in, and the linear barcode at 100% magnification (0.33 mm X-dimension) with a validated check digit.
- Check your current artwork with the free packaging checker at /check. Your files stay in your browser.
- Change where a code points at any time with no reprint, on every plan. Paid packs add lot codes and lot-level recalls.
Start free for 10 products with no card. One-time packs start at $249 for 25 products and include hosting and unlimited scans through December 31, 2030. There is no subscription. Every new account also gets lot codes, recalls and country pages free for 30 days.
Get it right on the first press run. Start free or See pricing.
Sources
- GS1 General Specifications Standard, Release 25.0 (Jan 2025) · GS1 / GS1 US
- 2D Barcodes at Retail Point-of-Sale Implementation Guideline · GS1
- GS1 2D Barcode Colour & Quality Guide, Release 1.0 (Feb 2025) · GS1
- GS1 US Advanced Data Carrier for Point-of-Sale (POS) Getting Started Guide, Release 1.0 (Dec 2020) · GS1 US
- Solution provider 2D readiness · GS1
- Barcode Placement & Printing Guidelines · GS1 US
- Guidelines for size · GS1 Sweden
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.