How to print barcode labels that scan
Most barcodes that fail to scan were generated correctly and then damaged on the way to paper: shrunk to fit a page, cropped too tightly, or printed with smudged bars. These steps keep the bars intact from the screen to the label.
Start with a test sheet
Before a full run, print one page on plain paper and scan several barcodes with the scanner you will really use, at the distance you will use it. A phone app is a useful extra check, but a handheld or counter scanner behaves differently, so test both if both will be used. Load the label sheets only after that.
To check alignment, hold the plain-paper test behind an empty label sheet against a window or a bright screen. You can see at once whether every barcode lands inside its label.
Get the bar size right
Barcode size is set by the width of the narrowest bar, called the X-dimension or module. Everything else is a multiple of it, so if the narrowest bar is too thin for your printer or scanner, making the barcode taller will not help.
In the bulk barcode generator, Bar width sets the module in pixels. A browser printing at 100% scale treats 96 pixels as one inch, so each pixel is about 0.26 mm on paper:
| Bar width | Narrowest bar at 100% | Good for |
|---|---|---|
| 1 px | about 0.26 mm | Short codes on small labels, laser printer |
| 2 px (default) | about 0.53 mm | Most office printing and handheld scanners |
| 3 px | about 0.79 mm | Inkjet printers, rough surfaces, scanning from further away |
| 4 to 6 px | about 1.1 to 1.6 mm | Shelf, rack and floor labels read from a distance |
Retail EAN and UPC symbols have their own rules. GS1's nominal module is 0.33 mm, and it may be scaled from 80% to 200%, about 0.26 to 0.66 mm. A bar width of 2 px gives about 160%, inside that range. Do not cut the bars short to save space: at 100% an EAN-13 is about 37 mm wide and its bars about 23 mm tall, so keep roughly that shape when you scale it.
Leave the quiet zone alone
Scanners find a barcode by the blank space on each side of it, called the quiet zone. If text, a border or the edge of the label cuts into it, the scanner cannot tell where the barcode starts.
- Code 128 and Code 39 need at least 10 modules of white space on each side.
- EAN-13 needs 11 modules on the left and 7 on the right.
- UPC-A needs 9 modules on each side, and EAN-8 needs 7.
Every file from the generator already includes a white margin of 10 modules on both sides. Do not crop it off, do not let text or a frame touch it, and give EAN-13 symbols a little extra white space on the left in your layout.
Printing onto label sheets
The Print sheet button prints every barcode in a simple grid, which suits plain paper, card, or full-page label sheets that you cut yourself. It may shrink long barcodes to fit the grid columns. For pre-cut label sheets, where each barcode has to land inside a fixed cell, use the downloaded files instead:
- Download the ZIP of SVG files, or PNG files if your software only accepts images. Each file is numbered and named after the value it holds, so it is easy to match to the right label.
- Open the template for your label code in your word processor or the label maker's free design app. Common codes include Avery L7651 (65 labels per A4 sheet, 38.1 × 21.2 mm), L7160 (21 per A4 sheet, 63.5 × 38.1 mm) and, in North America, 5160 (30 per Letter sheet, 1 × 2⅝ in).
- Insert one barcode per label. Resize it only from a corner so it keeps its proportions, and keep it clear of the label edge.
- Print a test page on plain paper and compare it with a label sheet before using labels.
Small labels need short values. A 38.1 mm label holds a Code 128 barcode at 1 px bar width with about 8 letters, or about 16 digits because digits are stored in pairs. Longer values will not fit without making the bars too thin.
Printer type and settings
- Print at 100%. In the print dialog choose Actual size or a 100% scale, not Fit to page or Shrink to fit. Shrinking makes every bar thinner, often below what the scanner can resolve.
- Laser printers give the sharpest bars on paper labels and cope well with small sizes.
- Inkjet printers spread ink slightly, which widens the bars and narrows the gaps. Use a bar width of 3 px or more, matte labels made for inkjet, and let the sheet dry before handling it.
- Thermal label printers print in dots: about 0.125 mm per dot at 203 dpi and 0.085 mm at 300 dpi. A bar that is not a whole number of dots gets rounded unevenly, so in the label software set the narrowest bar to whole dots, for example 3 dots (0.375 mm) at 203 dpi, and raise the darkness setting if bars look grey.
- Quality and paper type: use the normal or best mode rather than draft or toner saving, and set the paper type to labels so the printer feeds them correctly.
Materials, colours and placement
- Black bars on white give the best contrast. Dark blue or dark green on white also work.
- Avoid red, orange or yellow bars. Most laser scanners use red light, and red ink looks the same as a white background to them. A red background with black bars is fine; red bars are not.
- Gloss and laminate can reflect the scanner's light straight back. Matte labels are easier to read under shop lighting.
- On narrow bottles and tubes, turn the barcode 90 degrees so the bars run around the curve and the code reads from top to bottom. The scan line then runs along a flat surface.
- Keep labels away from seams, folds and box edges where they will crease.
If a barcode will not scan
| What you see | Likely cause | Fix |
|---|---|---|
| Nothing scans, even on paper | The format is switched off in the scanner, or it requires a Code 39 check character | Test with a product barcode, enable the format in the scanner settings, or use Code 128 |
| The screen version scans, the printed one does not | Printed smaller than intended, or bars too thin for the printer | Print at 100% and raise the bar width |
| Scans only when held very close | Bars too thin for the scanning distance | Raise the bar width and shorten the value |
| Some labels on a sheet fail | Template misaligned, so labels cut into the quiet zone | Line the template up with a plain-paper test and widen the margins |
| The wrong characters appear | The scanner and computer use different keyboard layouts | Set the scanner to the same keyboard language as the computer |
| Bars look fuzzy or joined | Ink spread, wrong paper setting, or low thermal darkness | Matte labels, label paper setting, wider bars, more darkness |
If you are unsure which format a scanner or customer expects, see barcode types explained.
Frequently asked questions
What size should a barcode label be?
Big enough for the barcode plus its quiet zones. A short Code 128 value fits a 38 × 21 mm label; a retail EAN-13 at 100% size needs about 37 × 26 mm including the digits.
Can I print barcodes on a home inkjet printer?
Yes. Use a bar width of 3 px or more, matte paper or labels, the normal or best quality mode, and test one sheet before printing many.
Why does the PNG look bigger than the SVG in my document?
PNG files are saved at twice the on-screen pixel size so they stay sharp in print, and many programs place them at double size. Shrink the image from a corner until it fits the label.
Should I print the value under the barcode?
For EAN and UPC, yes: the digits are part of the standard and let a cashier type the number if a scan fails. For internal labels it is optional but useful for the same reason.