Developer Free No signup

QR Code Generator

Turn any text or URL into a QR code as you type, pick colors, size and error correction, and download it as a PNG — free, no signup.

Published By BoxTool

Loading tool…

About this tool

Type or paste a URL or any text and the QR code redraws instantly — no button to press. Set foreground and background colors, drag the size slider from 128 to 512 px, and choose an error-correction level, then click Download PNG. The code is drawn on a canvas in your browser and the first 200 characters of the text are kept in the page URL, so a short code can be re-opened or shared by link; nothing you type is uploaded.

How to use

  1. 1 Type or paste a URL or text in the Text or URL box — the QR code updates as you type.
  2. 2 Choose the error-correction level (L for clean screens, H for print that may get damaged).
  3. 3 Adjust the foreground and background colors and drag the size slider.
  4. 4 Click Download PNG to save the image.

How a QR code actually stores your data

A QR ("Quick Response") code is a two-dimensional grid of black and white modules that encodes text — most often a URL, but also plain text, Wi-Fi credentials, contact cards, or payment strings. Unlike a one-dimensional barcode, which only stores a handful of digits along a single axis, a QR code packs data both horizontally and vertically, so even a small symbol can hold hundreds of characters. The three large squares in the corners are finder patterns: they let a camera locate and orient the code no matter which way you hold your phone, which is why a QR code still scans upside down or at an angle.

Every QR code also carries built-in error correction using Reed–Solomon codes. This is the feature that lets a scanner read a code even when part of it is dirty, crumpled, or covered by a logo. You can choose one of four levels:

LevelRecovers up toBest for
L (Low)~7% damageClean digital screens, short URLs
M (Medium)~15% damageGeneral printing — a good default
Q (Quartile)~25% damageCodes with a small center logo
H (High)~30% damageIndustrial labels, outdoor signage

Higher correction is safer but makes the grid denser, because the redundant data takes up modules too. If you plan to drop a logo in the middle, use level Q or H so the obscured area stays within the recoverable margin.

A worked example

Suppose you paste https://boxtool.app/en/tools/qr-code-generator/ into the box above. The generator measures the string (47 characters), picks the smallest QR version (grid size) that can hold it at your chosen error-correction level, lays down the finder and timing patterns, encodes the URL as alphanumeric data, appends the Reed–Solomon recovery bytes, and applies a mask pattern that balances the ratio of black to white modules so cameras don't get confused. The result renders instantly as an SVG or PNG — entirely in your browser, so the URL you encode never touches our servers.

Practical tips that prevent unscannable codes

  • Keep the quiet zone. A QR code needs a margin of empty space (about four modules wide) around it. Cropping right to the edge is the single most common reason a printed code fails to scan.
  • Mind the contrast. Dark-on-light is the safe choice. Inverted (light-on-dark) codes work on many modern phones but fail on older scanners, so test before committing to a print run.
  • Shorter URLs mean sparser grids. A long link forces a higher version with tiny modules that smartphone cameras struggle to resolve from a distance. If the destination URL is long, consider a short redirect.
  • Size for distance. A rough rule is a 10:1 ratio — a code meant to be scanned from 1 metre away should be roughly 10 cm wide. Billboards need much larger codes than a business card.
  • Always test the final medium. Scan the actual printout under realistic lighting, not just the screen preview. Ink bleed, glossy glare, and curved surfaces all reduce readability.

Common use cases

QR codes shine wherever you want to move someone from the physical world to a digital one without typing: restaurant menus, event check-ins, product packaging that links to instructions, Wi-Fi access for guests (encode WIFI:S:NetworkName;T:WPA;P:password;;), business cards that add a contact in one tap, and "pay by scan" systems. Because the data lives inside the code itself, a static QR code never expires and works offline — the scanner only needs the internet if the encoded link points somewhere online.

Static versus dynamic codes

The code this tool produces is static: the destination is baked into the pattern and cannot be changed after printing. That's ideal for permanent information and for privacy, since no third-party tracking service sits in the middle. Dynamic QR codes (offered by paid services) encode a short redirect URL so you can edit the destination or collect scan analytics later — useful for marketing, but it means a company logs every scan. For most personal and small-business needs, a static code is simpler, free, and more private.

Frequently Asked Questions

The Complete Guide to QR Codes: How They Work and How to Use Them

Everything you need to know about QR codes — how they encode data, what the different types mean, and how to generate one for free.

Read the guide →