Guide
Barcode and QR code sizes: how small can you print?
The smallest sizes that scan reliably for retail barcodes, carton codes, your own Code 128 and QR codes, and what fits on the most common small labels.
Updated
What decides the size
A scanner needs two things: bars (or squares) wide enough for it to see, and a blank margin around the code, called the quiet zone. The size of a barcode is therefore given by its narrowest bar, and the whole width follows from it: the more there is in the code, the wider it gets at the same bar.
- The quiet zone is part of the code. Every width on this page includes it, and so does the size the tools show. Don’t let text or the edge of the label run into it.
- Dark on light. Black bars on white work best. Red, orange and yellow bars usually can’t be read, because most scanners see by red light.
- Advice, not a rule. The tools show a note when a code gets small, and still print it: plenty of small labels scan fine with the right printer and scanner. Scan one before you print a batch.
Retail barcodes: UPC and EAN
Barcodes scanned at a shop’s checkout have a standard size, called 100%, with a narrowest bar of 0.33 mm. The range usually stated for retail is 80% to 200%. At the two sizes people ask about most:
| Barcode | Smallest (80%) | Standard (100%) |
|---|---|---|
| UPC-A, EAN-13 | 29.8 mm (1.17 in) | 37.3 mm (1.47 in) |
| EAN-8 | 21.4 mm (0.84 in) | 26.7 mm (1.05 in) |
| UPC-E | 17.9 mm (0.70 in) | 22.3 mm (0.88 in) |
UPC-E is a UPC-A squeezed to about half the width, but only numbers with a run of zeros in the right place can be written that way. EAN-8 needs an 8-digit number of its own. Both are worth knowing when a product is too small for a UPC-A. More in UPC barcodes for small sellers.
Cartons and pallets: ITF-14, GS1-128 and SSCC-18
Codes on shipping cartons are scanned from further away, on rough cardboard, so they are much bigger. GS1 asks for a narrowest bar of at least 0.495 mm, and for GS1-128 bars about 32 mm tall.
| Barcode | Width at 0.495 mm bars | On a 4 × 6 in label |
|---|---|---|
| ITF-14 (a 14-digit case number) | about 80.7 mm (3.18 in) | fits, at 0.59 mm bars |
| SSCC-18 (a pallet number) | about 87.1 mm (3.43 in) | fits, at 0.55 mm bars |
That is why carton labels are usually 4 × 6 inches. For your own boxes, moved only by your own staff, smaller is fine; the rules below apply.
Your own barcodes: Code 128 and Code 39
Outside retail and shipping there is no standard smallest size. As a rule of thumb, a narrowest bar of 0.25 mm (10 mil) is safe on an office printer. About 0.19 mm is the floor, and only with a sharp laser or a 300 dpi label printer and a good scanner. Under 0.17 mm is too fine to rely on.
| What it holds | At 0.25 mm bars | At 0.19 mm bars |
|---|---|---|
| Code 128, “A-0001” | 27.5 mm (1.08 in) | 20.9 mm (0.82 in) |
| Code 128, 12 digits | 30.3 mm (1.19 in) | 23.0 mm (0.91 in) |
| Code 128, “ABCDEF” | 30.3 mm (1.19 in) | 23.0 mm (0.91 in) |
| Code 39, “A-0001” | 36.8 mm (1.45 in) | 27.9 mm (1.10 in) |
Code 128 packs pairs of digits together, so 12 digits take the same room as 6 letters. Code 39 is wider for the same text. For more than a dozen characters on a small label, a QR code or Data Matrix fits better.
QR codes: size by the amount of data
A QR code grows in steps as it holds more, so the size of each square depends on how much text is in it. As a rule of thumb, squares of 0.4 mm or more suit phone cameras. Under about 0.38 mm the tools note that the code is dense, and under 0.25 mm that it is too small to scan reliably. These are the squares on 1 inch labels with a word under the code:
| Link length | Squares across | Square on a 1 in label |
|---|---|---|
| 23 characters | 25 | 0.62 mm |
| 38 characters | 29 | 0.56 mm |
| 53 characters | 33 | 0.50 mm |
| 77 characters | 37 | 0.46 mm |
| 111 characters | 45 | 0.39 mm |
- Scanning distance: as a rule of thumb, a phone reads a QR code from up to about ten times its width away. A 2 cm code reads from about 20 cm.
- The quiet zone around a QR code is four squares wide on every side.
- Error correction (L, M, Q or H in the tool’s options) adds spare squares so a damaged code still reads. The tools use M; L gives the biggest squares when room is short.
- Data Matrix and the other square codes follow the same rule of thumb.
What fits on 1 in, 1½ in and 1 × 2⅝ in labels
Measured with the site’s own layouts for one code per label:
| Label | QR code, 53-character link | UPC-A | Code 128, 12 digits |
|---|---|---|---|
| 1 × 1 in | 0.50 mm squares | 64% (under the retail 80%) | 0.20 mm bars (small) |
| 1½ × 1½ in | 0.75 mm squares | 96% | 0.30 mm bars |
| 1 × 2⅝ in | 0.59 mm squares | 100% | 0.33 mm bars |
So a 1 inch label is fine for a QR code with a short link, tight for Code 128, and too small for a UPC-A that must scan at a shop’s checkout. For retail UPCs on small labels, use a label at least 1¼ inches wide, or UPC-E where the number allows it.
Printer dots per inch
A printer can only print whole dots, so its resolution sets the smallest bar it can make cleanly:
| Printer | One dot | A 0.25 mm bar is |
|---|---|---|
| 203 dpi (most thermal label printers) | 0.125 mm | 2 dots |
| 300 dpi | 0.085 mm | about 3 dots |
| 600 dpi | 0.042 mm | about 6 dots |
For label printers, the print step asks for your printer’s dots per inch and puts every bar on whole dots, which is what keeps a small barcode readable. On a 203 dpi printer that means bars of 0.125, 0.25 or 0.375 mm and nothing in between, so a UPC-A there is either about 28 mm wide (76%, under the retail minimum) or about 42 mm (114%). More in Print barcode labels on a thermal printer.
Always test-scan
Sizes on paper are a guide; the printer, the label paper and the scanner decide. Before a big batch:
- Print one sheet or one label on the real labels.
- Scan several codes with the scanner or phones that will really be used, from the real distance.
- If any fail, make the code bigger, shorten what is in it, or print on a sharper printer.
Every type the site makes, with its own size facts, is listed on Barcode types.
Try it
Free for up to 100 labels a month. No account needed. Your labels are made in your browser.