Live preview
The QR code regenerates on every change so you can iterate on size, colours, and content without clicking a button between each tweak.
QR Code Generator turns any text, URL, or short payload into a downloadable QR code. Pick the size, foreground and background colours, quiet-zone margin, and error correction level, then save the PNG for use on packaging, posters, business cards, or web pages.
QR Code Generator is a free, browser-based tool that produces standards-compliant QR codes for text and URLs. It renders the code directly onto a canvas using deterministic encoding, which means the same input always produces the same output, and downloads the result as a PNG file you can drop straight into print materials or web layouts.
QR Code Generator gives you control over the four properties that matter for real-world scanning: pixel size, quiet-zone margin (the white space around the code), foreground and background colours, and error correction level. The error correction level decides how much of the code can be obscured or damaged before scanning fails — useful when you plan to overlay a logo or print on a textured surface.
Typical users are marketers preparing event collateral, designers laying out packaging, small business owners adding a "scan to pay" code to a menu, and developers embedding a "scan to sign in" code in a login flow. Because all generation happens locally, no part of the data you encode is uploaded to a third-party service, which matters for confidential URLs, single-use tokens, and prelaunch links.
The QR code regenerates on every change so you can iterate on size, colours, and content without clicking a button between each tweak.
Choose between four ISO/IEC 18004 error correction levels: L, M, Q, and H. Higher levels recover more damage but produce denser codes.
Pick any foreground and background colour. The tool does not enforce contrast, so test your final design with a real scanner before shipping.
Set the margin around the code. Most scanners need at least 4 modules to lock on, but you can shrink the preview for development and expand for print.
Download a sharp PNG for design tools and print, or copy directly to the clipboard for fast iteration on posters, decks, and other layouts.
All encoding and rendering happen in your browser. The text or URL you encode is never transmitted, so single-use tokens and confidential links stay confidential.
A QR code is a two-dimensional matrix of black and white modules that encodes binary data along with a Reed–Solomon error correction layer. Position-detection patterns in three corners let scanners orient the code regardless of rotation, while alignment patterns and timing rows help them sample modules accurately even on curved or distorted surfaces. The same content can be encoded at different sizes (versions) and error correction levels, with each combination producing a different visual layout.
Error correction is what makes QR codes practical in the real world. Level L sacrifices the most data capacity for symbol size but tolerates only ~7% damage. Level H trades capacity for resilience and tolerates ~30% damage, which is why product packaging frequently uses H — the code keeps scanning even after handling, rain, or a discreet logo overlay. Choosing the right level is a tradeoff between visual density and how forgiving the final surface needs to be.
The quiet zone is the white space around the symbol. Scanners need it to detect where the code begins. The specification calls for 4 modules of quiet zone; in tight layouts you can sometimes get away with less, but the safest production default is 4. QR Code Generator exposes the margin so you can match the rest of your layout without going below scanner-friendly minimums.
Input
https://rohansurve.inOutput
PNG QR code rendered onto the canvas above.Visual rendering can hide problems that only a phone scanner reveals — for example, low contrast, missing quiet zones, or a corrupted module. Scan from a few distances before committing to print.
Shorter content produces simpler codes that scan from farther away with smaller cameras. If you need to encode a long URL, route it through your own short-link domain for branding and analytics.
Use L or M for clean digital displays, Q for posters and decks where a small logo will sit in the center, and H for packaging or outdoor signage where damage and dirt are likely.
Black on white is the safest combination. If you must brand the colours, make sure the foreground is significantly darker than the background and test with both light and dark phone themes.
Do not push other artwork into the white border around the code. Even a few pixels of intrusion can break scanning on older phones or low-light conditions.
Increase the size, set the margin to at least 4, and use high contrast (black on white). Test under good lighting.
Some browsers restrict image-clipboard writes. Use Download PNG and drag the saved file instead.
Usually caused by low contrast, a missing quiet zone, or printing at too small a size. Increase contrast, set margin to 4 or higher, and bump the pixel size for the printed format.
Adding a logo without raising error correction kills the recovery budget. Use Q or H so the code keeps scanning even after the logo covers part of the symbol.
Older Android scanners are stricter about contrast than iPhone cameras. Test with both before printing, and back off to higher contrast if scans fail on either platform.
A 200-character URL produces a much denser code than a 30-character URL. Route long links through a short-link service for cleaner symbols.
Friction and dirt damage the symbol. Print at a generous size, use error correction H, and consider a clear coating over the code on outdoor or shipping surfaces.
Yes. The tool produces standards-compliant QR codes that scan in every modern smartphone camera app. iOS, Android, and most laptop webcams using a QR-capable app will all decode them.
No. All generation runs in your browser. The text and URL you encode are never transmitted, so single-use tokens, confidential URLs, and prelaunch links remain private.
QR codes grow in version (size) and density as the data length increases. Short URLs (under ~30 characters) produce small, easy-to-scan codes; long URLs produce denser symbols. Use a short-link service if you need to keep the code compact.
A general rule is "1 cm of printed width per 1 m of scanning distance." For business cards and menus, 2–3 cm works fine. For posters and packaging viewed from a distance, scale up accordingly. Always test with a real phone before going to print.
You can after downloading the PNG by overlaying the logo in a design tool. Use error correction level Q or H so the QR code keeps scanning even after part of the symbol is covered.
L is fine for clean digital displays where damage is unlikely. M is a balanced default for most uses. Q is the right choice when adding a small logo overlay. H is for damaged or harsh-environment surfaces like packaging or outdoor signage.
They are the safest combination because every scanner expects the contrast in that direction. Inverted codes (light on dark) work on many modern scanners but fail on some older readers — avoid inverting if you can.
Yes. Encode any text or URL the spec supports. For Wi-Fi, use the format "WIFI:T:WPA;S:NetworkName;P:Password;;"; for vCard, paste the full vCard string. The QR code does not care about the meaning, only the bytes.
QR Code Generator is the fastest way to turn a URL or any string into a scannable PNG — private, configurable, and free for any number of codes you need.