QR code generator
Make a static QR code for a web address, a Wi-Fi network, a contact card, an email, a text message or a location. No account, no expiry, optional logo, print-ready SVG. Everything is encoded in this page.
Type and the code redraws. Everything is encoded in this page.
The version, size and capacity used are shown here once there is a code.
Static codes, and why they never expire
A QR code is just a way of writing bytes as black and white squares. The code this page makes contains your web address, Wi-Fi details or contact card itself, which is why it works for ever: there is nothing to expire, nobody to pay, and no server that can go away. The “QR codes that stop working after 14 days” you may have met are a different product. Those services encode a short link to their own server, which then redirects to your page; the redirect is what they charge a subscription for, and when you stop paying, every poster you printed goes dead. The trade is that a redirect can be changed later and counted. If you need either of those, you need a dynamic code; if you just need the code to work, a static one is better, and this is one.
The flip side is that a static code is only as short as its content. A long URL with tracking parameters makes a dense code that is harder to scan from a distance; trim it to what the page actually needs. The information line under the preview tells you which version (size) the code came out at and how much of its capacity you used.
Content types and the formats phones expect
A phone camera decides what to do with a scanned code by looking at how the text starts, and a code that is merely “the right information” in the wrong shape produces a plain-text popup instead of an action. Each type here writes the convention the phone makers follow:
- Web address — the URL as-is, with
https://added if you left it off, because a bareexample.comis treated as text by some scanners. - Wi-Fi —
WIFI:T:WPA;S:network;P:password;;, the format Android and iOS both recognise to offer “Join this network”. Semicolons, commas, colons and backslashes in the name or password are escaped as the format requires. Choose open network for a café network with no password; the hidden flag is needed for a network that does not broadcast its name. WPA covers WPA2 and WPA3; WEP is listed only for old equipment. - Contact — a vCard 3.0 with the name split correctly into family and given names, mobile and work numbers typed, and the address in the structured field, so “Add contact” appears with the fields already in the right places. vCard is the only contact format every phone imports; MeCard, the smaller alternative, is not understood by iOS.
- Email — a
mailto:link with the subject and body URL-encoded, which opens a pre-filled message. Text message —SMSTO:number:message. Phone —tel:+1...; include the country code so it dials from abroad. Location —geo:lat,lng, which opens the default map app at that point.
Error correction, and the price of a logo
Every QR code carries Reed–Solomon error-correction data alongside the content, which is what lets a torn, smudged or partly covered code still scan. The four levels recover roughly 7%, 15%, 25% and 30% of damaged codewords, at the cost of a bigger code for the same content. M is the right default: plenty of margin for a slightly scuffed print, without the extra density of Q or H. If the code will be small or on a surface that gets scratched — a sticker on equipment, a menu that gets wiped — go to Q. If the content fits a given size with room to spare, the level is raised for free and the information line says so.
A logo in the middle works by exploiting that redundancy: the modules it covers are simply lost, and the scanner reconstructs them. That is why adding a logo switches the level to H automatically and caps the logo at 30% of the code’s width (9% of its area), well inside what level H can recover. Keep the logo small, keep a white box around it (added for you), and test the result on a real phone; a logo that covers one of the three large corner squares or the small alignment square will break the code regardless of level. The logo is drawn on top of the code; it is not encoded in it, so a scanner that cannot see it loses nothing.
Size, margin and colour for printing
The rule of thumb for size is one tenth of the scanning distance: a code to be scanned from 30 cm (a table card) needs to be 3 cm across; a poster read from 3 m needs 30 cm. Each module must print as at least two or three printer dots, which for a version 4 code (33 modules plus the margin) at 300 dpi means about 1 cm minimum; smaller than that, use the SVG and let the printer rasterise it. The SVG is the file to give a printer or drop into a design: it scales without blurring. The PNG is for screens, documents and slides; 1024 px is plenty for a slide, 4096 for a large print from a bitmap-only workflow.
The quiet zone — the blank margin — is part of the specification, four modules wide. Scanners use it to find the edges; placing a code hard against a border or other artwork is the most common reason a printed code fails. Reduce it only if you are adding white space yourself.
Colours are fine as long as the squares are much darker than the background. The page warns when the contrast falls below about 4:1 and when the colours are inverted (light squares on dark), which many phone scanners refuse. Round dots are a style choice that costs a little scanning margin; keep them for codes that will be large and clean.
How much fits
At the largest size (version 40, 177×177 modules) and the lowest correction level, a code holds 7,089 digits, 4,296 upper-case letters and digits, or 2,953 bytes of anything else — text is encoded as UTF-8, so accented letters take two bytes and Chinese or emoji three or four. A sensible printed code is version 10 or below (57×57), which at level M holds about 213 bytes: a URL, a Wi-Fi login or a contact card with a few fields. The encoder picks the smallest version that fits, choosing numeric or alphanumeric mode when the content allows (digits-only content, such as a tracking number, packs three digits into ten bits).
How it was checked
The encoder was written from the ISO/IEC 18004 specification and tested against an independent implementation: 497 codes across all four levels, versions 1 to 40 and every mask pattern came out identical module for module. The codes this page produces were then rendered and read back with two different decoders. Everything — encoding, drawing, the logo overlay and the file export — happens in your browser; the content you type is not sent anywhere, which matters when it is a Wi-Fi password.
Common questions
Do these QR codes expire?
No. The content is encoded in the code itself, so it works for as long as the thing it points to exists. Codes that expire come from services that encode a redirect through their own server and charge to keep it alive. The trade-off is that a static code cannot be edited after printing.
Can I add my logo?
Yes. Choose an image under Logo and it is drawn in the centre on a white panel. The error-correction level is switched to H and the logo is limited to 30% of the width so the covered squares can be recovered. Always test on a phone before printing a thousand of them.
Which error-correction level should I use?
M for almost everything. L only when the content barely fits and the print will be clean. Q for codes that will be small, scuffed or on a curved surface. H is set automatically when you add a logo.
Why does the Wi-Fi code not work on my phone?
Check the password for typos, and check the security type: most home routers are WPA2 or WPA3, which the WPA setting covers. iPhones join Wi-Fi codes from the Camera app directly; on older Android phones you may need the Google Lens or a scanner app. Hidden networks need the Hidden box ticked.
Is the text I type sent to a server?
No. The code is computed and drawn in this page, in your browser. Nothing is transmitted, which is the point when the content is a Wi-Fi password or a personal phone number.
PNG or SVG?
SVG for anything that will be printed or placed in a design: it is vector and stays sharp at any size. PNG for slides, documents, web pages and messaging; 1024 px suits most uses, 4096 px for large bitmap-only prints.
How big does a printed QR code need to be?
About one tenth of the distance it will be scanned from: 3 cm for a table card, 30 cm for a poster read from 3 metres. Keep the blank margin around it; codes crammed against a border are the usual scanning failure.
Can a QR code hold a whole document or a photo?
No. The maximum is 2,953 bytes of text, and a code that large is hard to scan. Put the file online and encode the link, or for a PDF use the link to it.