Skip to content
Deftkit

QR Code Generator

Free online QR code generator. Create high-quality QR codes for URLs, text, Wi-Fi and contacts — download as PNG or SVG.

QR code updates as you type — no submit button needed.

QR code preview will appear here

256 px · Error correction M

What is a QR code?

A QR code (Quick Response code) is a two-dimensional barcode that encodes text in a square grid of black and white modules. Denso Wave invented it in 1994 to track car parts on assembly lines; the design was intentionally made licensable and royalty-free, which is why it spread everywhere. Unlike a traditional one-dimensional barcode, a QR code encodes data both horizontally and vertically, which means it can hold substantially more information in a compact area. The maximum capacity at the largest code size (version 40) is roughly 4,000 alphanumeric characters, though in practice short URLs scan faster and more reliably than fully packed codes. Marketers, event organizers, developers, and business owners use QR codes daily to bridge physical media — signs, business cards, packaging, posters — with digital destinations.

How error correction works

One of the most misunderstood aspects of QR codes is error correction. Every QR code embeds redundant data so that a scanner can recover the original content even when the code is partially damaged, dirty, or obscured. There are four error correction levels:

  • L (Low) — recovers up to ~7% of damaged codewords. Smallest, densest code for a given input. Suitable for clean digital displays.
  • M (Medium) — recovers up to ~15%. The default in this tool and the best general-purpose balance between size and resilience.
  • Q (Quartile) — recovers up to ~25%. Good for industrial environments where codes may get scuffed or partially covered.
  • H (High) — recovers up to ~30%. Use for outdoor signage, printed materials that may fade, or whenever you want to embed a logo in the center of the code.

Higher correction means more redundant data, which means a larger, denser code for the same content. A 30-character URL encoded at level H may produce a noticeably bigger code than the same URL at level L. For clean screens and short-lived digital contexts, L or M is fine. For print materials, outdoor use, or anything that might degrade, choose Q or H. The reason some brands embed a logo in the center of a QR code is exactly this: they intentionally cover part of the code and rely on level H redundancy to still scan correctly.

Common uses

A QR code encodes any string of text. What that text means is determined by a convention the scanning app recognizes. Here are the most common patterns:

  • URLs / website links— the most common case. Paste any URL and the phone's camera app will offer to open it. Example: https://example.com/landing-page
  • Wi-Fi network sharing— encode the network credentials in the Wi-Fi URI format and most modern phone cameras will show a "Connect to network" prompt automatically. Format: WIFI:T:WPA;S:NetworkName;P:Password123;;
  • Plain text or messages — anything you want a phone to display directly, no app required.
  • vCard contact info — scanning opens a save-contact dialog. The string starts with BEGIN:VCARD and ends with END:VCARD.
  • Email — prefixed with mailto:, e.g. mailto:hello@example.com?subject=Hi
  • SMS sms:+1234567890
  • Phone call tel:+1234567890
  • Geographic location geo:37.7749,-122.4194
  • Crypto / Bitcoin payment URI bitcoin:bc1q...?amount=0.001

How to use this QR code generator

  1. Type or paste your text or URL into the input field. The QR code preview updates live with every keystroke — no submit button needed.
  2. Adjust the Error Correction level if needed. The default is M, which is the right choice for most uses.
  3. Adjust the Size if needed. The default (256 px) works well for digital sharing. Go larger if you are preparing a file for print.
  4. Click Download PNG for a raster image — good for slides, emails, and mobile apps.
  5. Click Download SVG for a vector image — best for posters, business cards, and any print material where you need to scale without losing quality.

Example

Input — a plain URL:

https://example.com

The generator encodes this string and renders a QR code grid. Scanning it with any modern phone camera opens the URL in the default browser. Now the same URL with error correction raised to H:

Input:             https://example.com
Error correction:  H  (~30% recovery)
Result:            A denser grid than level M — more modules,
                   same encoded content, more damage tolerance.

For Wi-Fi sharing, the input looks different but follows an exact format that phone cameras understand natively:

WIFI:T:WPA;S:MyHomeNetwork;P:Sup3rS3cr3t;;

Tips for QR codes that actually scan

  • Keep the encoded text short. Long inputs produce denser codes that fail at small print sizes. Use a URL shortener (TinyURL, Bitly, or your own redirect) before encoding if your URL is long.
  • Never crop the quiet zone. The white margin around the code is part of the spec. Cropping it causes scan failures. Keep at least 4 modules of white space on every side.
  • Respect minimum print size. About 2 cm × 2 cm at a viewing distance of 30 cm or less. For posters where someone scans from a meter away, 5 cm × 5 cm is the practical minimum.
  • Test with multiple phones before printing. Android and iOS camera apps use different decoding libraries with slightly different tolerances.
  • Black on white is most reliable. If you must use color, keep the dark modules dark and the light modules light with at least 50% luminance contrast. Never invert the code (light on dark) — older scanner firmware often fails on inverted codes.
  • Logo overlays need level H. If you place a logo in the center, use error correction H and keep the logo to 20% or less of the total code area. Test thoroughly — the tolerance math is tight.

Frequently asked questions

Is my data sent anywhere?

No. This free QR code generator runs entirely in your browser. The text, URL, Wi-Fi credentials, or contact data you enter never leaves your device. There is no server-side processing, no account required, and no analytics on your input. You can safely encode sensitive strings — internal URLs, network passwords, private contact details — and they stay local.

Why does my QR code change shape when I change error correction?

Higher error correction levels embed more redundant data. To fit that extra data, the code has to use more modules — a higher "version" in QR terminology. Each version adds four modules of width and height, so the code grows visually. The encoded content is identical across all levels; only the density and resilience change. If the size increase matters for your layout, drop to a lower correction level or shorten the input text.

Can I add a logo to the center?

This tool does not currently support logo overlay. You can do it manually in any image editor: export the code at error correction H, open it in Photoshop, Figma, or a similar tool, and place a logo no larger than 20% of the total code area centered over the code. The H level's ~30% recovery capacity absorbs the damage. Always test the result by scanning it with multiple phones before printing.

Why won't my long URL make a scannable code?

Long content forces a higher QR version, which means more modules. At small render sizes those modules become smaller than a phone camera can reliably resolve. The fix is to either shorten the URL — using a redirect service or your own domain — or render the QR code at a significantly larger size. As a rule of thumb, every additional 100 characters in the input roughly doubles the visual complexity of the output.

Are QR codes safe to scan?

Scanning a QR code is functionally the same as clicking a link from a stranger. Most modern phone cameras show the destination URL in a preview banner before opening it — read that banner. If the destination looks like a phishing URL or is unrelated to where you found the code, do not follow it. Treat unsolicited printed QR codes (the classic example: a sticker taped over a legitimate parking-meter code) the same way you would treat an unsolicited link in an email.

PNG or SVG — which should I download?

PNG for digital use: presentations, email signatures, social posts, mobile app assets. SVG for anything printed: posters, flyers, business cards, signage. SVG is resolution-independent, so it stays sharp at any size. PNG at the default 256 px render size will look pixelated if scaled up significantly on screen or in print — either download at a larger size or use SVG.

Does this tool support color or styled QR codes?

Not in this version. The output is black on white because that is the combination all scanners handle reliably across all lighting conditions. Color QR codes are technically valid but introduce failure modes — low contrast between module colors, certain hue combinations that confuse the decoder — that are difficult to test exhaustively. If you need a branded or styled QR code, create the base code here, then apply styling carefully in a vector editor and test the result on multiple devices before distributing.