Check your PDF before printing
How to make a print-ready barcode or QR code: K100 black, size, quiet zone and BWR
Short answer: make the barcode as vector shapes in black ink only (K100), place it at 100% without scaling, keep the quiet zone around it empty, print it on a white or light, even background, and use bar width reduction only if your printer gives you a value. For retail EAN and UPC codes, stay within the GS1 size range and have a printed sample checked with a barcode verifier before the full run.
Why barcodes fail in print but scan on screen
A scanner does not look at the barcode as a picture. It measures the widths of the dark bars and the light spaces, and the contrast between them. On screen those widths are exact. In print, three things change them: plates that are slightly out of register, ink that spreads into the paper, and the background behind the code. Almost every rule below is about keeping the printed widths and contrast close to what is in the file.
Black ink only: K100 instead of four-color black
A black made from cyan, magenta, yellow and black (rich black) is printed from four plates. On a press, those plates never line up exactly. For a heading that does not matter much; for a barcode it widens every bar a little, softens or colors its edges, and narrows the spaces between bars. K100 means 100% black ink and nothing else, so each bar comes from one plate and register between plates cannot widen it or color its edges. Ink spread still widens the bars a little; that is what bar width reduction, below, is for.
Rich black often arrives by accident. A barcode made as an RGB file, placed in a design and converted to CMYK on export, can end up on all four plates even though it looks plain black. The same can happen when a black-only code is placed in an RGB document. That is why the check that matters is the separations of the final PDF: the bars should appear on the black plate only. More on this in rich black vs plain black.
Vector shapes, not a bitmap
In a vector file each bar is a filled rectangle with an exact width, which the printer’s output device draws at its own full resolution. A bitmap (PNG, JPG, a screenshot) stores the code as pixels. When it is resized, bars snap to the pixel grid and come out unevenly wide, and edges can be softened. Use a vector PDF for print, and keep the digits under the bars as outlines so they do not depend on a font at the printer.
Place the code at 100%. Scaling it in your layout changes every bar width. If you need a different size, make the code again at that size.
Size: X-dimension, magnification and bar height
The X-dimension is the width of the narrowest bar (or one square module in a 2D code). For EAN-13 and UPC-A, the GS1 General Specifications express size as a magnification of a nominal symbol:
| EAN-13 / UPC-A | Value (GS1) |
|---|---|
| X-dimension at 100% | 0.330 mm |
| Range for retail point of sale | 80% to 200% (0.264 to 0.660 mm) |
| Bar height at 100% | 22.85 mm, scaled with the magnification |
Below 80%, the code is outside the GS1 range for retail point of sale and scanning becomes less reliable; use it only when your customer or the brand owner has agreed. Shortening the bars to fit a small pack (truncation) is a common cause of complaints, because checkout scanners read from many angles and need the full height. Logistics codes such as GS1-128 and ITF-14 on cartons have their own size rules; follow the GS1 specifications and your customer’s label specification. Retailers and printers may also set their own minimum, so ask before you go small.
Quiet zone
The quiet zone is the empty, light margin around the code. The scanner uses it to find where the code starts and stops. For an EAN-13 it is 11 narrow-bar widths on the left and 7 on the right; for a QR code it is 4 modules on every side. Keep text, frames, die lines, folds and the trim edge out of it, and keep the background in it the same light color as behind the bars.
Background and contrast
Dark bars on a white or light, even background give the scanner the most contrast. Avoid photos, patterns or gradients behind the code, and do not reverse a retail barcode into light bars on a dark background. Avoid red, orange and yellow bars: many scanners read with red light, and those colors look almost as light as the paper to them. On metallic, clear or very glossy materials, an opaque white area under the code is common practice; ask your printer.
Bar width reduction (BWR)
On press, ink spreads slightly, so printed bars come out wider than drawn and the spaces narrower. Bar width reduction makes up for this in the file: every dark bar is made narrower by a fixed amount, half from each side, so its center stays where it is and the spaces get wider by the same amount. In a 2D code each dark module shrinks on all four sides. To make up for ink spread the correction narrows the bars; making them wider would add to the problem.
The amount depends on the press, the plates and the material, so it must come from your printer. Many printers apply their own reduction in prepress. If you also put one in the file, the two add up and the bars come out too thin. Agree who applies it, and if you do, say in your order that the file already includes it and by how much. Without a value, leave it at 0.
On flexo and gravure presses, also ask which way the code should run: bars parallel to the print direction are less affected by ink smearing along the web than bars across it.
QR codes with a logo or in color
A QR code has built-in error correction, so a small logo in the middle can cover some modules and the code can still be read. The logo uses up part of that correction, so choose the highest level, H, keep the logo small, and never cover the three square finder patterns in the corners. Rounded or dot-shaped modules also leave less dark area for the scanner.
A colored QR code is usually printed from two or more inks, often as screened tints, so module edges are softer and depend on register. A dark color on a white or light background works more often than a light or warm one. Make the QR code at least as large as your printer recommends for the material, print a proof at the final size, and test it with several phones.
Check a printed sample
Scanning a proof with a phone shows whether a code can be read at all, not how good the print is. For retail and logistics codes, a barcode verifier measures the printed code and gives it a grade; retailers and logistics customers often require a minimum. Ask your printer whether they can verify a press sample, especially on uncoated stock, film or corrugated board.
Make a barcode or QR code as a vector PDF in K100 black. Free, made in your browser, the data is not uploaded.
Open Barcode & QR Code GeneratorStep by step
-
Get the number
For retail products, the EAN or UPC number (GTIN) comes from your GS1 member organization or your customer. A generator only encodes a number you already have; it cannot tell whether the number is registered to you.
-
Make the code as a vector PDF in black only
In the Barcode & QR Code Generator, choose the symbology and type the data. For EAN and UPC, a missing check digit is calculated and a typed one is verified. The tool checks check digits and fixed lengths, but it does not check the full GS1 syntax and does not certify codes.
-
Set the size, quiet zone and BWR
Set X-dimension or, for EAN and UPC, the EAN / UPC Magnification slider (it starts at 80% and warns below that), and keep the bar height at Full. Under Advanced prepress, the quiet zones start at the usual minimum; leave BWR ink reduction at 0 unless your printer gave you a value.
-
Download and place it at 100%
Read the warnings, then click Download Vector PDF (K100). The bars are DeviceGray black and no overprint is set, so they knock out what is behind them. Place the PDF at 100% on a white or light area, with the quiet zone clear. The SVG and PNG downloads are RGB, for screen use.
-
Check the separations of the final file
Export the finished layout and open it in Ink Checker. The bars should appear on the black plate only. If they show on cyan, magenta or yellow too, the export converted them; fix the export settings.
-
Test a printed proof
Scan a proof at the final size on the final material. For retail and logistics codes, have a press sample checked with a barcode verifier before the full run.
Frequently asked questions
Why must a barcode be K100 and not rich black?
Rich black is printed from up to four plates. On press the plates are never in exactly the same place, so each bar gets slightly wider with soft or colored edges, and the spaces between bars get narrower. A scanner reads exactly those widths. Black ink alone comes from one plate, so register cannot widen or color the bars. K100 on a white or light background is the usual choice.
What size should an EAN-13 barcode be?
In the GS1 specifications, 100% magnification means a narrow bar (X-dimension) of 0.330 mm and bars 22.85 mm high. For retail point of sale, GS1 allows 80% to 200%, which is 0.264 to 0.660 mm. Below 80% the code is outside that range and scanning becomes less reliable. Retailers and printers can set their own minimum, so ask before you choose a small size, and do not shorten the bars to save space.
What is the quiet zone of a barcode?
The quiet zone is the empty, light margin around a barcode. The scanner needs it to find where the code starts and ends. For an EAN-13 it is 11 narrow-bar widths on the left and 7 on the right; for a QR code it is 4 modules on every side. Text, frames, die lines, the trim edge or a colored background inside that margin can stop the code from scanning.
Which way does bar width reduction go, and how much should I use?
Bar width reduction makes every dark bar narrower in the file, so that when ink spreads on press the printed bar comes out close to its intended width. The spaces get wider by the same amount and the bar centers stay where they are. The right value depends on the press, plates and material, so it must come from your printer. Without a value, leave it at 0.
Can a QR code have a logo or a color and still scan?
Often, yes, but with less safety margin. A logo covers modules and uses part of the code's error correction, so use the highest level, H, and keep the logo small and in the middle. A colored code needs strong contrast against a light background; light and warm tones such as yellow and orange give little contrast, and red reads poorly on scanners that use red light. Print the code at its final size and test it with several phones.
Does a barcode generator check that my retail code will pass?
No generator can tell that from the file. A generator can calculate check digits and build the symbol at the sizes you set, but whether a printed code meets a retailer's or GS1's grade depends on ink spread, the material and the background. For retail and logistics codes, the usual practice is to check a printed sample with a barcode verifier before the full run.