How we test our QR codes
Tests run on 23 October 2026
A QR code is only useful if phones can read it. So QRVivid scans every code in your browser before you download it. This page explains how that check works. It also shows the results of a test run over 389 pictures, so you can see where codes start to fail.
The check on every code
When you make a code on QRVivid, your browser does this. Nothing is sent to us.
- It draws the code and scans it with zxing, a well-known open-source QR reader. It runs in your browser as WebAssembly.
- If your browser has its own scanner (called BarcodeDetector), it scans the code with that too. In Chrome on a Mac this uses Apple's scanner. In Chrome on Android it uses Google's. A code only passes when both read the right text.
- Photo codes are scanned twice: at full size, and again at half size, like a small print.
- If a photo code fails, we use less photo and try again: 15 points less each time, up to 4 more tries. You see a note when this happens.
- Then you see “Scans well”, or a warning that tells you what to change.
Photo codes always use the strongest error correction (H). That means up to about 30% of the code can be hidden or damaged and it still reads. Styled codes use level M, or H when you add a logo.
What we tested, and how
- Computer: Apple M4 Pro, macOS 27.0.1.
- Scanner 1: zxing-wasm 3.1.5, run in Node.
- Scanner 2: Apple's scanner, through BarcodeDetector in Chromium 141.0.7390.37 on that Mac.
- Each code was drawn by the same code that runs on this site. Then it was turned into pixels at a few sizes and scanned.
- The test script is in our code as
scripts/scan-tests.ts. Run withnpm run scan-tests.
What we did not test here: these are clean pictures on a computer. We did not print them, and we did not point a phone camera at them. A real camera sees glare, blur, tilt and dim light. So real-world scanning is harder than these tests. Treat a pass here as “the code is right”, and still test a print with your own phone.
Styled codes: all 8 looks, at 4 sizes
We made each of the 8 ready-made looks with three amounts of text. Then we scanned each at 600, 300, 150, 100pixels wide. Fewer pixels means fewer pixels per dot, like a small code seen from far away. The table shows how many of the 8 looks each scanner read.
| Inside the code | 600 px | 300 px | 150 px | 100 px |
|---|---|---|---|---|
| Short link 20 characters, 25 × 25 dots | zxing 8/8 Apple 8/8 18.2 px per dot | zxing 8/8 Apple 8/8 9.1 px per dot | zxing 8/8 Apple 8/8 4.5 px per dot | zxing 8/8 Apple 8/8 3.0 px per dot |
| Long link 96 characters, 41 × 41 dots | zxing 8/8 Apple 8/8 12.2 px per dot | zxing 8/8 Apple 8/8 6.1 px per dot | zxing 8/8 Apple 8/8 3.1 px per dot | zxing 8/8 Apple 8/8 2.0 px per dot |
| Full contact card 340 characters, 73 × 73 dots | zxing 8/8 Apple 8/8 7.4 px per dot | zxing 8/8 Apple 8/8 3.7 px per dot | zxing 8/8 Apple 8/8 1.9 px per dot | zxing 0/8 Apple 0/8 1.2 px per dot |
What this shows: the look did not matter here. Every look scanned, or failed, together. What mattered was the amount of text. The full contact card failed at 100 pixels, where each dot was less than 2 pixels wide. More text means more, smaller dots. So a long code needs to be printed bigger.
Colours
We made the long link in different colours and scanned it at 300 pixels. The “Warning” column shows what QRVivid tells you about these colours.
| Colours | Contrast | Our warning | zxing | Apple |
|---|---|---|---|---|
| Black on white | 18.9 : 1 | None | Yes | Yes |
| Navy on white | 13.2 : 1 | None | Yes | Yes |
| Dark green on cream | 8.3 : 1 | None | Yes | Yes |
| Red on white | 4.8 : 1 | None | Yes | Yes |
| Orange on white | 2.1 : 1 | Too pale | Yes | Yes |
| Light grey on white | 1.9 : 1 | Too pale | Yes | Yes |
| Yellow on white | 1.5 : 1 | Too pale | Yes | Yes |
| White on black (inverted) | 18.9 : 1 | Light on dark | Yes | Yes |
| Light blue on navy (inverted) | 7.3 : 1 | Light on dark | Yes | Yes |
What this shows: in clean computer pictures, both scanners read even yellow on white, and light dots on a dark background. We still warn about these. Many phone camera apps expect dark dots on a light background, and pale colours fade fast in bad light or on glossy paper. We warn when the contrast is below 4 to 1, or when the dots are lighter than the background. Dark dots on a light background are the safe choice.
Logos
We put a plain logo in the middle of the long link, at five sizes. The size is the share of the code's width. We scanned each at 600, 300, 150, 100 pixels.
| Logo size | 600 px | 300 px | 150 px | 100 px |
|---|---|---|---|---|
| 12% | Both read it | Both read it | Both read it | zxing only |
| 18% | Both read it | Both read it | Both read it | zxing only |
| 22% | Both read it | Both read it | Both read it | zxing only |
| 26% | Both read it | Both read it | Both read it | zxing only |
| 30% | Both read it | Both read it | Both read it | zxing only |
What this shows: with error correction H, every logo size up to 30% read at 150 pixels and up. At 100 pixels, Apple's scanner missed all of them, while it read the same code without a logo. A logo makes small codes harder to read. Print logo codes a little bigger.
Photo codes: how much photo is too much?
We made the link https://example.com/menu as a photo code over our three sample pictures. We tried every dot shape at photo strength 0 to 100, in steps of 10, with no automatic fix. Each picture was scanned by both scanners, at full size and half size. In total, 111 of 132 codes passed all four scans.
The table shows the highest strength where that strength and every lower one passed. 100 means it never failed.
| Picture | Round dots | Soft square dots | Square dots | Diamond dots |
|---|---|---|---|---|
| Sunset | 60 | 60 | 60 | 50 |
| Beach | 90 | 100 | 100 | 90 |
| City night | 90 | 100 | 100 | 90 |
What this shows: the picture matters most. The bright Sunset picture was the hardest. There, Apple's scanner started to miss the half-size code above about 60. Diamond dots failed first, because a diamond covers the least of each square. The darker Beach and City night pictures were fine almost all the way up. Most failures were Apple's scanner on the half-size code, which is why we check that size too.
The automatic fix
Here we asked for a strength and let the site's check lower it until the code passed both scanners at both sizes. Round dots, the default.
| Picture | Asked for | Used | Tries | Passed |
|---|---|---|---|---|
| Sunset | 60 | 60 | 1 | Yes |
| Sunset | 80 | 50 | 3 | Yes |
| Sunset | 100 | 55 | 4 | Yes |
| Beach | 60 | 60 | 1 | Yes |
| Beach | 80 | 80 | 1 | Yes |
| Beach | 100 | 85 | 2 | Yes |
| City night | 60 | 60 | 1 | Yes |
| City night | 80 | 80 | 1 | Yes |
| City night | 100 | 85 | 2 | Yes |
What this shows: every code ended up passing. On the bright Sunset picture the check had to give up a lot of photo. On darker pictures it gave up little or nothing. This is why you sometimes see “We used a bit less photo” under your code.
What this means for you
- Keep the text short. A short link makes bigger dots, and bigger dots scan from farther away.
- Dark dots on a light background are the safe choice, even if pale colours pass on screen.
- Logos and photos are fine, but print those codes a little bigger.
- Always scan a real print with your own phone before printing many. Our tests cannot see your paper, your light or your camera.
Want the sizes in centimetres? See what size a QR code should be. Code not scanning? See why a QR code is not scanning.