QR Code Generator
Create QR codes for links, Wi-Fi, contacts and text, then download PNG or SVG.
Updated · Examples checked by automated tests
27 characters
Higher correction survives more damage but packs the pattern tighter, so a long value may need a bigger code.
About QR Code Generator
A QR code is just a way of writing data so a camera can read it. The pattern carries the value itself rather than an identifier, which is why a code you generate here keeps working with no service behind it and nothing to renew.
This generator covers the formats phones recognise automatically: a plain URL, a Wi-Fi network, an email address, a phone number, an SMS, or a vCard contact. Templates are provided for each so you do not have to remember the syntax.
How QR Code Generator works in your browser
Your text is encoded into the QR pattern entirely in your browser. The encoder picks the smallest version — the grid size — that can hold your value at the error correction level you chose, adds the Reed-Solomon recovery data that lets a damaged code still be read, and lays out the finder squares in three corners that tell a scanner where the code is and which way up it sits.
The result is produced as SVG, so it stays sharp at any size, and the PNG download rasterises that same vector at the pixel size you set. Nothing is uploaded: the link, Wi-Fi password or contact details you encode never leave the page, which matters more here than for most tools because a Wi-Fi QR code contains your network password in plain text.
When to use it
- Putting a link to a menu, form or page on a printed poster or flyer.
- Sharing Wi-Fi access with guests without reading a long password aloud.
- Adding a vCard contact code to a business card or email signature.
- Generating codes for a private or internal URL that should not pass through a third-party generator.
Worked examples
A short URL makes a small, easy-to-scan code
Settings: Error correction M
Input
https://ondevice-tools.org/Expected output
Version 3, 29 × 29 modulesFewer modules mean bigger squares at the same print size, which scan faster and from further away.
Higher error correction adds modules
Settings: Error correction H
Input
https://ondevice-tools.org/Expected output
Version 4, 33 × 33 modulesLevel H can recover from about 30% damage, useful when printing a logo over the code, but it needs more modules for the same text.
Limits and checks before you use the result
- Keep dark modules on a light background with strong contrast; many scanners fail on inverted or low-contrast codes. The tool warns about low contrast.
- Very long text cannot be encoded at high error correction. Shorten the text or lower the level.
- Test the printed code with two or three different phones before a print run.
Frequently asked questions
Do these QR codes expire?
No. The code encodes your value directly, so there is no redirect service in the middle that could expire or start charging. It keeps working for as long as whatever it points to does.
Is my data sent anywhere?
No. The code is generated by JavaScript in your browser, so the link, Wi-Fi password or contact details you encode never leave your device.
Which error correction level should I use?
Medium is a good default. Use High if the code will be printed small, placed on a curved surface or might get scuffed, and Low only when the value is long and you need to keep the pattern simple.
Can I put a logo in the middle?
Not in this tool. A logo covers part of the pattern and relies on error correction to survive, which is easy to overdo. Generate the SVG here and place a logo over it in a vector editor if you need one.
Why will my code not scan?
Usually contrast or inversion. Scanners expect a dark pattern on a light background; a light-on-dark code fails on many readers. Keep a clear margin around it and avoid low-contrast colour pairs.
What is the maximum length?
It depends on the error correction level and the type of characters. Numbers pack tightest, then uppercase letters, then arbitrary text. The tool tells you when a value will not fit.
Related tools
Image Compressor
Shrink JPG, PNG and WebP files without leaving your browser.
Image Resizer
Resize images to exact dimensions or by percentage, offline.
Crop Image
Crop images to a selection or a fixed aspect ratio.
Image Converter
Convert between JPG, PNG and WebP directly in the browser.
Image to Base64
Convert an image into a Base64 data URL for inline embedding.
Base64 to Image
Decode a Base64 string or data URL back into a downloadable image.