QR Code Generator
GeneratorsEverything runs locally in your browser — nothing is uploaded
Enter text or a URL above
Pick what the code should carry, fill in the fields, and the QR code appears as you type, ready to download as a PNG or a vector SVG. The type decides the syntax of the text inside the code, not the pattern itself — a WiFi code has to read `WIFI:T:WPA;S:…;P:…;;` for a phone to act on it, a contact card has to be vCard, a calendar event has to be iCalendar. This tool builds those strings for you, and the codes it produces are recognised as the same type by the QR reader on this site. Error correction is adjustable: a code printed on paper gets folded and smudged, and a higher level tolerates more damage (L about 7%, M about 15%, Q about 25%, H about 30%), at the cost of a denser pattern for the same content. A live readout shows how many bytes you have used out of the capacity for the selected level, counting each CJK character as three bytes. ⚠️ Scan the code yourself after changing the colours. Most scanners assume a dark code on a light background, so a light code on a dark background often will not scan — and that failure is silent: your image looks fine, the other phone simply does nothing. A warning appears when the contrast is too low, and “Swap colours” puts it back.
Features
- Thirteen content types: text / URL, WiFi, contact card (vCard), contact card (MeCard), calendar event, email, phone, SMS, location, UPI payment, app store link, WireGuard config, binary data
- Separators inside fields are escaped automatically, so a WiFi password containing a semicolon is not silently truncated — the usual cause of “it scanned but will not connect”
- Calendar events are converted to a UTC instant, so someone in another timezone sees the right local time
- UPI payment codes check the payee format and the amount, and add the `cu=INR` that NPCI requires
- WireGuard configs are checked before generation: key length, a mask in every AllowedIPs entry, a port on every Endpoint — mistakes that otherwise only show up as “it will not connect” on the phone
- Binary data accepts hex or Base64 and encodes it in byte mode, so high bytes are never expanded into two by UTF-8
- Adjustable foreground and background colours with a one-click swap; a warning when the contrast is too low to scan
- Live preview: the code is redrawn as you type, no button to press
- Four error correction levels: L, M, Q and H, tolerating roughly 7%, 15%, 25% and 30% damage
- Export at 256, 512 or 1024 pixels, drawn on whole-pixel module boundaries so edges stay sharp
- Download a vector SVG that stays crisp at any size, including print
- Byte usage and capacity shown live, turning red the moment you exceed the limit
How to use
- Choose a content type (WiFi, contact card, UPI, WireGuard…) — only the fields that type needs are shown
- Fill them in; the preview updates as you type
- Choose the export size, error correction level and colours
- Click Download PNG or Download SVG
FAQ
- Is the QR code content uploaded anywhere?
- No. The encoder is bundled into this page and everything happens in memory on your machine, with no network requests at all, so it works offline. QR codes often carry internal URLs, WiFi passwords or one-time login links, and sending those to a server-side generator would hand them over outright, which is why this tool never does that.
- Why does my WiFi code scan but not connect?
- The most common cause is special characters in the password that were never escaped. A `WIFI:` payload separates fields with semicolons, so a semicolon, comma, colon or quote inside the password has to be escaped — otherwise the scanner cuts the password short at that character. You see a password with a few characters missing while the code itself looks perfect. This tool escapes those characters (including the backslash itself) for you, so type the password as it is and do not add backslashes yourself. The other common cause is a hidden network: a router that does not broadcast its SSID has to be joined actively, and most phones only show a prompt after scanning, so you have to pick “Join network” by hand.
- Why will my code not scan after I changed the colours?
- Two reasons. First, not enough contrast: a QR code is read from its light and dark modules, so a foreground and background that are too close together (light grey on white, say) cannot be read by anything; the tool warns below 3:1. Second, a light code on a dark background: most scanners assume dark modules on a light background, and many older devices simply fail on the inverted case — so the inverted look is the one that “looks great and will not scan”. “Swap colours” puts it back. If you want to keep a dark background, use a dark foreground, test in good light, and always scan with a real phone before printing.
- Which error correction level should I use?
- Pick Q or H for anything printed on paper that may be folded or stained. M is plenty for codes shown on screen or embedded in a web page. A higher level needs more modules for the same content, which makes the pattern denser and the code larger, so higher is not automatically better.
- Why is the downloaded PNG not exactly 512 pixels?
- So that module edges are never blurred by anti-aliasing, which would hurt readability at low resolution. The PNG is drawn with a whole number of pixels per module and the final size is rounded down to a multiple of the module count, so it can come out slightly smaller than the size you picked. Use the SVG download when you need an exact size, since vectors scale cleanly.
- How much Chinese text fits?
- One CJK character is three bytes in UTF-8 and the capacity is measured in bytes, so roughly a third of the nominal character count. The live byte counter in the input panel saves you from doing that arithmetic.
- Can a UPI code actually take payments?
- Yes, but test it with a small amount first. The `upi://pay?…` string this tool builds is the standard UPI format, and any UPI-capable app that scans it opens the payment screen. Four things it cannot do for you: it is offline, so it does not check that the UPI ID exists (well-formed but non-existent handles happen); the amount is fixed in the code, and a payer can lower it but not raise it; the code is unencrypted and anyone who scans it can pay — so do not print it in a public place, and do not use it in place of a real order system. The note field also appears in plain text on the payment screen, so keep sensitive details out of it.
- What does the WireGuard check look for?
- Four things that leave people stuck: a missing `[Interface]` or `[Peer]` section, which makes clients refuse the import outright; keys that are not 44 Base64 characters ending in `=` (a single missing character is the classic transcription error); an `AllowedIPs` written as a bare IP with no mask, so the client routes nothing (`0.0.0.0` instead of `0.0.0.0/0`); and an `Endpoint` with no port, or a port outside 1–65535. What those have in common is that the QR code itself looks perfectly fine — the mistake only shows up as “it will not connect” on the phone. The check never rewrites your config; the payload is the text you pasted.
- What is the binary type for?
- It reads hexadecimal or Base64 text as bytes and encodes those bytes in byte mode, rather than encoding the characters themselves. The difference is real: to put the two bytes `FF 80` into a code, the ordinary text path treats them as UTF-8 characters and emits four bytes, so the scanned content no longer matches. Use it whenever you have a payload handed to you as Base64 or hex — a provisioning blob, a small binary protocol message, a string containing non-text bytes. The capacity is still 2953 bytes at level L, so it cannot carry a file.
Related tools
Base64
EncodingConvert text to Base64 and back, with correct UTF-8 handling for accents, CJK and emoji. Runs entirely in your browser — nothing is uploaded.
Password Generator
GeneratorsGenerate strong random passwords with a live entropy readout, so strength becomes a number you can compare. Passwords stay in memory, never uploaded.
UUID Generator
GeneratorsGenerate a column of UUID v4, v7, ULID, NanoID or MongoDB ObjectId values, one per line, ready to paste into a spreadsheet. Runs in your browser.
Lorem Ipsum
GeneratorsGenerate placeholder text as Latin lorem ipsum, English sentences, Chinese or Japanese filler, in paragraphs, sentences or words — all in your browser.
Mock Data
GeneratorsDescribe your fields once and get realistic mock records, exportable as JSON, CSV, TSV, SQL, XML, YAML or TOML. All generated in your browser.
Random Chinese Characters
GeneratorsGenerate random strings of Chinese characters from a common pool of about 850, or the full basic CJK block. Runs entirely in your browser.