← Blog  ·  Reference  ·  5 min read

QR Code Capacity and Barcode Sizes: Reference Tables

These are the numbers we reach for when sizing a code. The QR capacities were computed with the encoder this site uses, then checked against the published maximums for the largest code, Version 40 at level L: 7,089 digits, 4,296 alphanumeric characters, or 2,953 bytes. The barcode dimensions come from GS1 documents, cited at the end.

Advertisement

QR code capacity in bytes

This table applies to web addresses and ordinary text. Each basic Latin letter, digit or symbol is one byte; other scripts and emoji cost more. A code of version v is 17 + 4v modules across.

Maximum bytes per version and error-correction level. The percentage is roughly how much of the code can be damaged and still read.
VersionModulesL (7%)M (15%)Q (25%)H (30%)
1211714117
22532262014
32953423224
43378624634
537106846044
6411341067458
7451541228664
84919215210884
95323018013098
1057271213151119
1577520412292220
2097858666482382
251171,273997715535
301371,7321,370982742
401772,9532,3311,6631,273

Error correction is a trade. Level H lets a code survive a logo in the middle or real wear, but holds a little under half what level L does at the same version. For a typical 40-character web address, level M fits in version 3 and level H needs version 5.

Digits only, and capital letters

The standard has more compact modes for a payload made only of digits, or only of capital letters, digits, spaces and the symbols $ % * + - . / :. A generator that switches to them fits much more in the same code. This site's generator always writes bytes, so for codes made here the table above applies:

Capacity at error-correction level M. Lowercase letters force byte mode, which is why, in a generator that switches modes, an address written in capitals can produce a smaller code.
VersionDigits onlyCapitals + digitsBytes
1342014
2633826
31016142
41499062
520212284
6255154106
7293178122
8365221152
9432262180
10513311213
15991600412
201,600970666
252,3951,451997
303,2891,9941,370
405,5963,3912,331

Printed size from module size

A code's printed width is its module count, plus four modules of blank margin on each side, multiplied by the width of one module. The table is plain arithmetic. How large a module needs to be depends on scanning distance, which the print-size guide covers.

Printed width in millimetres, including the four-module quiet zone on each side, for four module sizes.
VersionModules incl. margin0.33 mm0.5 mm0.75 mm1.0 mm
1299.614.521.829.0
23310.916.524.833.0
33712.218.527.837.0
44113.520.530.841.0
54514.922.533.845.0
64916.224.536.849.0
85718.828.542.857.0
106521.432.548.865.0
158528.142.563.885.0
2010534.652.578.8105.0

EAN-13 and UPC-A

Retail barcodes are specified at a nominal 100% size and may be printed from 80% to 200% of it. EAN-13 and UPC-A share the same dimensions:

80%, 100% and 200% as given by GS1 Canada; the 150% row is 1.5 × the nominal values. GS1 Canada gives 150–200% as the recommended range for automated scanning environments.
MagnificationBar width X (mm)Width incl. quiet zones (mm)Minimum bar height (mm)
80%0.2629.8318.29
100% (nominal)0.3337.2922.86
150%0.49555.9434.29
200%0.6674.5845.72

Below 80% a barcode is out of specification, and some retail scanners will not read it. The barcode generator’s Retail shelf preset uses the 100% proportions; its Small package preset uses 80%, the smallest it offers.

EAN-8 and UPC-E

These short forms are for packs too small for a full-size barcode. The site's generator makes EAN-8; UPC-E is included for reference.

100% values from GS1 Australia; 80% and 200% rows are scaled from them.
EAN-8Bar width X (mm)Width incl. quiet zones (mm)Bar height (mm)
80%0.2621.3814.58
100% (nominal)0.3326.7318.23
200%0.6653.4636.46
From GS1 Canada.
UPC-EBar width X (mm)Width incl. quiet zones (mm)Minimum bar height (mm)
80%0.2617.6918.29
100% (nominal)0.3322.1122.86
200%0.6644.2245.72

Code 128

Code 128 has no single nominal size, because its width grows with the number of characters encoded: a six-character shelf code is much narrower than a twenty-character serial number. Size it by bar width and keep at least ten bar widths of quiet zone on each side. Remember that it is not a retail symbology: a till will not look it up. Choosing between EAN, UPC and Code 128 explains when to use which.

Sources

SVG export keeps the bar widths in the proportions the standard defines.

Make a barcode →
Advertisement