About this tool
Design an attractive QR code by choosing dot shapes, corner styles and colors, adding a center logo and exporting PNG or SVG. Adding a logo automatically switches to the highest error correction so the code stays scannable.
Typical uses
- Create a branded QR code for a shop or social account
- Match a poster’s QR code to its design
- Make a colored QR code for packaging
How to use
Enter content, choose a preset or custom dots, corners and colors, and optionally upload a logo.
Set size and quiet zone, inspect the preview and export PNG or SVG with an embedded logo.
For a website link, choose Rounded blue and upload a small logo. Check contrast and quiet zone, export SVG for layout and test-scan at the final printed size.
Logo: up to 5 MB and 16 MP; adding one forces H correction. At least four quiet-zone modules. Contrast, dense content and styling can affect scanning; test the final image.
Logos force H correction and are embedded in SVG. Use a logo up to 5 MB and 16 MP. Styling and dense data can affect scanning; static content cannot be remotely updated.
How much of the code a logo actually covers
With a “Center logo (optional)”, error correction is locked to H (the tool says “Logo enabled: H correction is applied automatically.”) and the modules under the logo are removed, not painted over. The number of removable modules is capped: total modules × 0.18 × 30%, rounded down — about 5.4%. A square logo clears a centred odd-by-odd block, and at least 7 modules per side stay clear for the corner patterns. So the logo uses only a small slice of level H’s roughly 30% recovery capacity; the rest is left for print damage, glare and curved surfaces.
| Content bytes | No logo (level M): version · modules | With logo (level H): version · modules | Cleared block (modules) | Share of all modules | Logo width at 512 px export |
|---|---|---|---|---|---|
| 20 bytes | 2 · 25×25 | 3 · 29×29 | 5×5 | 3.0% | 57 px |
| 50 bytes | 4 · 33×33 | 6 · 41×41 | 9×9 | 4.8% | 82 px |
| 100 bytes | 6 · 41×41 | 10 · 57×57 | 13×13 | 5.2% | 90 px |
| 200 bytes | 10 · 57×57 | 15 · 77×77 | 17×17 | 4.9% | 90 px |
| 500 bytes | 17 · 85×85 | 24 · 113×113 | 25×25 | 4.9% | 94 px |
| 1000 bytes | 26 · 121×121 | 36 · 161×161 | 37×37 | 5.3% | 100 px |
- The cost is capacity: at the forced level H the tool accepts at most 1273 bytes, and beyond that it shows “Content exceeds this correction level’s capacity. Shorten it or use a lower level; logos require H.”. The same content also needs a higher version than at M, so the modules get smaller. Capacity and version tables for every level are on the QR code generator page.
- The library keeps a 6 px white margin inside the logo box (1.2% of the export size, rounded, at least 2 px: 3 px at 256 px, 25 px at 2048 px), so the picture itself is slightly smaller than the cleared block.
- Non-square logos follow their aspect ratio. A 1200 × 600 logo is first scaled to 512 × 256; on 100 bytes of content it clears 17 × 9 modules instead of the square logo’s 13 × 13. A wide logo can be wider, but it gets much shorter.
- Logo files must be PNG, JPG or WebP, up to 5 MB and 16 megapixels. The tool scales the longest side down to 512 px (4000 × 3000 becomes 512 × 384) and fills transparent areas with white, even when the QR background is another colour.
The colour check: 4.5:1 and “inverted”
The tool computes the contrast between foreground and background with the WCAG relative-luminance formula, (lighter luminance + 0.05) ÷ (darker luminance + 0.05). Below 4.5:1, or when the foreground is not darker than the background (inverted), it shows “This palette may be hard to scan. Use dark dots on a light background.”. This is a warning only: generation and download still work. “Use black and white” resets the foreground to #111827 and the background to #ffffff. The 4.5:1 figure is WCAG’s minimum for normal body text, not a scanner standard; the tool borrows it as a conservative line.
| Foreground | Background | Contrast | Warning shown |
|---|---|---|---|
| #111827 | #ffffff | 17.74 : 1 | No |
| #164db2 | #ffffff | 7.67 : 1 | No |
| #155e45 | #ffffff | 7.72 : 1 | No |
| #642590 | #ffffff | 9.51 : 1 | No |
| #767676 | #ffffff | 4.54 : 1 | No |
| #808080 | #ffffff | 3.95 : 1 | Yes |
| #e60012 | #ffffff | 4.80 : 1 | No |
| #ff6600 | #ffffff | 2.94 : 1 | Yes |
| #1d4ed8 | #fde68a | 5.38 : 1 | No |
| #ffffff | #111827 | 17.74 : 1 | Yes (inverted) |
- Brand oranges and light greys can look clear on screen yet reach only about 3:1. Keep the brand colour for a frame or the surrounding layout and use a dark shade of it for the modules.
- Light modules on a dark background have high contrast but are still flagged as inverted, because the tool cannot know whether the reading app supports inverted codes.
- Colours come from the colour picker as six-digit hex values; transparency and gradients are not available.
Style options and what we decoded
| Setting | Options | Count |
|---|---|---|
| Dot style | Square / Rounded / Dots / Extra rounded / Classy / Classy rounded | 6 |
| Corner frame | Square / Rounded / Circle | 3 |
| Corner center | Square / Circle | 2 |
The three position patterns (a 7 × 7-module frame with a 3 × 3 centre) are drawn separately with “Corner frame” and “Corner center”; every other module uses “Dot style”. In our tests we rendered all 36 combinations with the tool’s own rendering options (a 20-byte and a 100-byte URL, square logo, 512 px) and read them back with ZXing, the same decoding library our QR image decoder uses. Every one returned the original text. That shows the styles do not break the encoding, but it was a clean image decoded on a computer, not a phone camera reading a print.
- SVG exports embed the logo as PNG data inside the file, with no external link. PNG exports rasterise the same SVG at the chosen size.
- Shorter content means larger modules that survive blur better. Use a short URL and drop tracking parameters you do not need.
- For a branded Wi-Fi code, build the WIFI: text in the Wi-Fi QR tool and paste exactly that text into this tool’s “Text” mode.
Messages and what to do
| Message | Cause | Fix |
|---|---|---|
| Use a PNG, JPG or WebP logo up to 5 MB and 16 megapixels. | The file is not PNG/JPEG/WebP, is empty, exceeds 5 MB or has more than 16 million pixels. | Export the logo as PNG, crop empty borders and scale it to about 1000 px. |
| Content exceeds this correction level’s capacity. Shorten it or use a lower level; logos require H. | A logo requires level H, which cannot hold more than 1273 bytes. | Shorten the content or remove the logo; without a logo you can lower the level. |
| Could not generate the QR code. Try again or use a smaller logo. | Rendering timed out (8 seconds) or the browser could not draw the image. | Retry with a smaller or simpler logo file. |
| This palette may be hard to scan. Use dark dots on a light background. | Contrast below 4.5:1, or a foreground lighter than the background. | Click “Use black and white” or darken the foreground. |
Sources
Frequently asked questions
Will a logo stop the code scanning?
A logo forces level H error correction, which tolerates some coverage. Contrast, density and styling still matter, so test the exported image with real phones.
Which colors are safest?
Dark dots on a light background are most reliable. Avoid light dots, low contrast and inverted designs.
What are the logo limits?
Up to 5 MB and 16 megapixels.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.