QR Code Generator
Generate a QR code from any text or URL and download it as an SVG or PNG — created instantly in your browser.
- Free — No signup required
- Instant — Results update as you type
- Private — Processed in your browser
A QR code is a two-dimensional barcode that stores text directly in its pattern of black and white modules. A phone camera reads it, decodes the text, and if that text is a URL, opens it. Because the data lives in the image itself, a code generated here works forever, without a redirect service that could expire or track scans.
How it works
Type any text or URL. The tool builds the symbol in your browser with the qrcode-generator library, letting it choose the smallest of the 40 standard sizes (versions) that fits your data, and renders it as an SVG. Two controls shape the output:
- Size sets the pixel width of one module, from 3 to 12. It affects the PNG download and the preview; the SVG scales to any size regardless.
- Error correction chooses how much redundancy is encoded. Level L recovers from about 7% damage, M about 15%, Q about 25% and H about 30%. Higher levels produce a denser code for the same text.
Input is limited to 2,000 characters. Text is encoded in byte mode as UTF-8, so non-Latin scripts and emoji work, but each such character costs several bytes; long non-ASCII text at level H may exceed what version 40 can hold, and the tool asks for shorter input rather than producing an unreadable code.
Download SVG saves the vector file, the right choice for print, signage and anything that will be scaled. Download PNG paints the same modules onto a canvas with a white background and saves a raster image whose size is (modules + 8) × module pixels; the 8 accounts for the mandatory four-module quiet zone on each side.
Getting a code that scans
Keep the content short. A URL of 40 characters yields a small, forgiving code; a 500-character vCard yields a dense one that needs a good camera and steady hands. If you control the destination, point the code at a short path and redirect on your own server.
Include the scheme. https://example.com is recognised as a link by every scanner; example.com on its own may be treated as plain text.
Match error correction to the environment. M is fine for screens and clean paper. Use Q or H when the code will be printed small, placed outdoors, or when you intend to overlay a logo in the centre, which deliberately destroys some modules and relies on the redundancy to compensate.
Preserve the quiet zone and the contrast. Dark modules on a light background is what scanners expect; inverted or low-contrast colour schemes and cropped margins are the most common reasons a code fails in the field. Always test the final printed piece with more than one phone.
What the tool does not do
It does not shorten links, count scans, or let you change the destination after printing. Those features require a redirect service that sits between the scanner and your page, which is a trade-off: convenience and analytics in exchange for a dependency and a privacy cost for the person scanning. If you need dynamic codes, encode a URL you own and manage the redirect yourself.
It also does not generate Wi-Fi, calendar or payment codes from a form, although you can type those formats by hand; a Wi-Fi code is the string WIFI:T:WPA;S:NetworkName;P:password;;, for example.
Command-line equivalent
qrencode produces the same symbols from a shell:
qrencode -l M -s 6 -o qr.png 'https://example.com'
qrencode -l H -t SVG -o qr.svg 'https://example.com'
Learn more
Embedding the SVG output directly in a page, sizing it responsively and giving it a text alternative are covered in HTML5 essentials. If the code carries a URL with parameters, run the values through the URL encoder first, and if you need to shrink a PNG for the web, the image compressor will convert it to WebP.
FAQ
- Is the QR code generated locally?
- Yes. The QR code is generated entirely in your browser — the text or URL you enter is never sent to a server.
- Do QR codes generated here expire?
- No. The QR code directly encodes your text or URL, so it works for as long as the destination remains valid — there's no tracking link or expiry.
- What's the difference between SVG and PNG download?
- SVG is a vector format that scales to any size without quality loss, ideal for print. PNG is a fixed-resolution raster image, convenient for web use and sharing.