QR Code Generator
Type or paste anything — a link, a line of text, contact details — and the code rebuilds as you type. Choose how much damage it should survive, restyle the colors if you like, and download a print-ready PNG or a crisp SVG.
Private by construction: the code is generated entirely in your browser by an encoder built to the QR standard (ISO/IEC 18004) and verified module-for-module against an independent reference. Nothing you type is uploaded, and the page keeps working with the network unplugged after it loads.
Higher levels survive more damage (about 15% of the code can be damaged) but make a denser code.
Version 2 · 25 × 25 modules · 20 bytes · contrast 21.00:1
Embed this calculator on your website →
The formula
text → UTF-8 bytes → Reed–Solomon protection → module matrix
- Bytes first. Your text is encoded as UTF-8 bytes (the standard's byte mode), so accents, emoji, and non-Latin scripts all work — the counter under the box counts bytes, not characters, because bytes are what a QR code has room for.
- Smallest size that fits. Codes come in versions 1–40 (21×21 up to 177×177 modules). The tool picks the smallest version that holds your text at the level you chose — a shorter text makes a simpler, easier-to-scan code.
- Error correction is Reed–Solomon redundancy woven through the code: level L survives ≈7% damage, M ≈15%, Q ≈25%, H ≈30%. It is what lets a code with a coffee stain or a logo in the middle still scan.
- Exact, not approximate. Every matrix this page makes was verified bit-for-bit against an independent reference encoder across all 160 version-and-level combinations — a code that only “usually scans” is treated here as a bug, not a style.
Worked example: the words HELLO WORLD are 11 bytes — at level M they fit version 1, a 21×21 code. The same words at level H need version 2 (25×25), because stronger protection takes more room.
How it works
Why the code changes as you type. Every keystroke changes the data, and the pattern of modules is the data (plus its error correction). QR codes are not pictures of text — there is nothing to “style” without changing the message, which is why this tool restyles only the colors, never the pattern.
The quiet zone matters. The white border around the code (four modules wide) is part of the format — scanners need it to find the code's edges. The downloads include it; if you crop an image yourself, leave the border intact.
Colors are safe — within limits. Any dark-on-light pair with strong contrast scans fine; the tool measures the contrast of your pair with the WCAG formula and warns you below about 3:1, where many scanners start to fail. Black on white is 21:1 and always works.
Examples
- A restaurant menu link — paste the menu URL at level Q: the code survives a laminated card's worth of scratches and glare, and guests open the menu with one scan.
- A poster that may get weathered — level H and the 2048 px PNG: maximum damage tolerance at print resolution.
- A plain-text note — a WiFi password, a serial number, a short message: anything you would otherwise read out letter by letter.
Frequently asked questions
Is the text I type uploaded anywhere?
No. The encoder runs entirely in your browser — open your network monitor or unplug the network after the page loads and it keeps working. The text exists only in your tab.
Which error-correction level should I choose?
M is the everyday default. Choose Q or H if the code will be printed somewhere it can get dirty, scratched, partly covered, or photographed at an angle; choose L for the simplest possible code when it will only ever be shown clean on a screen.
How much text fits in a QR code?
In byte mode, from 17 bytes at the smallest size and level L up to 2,953 bytes at version 40 level L (1,273 bytes at level H). The tool shows the exact limit for your chosen level when a text is too long.
Can I put a logo in the middle of the code?
Not here, deliberately: a covered center is damage the error correction must absorb, and a styled code that fails on a stricter scanner is worse than a plain one that works everywhere. If you add a logo with an image editor, stay within the level's damage budget (about 15% at M, 30% at H) and test with several phones.
PNG or SVG — which should I download?
SVG for print and design work: it scales to any size with no blur. PNG for documents, slides, and messaging apps: pick a size comfortably larger than it will be shown (512 px covers most uses, 2048 px is for posters).
Related calculators
WiFi QR Code Generator
LiveMake a QR code guests can scan to join your WiFi — no typing the password. The payload is shown for checking, and everything is built in your browser.
Password Generator
LiveCreate strong random passwords with your browser's secure random generator — nothing is sent or stored.
Hash Generator
LiveGenerate SHA-256, SHA-384, SHA-512, or legacy MD5 hashes of any text in your browser — nothing ever uploaded; MD5 flagged insecure for security use.

