Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How much data / information can we save / store in a QR code?

I would like to use this script https://github.com/jeromeetienne/jquery-qrcode
(or is there even a better solution?)

What I like to do is "save" some small scripts or programs and even files like xml formatted files (svg, x3d, ...) as QR code images.

But how much information (in bytes) can I save exactly to QR code images (using this javascript solution)?

Any experience with this script and using qr codes for files?
https://github.com/jeromeetienne/jquery-qrcode

like image 831
Daniel Ruf Avatar asked Jun 16 '12 17:06

Daniel Ruf


2 Answers

QR codes have three parameters: Datatype, size (number of 'pixels') and error correction level. How much information can be stored there also depends on these parameters. For example the lower the error correction level, the more information that can be stored, but the harder the code is to recognize for readers.

The maximum size and the lowest error correction give the following values:
Numeric only Max. 7,089 characters
Alphanumeric Max. 4,296 characters
Binary/byte Max. 2,953 characters (8-bit bytes)

like image 135
free_easy Avatar answered Oct 17 '22 06:10

free_easy


See this table.

A 101x101 QR code, with high level error correction, can hold 3248 bits, or 406 bytes. Probably not enough for any meaningful SVG/XML data.

A 177x177 grid, depending on desired level of error correction, can store between 1273 and 2953 bytes. Maybe enough to store something small.

enter image description here

like image 20
James Avatar answered Oct 17 '22 06:10

James