Max Storage Capabilities of 2D Barcodes

11,488

Solution 1

First, it kind of depends on what you mean by "capacity". For example, Eric J. is correct that the maximum capacity of a QR code in byte mode is 2953 bytes, for a version 40 code. However if your data is purely numeric, it can encode 7089 digits, as it has a special compressed encoding.

Second it's important to realize that not all formats encode arbitrary data. For example there's no notion of storing anything but a 12-digit numer in a UPC-A code. Code 128 can't store arbitrary bytes. So some formats may be out of consideration depending on your use case.

Third the capacity can vary based on other choices, like error correction level.

Finally, importantly, there's a big difference between the theoretical maximum capacity and the practical maximum. Yes, you can create a version 40 code, but good luck scanning it with a camera phone: Version 40 QR code (original source).

It may work in the industrial contexts for which QR codes were originally designed, but not for consumer uses. Anything above version 10 (a few hundred bytes) gets hard to scan. In practice, sticking to version 5 or below is well advised (a hundred bytes or so).

The same is generally true of other formats. There are not big differences among 2D formats in this regard. At some level all are challenged by the same limitation of focus, CCD responsiveness, a motion blur.

Solution 2

QR codes can encode 2,953 bytes.

There are many, many types of bar codes in the Wikipedia list. Are you interested in particular ones besides QR?

If you click through from the Wikipedia article to the detailed article on a given bar code, the detailed article generally describes what the bar code can encode (sometimes the character set is limited, e.g. to numbers or numbers and letters, other times a number of bytes can be represented).

Share:
11,488
Dungeon Hunter
Author by

Dungeon Hunter

Knows Java C# Python ColdFusion JavaScript VB Script and keeps excavating new and existing technologies :)

Updated on July 07, 2022

Comments

  • Dungeon Hunter
    Dungeon Hunter almost 2 years

    Upon reading the Wikipedia article on bar codes, I learned that there is wide collection of 2D and linear bar codes. One format that I am familiar with is the QR Code.

    What is the maximum storage capabilities of linear and 2D bar codes?

  • Dungeon Hunter
    Dungeon Hunter over 12 years
    I am just looking for the code which has maximum storage capability among them .....
  • Eric J.
    Eric J. over 12 years
    @Sunny: Almost certainly it will be a 2D one. Suggest you look at the detailed article for each 2D barcode in the Wikipedia entry.
  • James D
    James D almost 5 years
    How times have changed! I just saw this in the year 2019, whipped out my camera phone and scanned the image in the above post without any issue!