Calculates on this device. File exports run online.
QR Code Print Size Calculator
Type the data of your QR code and how far away people will scan it. The page works out the version the data needs, the module size and the smallest printed size, with the quiet zone. Or type a printed size to see what it can hold. Then make a test code at that size and try it.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How the size is worked out
- The data sets the version: the page counts the bits of the text in one mode (digits, capitals and a few signs, or any text as UTF-8 bytes) and takes the smallest version whose data capacity at your error correction level holds them.
- A version-v code is 17 + 4 × v modules wide: 25 modules for version 2, 57 for version 10.
- The width is the larger of the scanning distance ÷ the ratio, and the modules × the smallest module size that prints and scans well.
- The quiet zone, a light margin of 4 modules on every side, is added to give the printed size.
The distance rule of thumb
A rule of thumb in common use says a code reads from about 10 times its width: a code 3 cm wide from about 30 cm, 10 cm wide from about 1 m. It is not a standard. Phone cameras, light, the angle, the contrast and the print all change it, so the ratio can be changed under More options, and a test print is the real check.
Error correction
A higher level (L, M, Q, H restore about 7, 15, 25 and 30 % of a damaged code) holds less data in the same version, so the code gets bigger. The table in the result shows the same data at every level.
The test code
The box below makes a QR code of your data at the computed module size (between 0.1 and 2 mm, the export service’s range) and reads it back in a blurred, unevenly lit picture, a stand-in for a phone camera. A code that cannot be read is not delivered. The encoder there may mix modes and make a slightly smaller code than the page’s count.