QR Code Generator
Generate scannable QR codes for any text, URL, email, or phone number. Customize size and error correction, then download as PNG or SVG.
Type something to generate a QR code.
Add this tool to your own site with one line of HTML. Free forever — just keep the small credit link.
How to use QR Code Generator
- Type or paste your content into the Text or URL box — a website link, plain text, an email address, or a phone number all work.
- Set the size in pixels. 256 px is fine for screens; bump it up for print so the modules stay large enough to scan from a distance.
- Pick an error-correction level: L, M, Q, or H. Higher levels survive more damage but pack the data into a denser grid.
- Adjust the margin (quiet zone). A margin of at least 2 modules around the code helps scanners lock on; do not crop it to zero.
- Download as PNG for sharing online or as SVG for print — the SVG is a vector and stays sharp at any size.
How QR codes encode your data
A QR code is a 2D matrix barcode defined by the ISO/IEC 18004 standard. Unlike a 1D barcode, which is a single row of bars, a QR code stores data across a grid of black and white squares called modules. The three large squares in the corners are finder patterns that let a scanner locate and orient the code even when the photo is rotated or skewed. The rest of the grid carries your data plus error-correction information.
Versions and sizes
QR codes come in 40 versions. Version 1 is a 21×21 grid; every step up adds four modules to each side, reaching 177×177 at version 40. A bigger version holds more data but needs more physical space and a sharper camera to read. This generator picks the smallest version that fits your content automatically — so the less you encode, the simpler and more reliable the code.
Error-correction levels L, M, Q, H
QR codes use Reed-Solomon error correction, which is why a code still scans with part of its surface dirty, torn, or covered. You trade data capacity for resilience across four levels: L recovers ~7% of damage, M ~15%, Q ~25%, and H ~30%. Higher levels reserve more of the grid for recovery data, so the same content produces a denser code. Pick H for codes printed on packaging or with a logo overlay; pick L only when you must squeeze maximum data into a small symbol.
What kind of data fits
QR codes have four encoding modes — numeric, alphanumeric, byte (UTF-8), and kanji — chosen automatically based on your input. Numeric data is the most compact (up to ~7,089 digits), alphanumeric is next (~4,296 characters), and arbitrary UTF-8 text is the least dense (~2,953 bytes). A QR code is just a string, so the convention is that scanner apps recognise prefixes: https:// opens a link, mailto: drafts an email, tel: dials a number, and plain text is shown as-is. To check what an existing code already holds before you scan it on your phone, you can decode a QR code from an image or your camera first.
The quiet zone matters
The blank margin around a QR code — the quiet zone — is part of the spec, not decoration. The standard calls for a margin of at least four modules. Cropping it tight or placing the code against a busy background is one of the most common reasons a code fails to scan. Keep the margin set to 2 or more here and leave clear space around it when you place it.
Encoding something more specific?
This generator handles any plain string, but several payload types have a dedicated tool that builds the exact prefix and escaping for you. If your goal is to connect guests to WiFi, share a contact, or trigger a text message, start with the purpose-built version rather than hand-typing the format here.
- • WiFi QR code generator — assembles the WIFI: credential string so a scan offers a one-tap join.
- • vCard QR code generator — wraps name, phone, and email in a BEGIN:VCARD block your phone can save.
- • QR code decoder — go the other way and read what an existing code holds before you act on it.
Frequently asked questions
Which error-correction level should I pick?
How much data can a QR code hold?
What is a QR version?
Is the QR generated on a server?
PNG or SVG — which should I download?
Why will my QR code not scan?
Can I put a logo in the middle?
Do these QR codes expire?
Related tools
More tools you might find useful in the same flow.
WiFi QR Code
WiFi QR code generator — create a code guests scan to join your WiFi network instantly, no typing passwords. Free, and credentials stay on your device.
vCard QR Code
vCard QR code generator — create a QR code that saves your name, phone, and email straight to a contact list when scanned. Free, made in your browser.
SMS QR Code
SMS QR code generator — create a QR code that opens a pre-filled text message to your number when scanned. Free, instant, and generated in your browser.
Barcode Generator
Barcode generator online — create Code 128, EAN, UPC, and Code 39 barcodes and download them as images. Free, instant, and made right in your browser.
Built by Muhammad Tahir · About