Files are processed locally in your browser and never uploaded

QR Code Generator

Three sections — "URL Link", "Text", and "Batch" — generate QR codes in real time. Adjust size, margin, and foreground/background colors, and download as PNG or vector SVG. The batch section generates multiple codes at once with packaged download. Your content never leaves your browser.

URL
Enter the full URL (including https://) so scanners can open it directly

Enter a URL to generate a QR code in real time

Size
Pixel side length of the exported PNG (preview always scales proportionally)
Margin 2
Quiet zone around the code; 2–4 modules recommended
Error Correction Level
Higher levels tolerate more damage but make denser patterns
Foreground Color
Background Color

QR codes are generated locally in your browser; your input is never uploaded.

Enter a URL or text to generate a QR code, or batch-generate many at once. Content is encoded locally in your browser and never uploaded. This guide explains how to balance error correction level, margin, and colors.

What is a QR code?

A QR code encodes text, URLs, and other information into a black-and-white block pattern that a phone camera can scan to restore the content.

The longer the content, the denser the pattern and the more modules. The same content also becomes denser at a higher error correction level.

How to choose the error correction level?

The error correction level decides whether the code can still be scanned when partially blocked or worn: L about 7%, M about 15%, Q about 25%, H about 30%.

  • On-screen display in a clean environment → M is usually enough
  • Printed, possibly worn, or stuck onto textured surfaces → choose Q or H
  • Overlaying a logo in the center of the code → H is the safer choice

What is the margin (quiet zone)?

A QR code needs a ring of whitespace around it so scanners can identify its boundary accurately. This ring is called the quiet zone.

Keep a margin of 2–4 modules. Setting the margin to 0 and placing the code flush against other graphics may make it unscannable.

Colors and contrast

QR codes are recognized through light-dark contrast: the foreground (modules) should be darker than the background. Stronger contrast is more reliable.

A light foreground on a dark background, or insufficient contrast between the two, may fail on some scanners. Keep a dark foreground + light background.

Download PNG or SVG?

PNG: fixed pixels, suitable for sending directly in chat apps or inserting into documents. Choose a larger size if you need to enlarge it.

SVG: vector format that never blurs when enlarged, suitable for printing or design layouts.

URL, text, and batch generation

The main interface has three independent sections: URL link, text generation, and batch generation. Each keeps its own input, without interfering with the others.

  • URL link: enter a full URL that opens directly after scanning, with a live preview on the right
  • Text generation: encodes arbitrary text, supporting Chinese and line breaks
  • Batch generation: one item per line, generates multiple QR codes at once, downloadable one by one or packaged as a ZIP

FAQ

Will my input be uploaded?
No. QR codes are generated locally in your browser, and input content is never sent to any server.
Why does the generated QR code fail to scan?
Common causes are a too-small margin, insufficient contrast, or a stretched distorted pattern. Keep a 2–4 module margin and use a dark foreground with a light background.
Can the QR code colors be changed?
Yes. Keep the foreground darker than the background with sufficient contrast, otherwise some devices may fail to recognize it.
Does a QR code have a capacity limit?
Yes. The longer the content, the denser the code, and exceeding the encoding limit reports an error. URL content is usually far below the limit.
Can multiple QR codes be generated at once?
Yes. Switch to "Batch generation", enter one item per line, click generate, then download them one by one or package all of them as a ZIP. Empty lines are ignored automatically.