QR codes are everywhere again — restaurant menus, packaging, business cards, posters — and generating one correctly takes about ten seconds. The part people get wrong is design: low-contrast colors or a code that's too small to scan reliably.
This guide covers how to generate a QR code for free, what it can actually encode, and the design choices that determine whether it scans on the first try.
Key Takeaway: A QR code is only useful if it scans reliably. Contrast and size matter far more than how "designed" the code looks — always test-scan before publishing or printing.
What a QR Code Can Encode
| Type | What happens when scanned |
|---|---|
| URL | Opens the website directly in the phone's browser |
| Plain text | Displays the text on screen — useful for instructions or short messages |
| Opens a pre-filled new email to the encoded address | |
| Phone number | Opens the dialer with the number ready to call |
Step by Step: How to Generate a QR Code for Free
TinyPNG Now includes a free QR code generator that runs entirely in your browser.
- Open the QR Generator tool.
- Choose your type — URL, text, email, or phone number.
- Enter the destination content.
- Optionally customize the foreground and background colors.
- Download the QR code as a PNG.
- Scan-test it with your own phone before printing or publishing anywhere.
Pro Tip: Always link to a final, HTTPS URL rather than a redirect chain or a page you'll later delete. A QR code printed on physical packaging or signage can't be edited after it's printed — if the link breaks, the code is dead.
Design Rules for a QR Code That Actually Scans
- Keep strong contrast — dark modules on a light background. Avoid similar mid-tone color pairings.
- Leave a clean margin — the quiet white space around the code helps scanners lock onto it.
- Size for distance — about 1 inch of code per 10 feet of expected scanning distance for posters and signage.
- Test before publishing — scan it yourself on at least one phone before printing or posting anywhere.
Frequently Asked Questions
Do QR codes expire?
A static QR code never expires on its own — the data is encoded directly into the pattern. It only stops working if the destination URL itself goes offline or changes.
Is a free QR code generator safe and private?
With TinyPNG Now, yes — the code is generated entirely in your browser, with nothing sent to a server and no tracking added.
Can custom colors make a QR code unscannable?
Yes, if contrast is too low. Keep the foreground notably darker than the background and avoid similar mid-tone pairings.
What's the minimum size for a printed QR code?
About 1 inch square is the practical minimum at arm's-length. For posters viewed from further away, scale up — roughly 1 inch per 10 feet of scanning distance.
Can I track scans with a free static QR code?
Not directly — a static code has no built-in analytics. To track scans, point it at a link-shortening service with click analytics instead of the destination directly.
What's the difference between a QR code and a barcode?
A barcode stores data in a single line of bars and holds only a short numeric code. A QR code stores data in a 2D grid, holding far more information and scanning correctly even if partially damaged.
What can a QR code actually encode?
Common uses: a website URL, plain text, a pre-filled email, or a phone number that opens the dialer when scanned.
Summary: Keep contrast strong, size it for the viewing distance, and always test-scan before publishing. Use the free TinyPNG Now QR generator — browser-based, private, and customizable.