QR Code Generator Guide
A QR code that does not scan is just decoration. Learn the size-to-distance rule, contrast requirements, and placement tips that make codes work.
QR codes look simple: dark squares on a light background, point a phone camera, done. But anyone who has watched someone wave a phone helplessly at a tiny, blurry code on a flyer knows that most QR codes fail for avoidable reasons. Size, contrast, distance, and testing all matter, and getting any one of them wrong can make an otherwise good code unscannable. This guide covers the rules that make codes work the first time, every time, and the free QR code generator produces clean, high-contrast codes with the quiet zone built in, ready to download as PNG or SVG.
The size-to-distance rule
As a rule of thumb, a QR code should be at least one-tenth the size of its scanning distance. A flyer read at arm's length, roughly 50 centimeters away, needs a code at least 5 centimeters square. A poster viewed from 3 meters away needs a code at least 30 centimeters square. A code on a business card, scanned from a few inches away, can be much smaller and still work reliably.
When in doubt, go bigger. An oversized code that scans instantly beats a tasteful small one that nobody can read, and the cost of extra space on a poster or flyer is far lower than the cost of a code nobody scans. Also consider the phone itself: older phones and phones with scratched camera lenses struggle with small codes, so sizing generously covers the weakest camera in your audience, not just the newest one.
Contrast is non-negotiable
Scanners read dark modules on a light background. Black on white is bulletproof and should be your default. Dark blue on white also works well. Light gray on white, pale colors, and any reversed design with light modules on a dark background fail often: some scanner apps handle inverted codes, many do not, and you cannot control which app your audience uses.
If brand colors matter, keep the code itself dark on light and put branding around it, not through it. A colored frame, a logo above the code, or brand colors in the surrounding design all preserve the brand look without breaking scanning. Changing the module color to a dark brand color is usually safe, but test it before printing, and never let the background become dark enough to reduce contrast. When the code must sit on a colored surface, place it on a white patch first.
Respect the quiet zone
The blank margin around a QR code, called the quiet zone, is part of the code, not empty space you can fill. It should be at least four modules wide on all sides, meaning four of the small squares that make up the code. Text, logos, borders, or design elements crowding the edge confuse scanners, because the scanner uses the quiet zone to tell where the code begins and ends.
The generator includes the quiet zone automatically, so the most common mistake here is cropping it off afterward in an image editor. Never trim the white border from a downloaded code, and if a designer places the code in a layout, warn them that the margin is functional. A code with its quiet zone intact scans noticeably more reliably than the same code cropped tight.
Short content scans faster
Simpler codes, with fewer modules, scan faster and tolerate damage better. A very long web address creates a dense, finely detailed code that is harder for cameras to read, especially in poor light or at a distance. The same destination reached through a short link produces a clean, forgiving code with larger modules.
For print especially, shorten first and generate second. Short links have a second advantage: if the destination ever changes, a short link can often be updated to point somewhere new, while a code printed with the full address baked in cannot be changed without reprinting. For codes that carry contact details or Wi-Fi credentials, keep the content as short as the format allows. Every unnecessary field adds modules and makes scanning harder.
Choose the right code type
Different destinations call for different code types, and using the right one improves the experience after the scan. A website link should open the site directly. A phone number should offer to call. Wi-Fi codes should join the network without typing a password. Contact codes should save a new contact entry. The generator offers these types as separate tabs, and picking the matching type means the scanner presents the right action instead of a wall of raw text.
Match the type to the setting. A restaurant table code should open a menu. A product package code should open product information or a manual. An event poster code should open tickets or directions. Thinking through what the scanner should do next, before you generate the code, avoids the most common disappointment: a code that scans perfectly and then does nothing useful.
Print quality and placement
Print quality matters as much as design. A code printed at low resolution, on glossy paper that reflects light, or on a curved surface such as a bottle, can fail even when the digital file is perfect. For print, download the SVG version when possible, since vector files stay sharp at any size, unlike PNG files which soften when enlarged. If you must use PNG, download the largest size available and never enlarge it beyond its original pixel dimensions.
Placement matters too. Codes placed too low on a poster force people to crouch, codes behind glass suffer reflections, and codes on moving objects such as vehicles are nearly impossible to scan. Put the code where a person can comfortably hold a phone steady, at a natural height, in good light, with a short line of text explaining what scanning does. People scan far more willingly when they know what they will get.
Always test before you print
Scan the code with two different phones, ideally an iPhone and an Android device, before committing to a print run. Check it at the actual size and distance it will be used, in lighting similar to the real setting, and from the angle people will actually hold their phones. Thirty seconds of testing beats a reprint, and it catches problems, such as low contrast or a cropped quiet zone, that look fine on a computer screen.
Test the destination as well as the scan. Open the link, check that the page loads quickly on a mobile connection, and confirm that any form or menu it leads to works on a phone. A code that scans to a broken page is worse than no code at all, because it spends the trust of the person who bothered to scan. Once testing passes, generate the final code with the QR code generator, and if you are promoting a small business, the post on QR codes for small business has more ideas for putting codes to work on menus, packaging, and receipts.