DevToolbox

Free Online QR Code Generator

Generate QR codes instantly from any text or URL. Customize size, error correction, and colors. Download as PNG or SVG. Free, 100% client-side — nothing is uploaded.

100% Client-Side · Your data never leaves your browser
0 chars

Options

256px
128px512px

~15% data recovery

#000000
#ffffff
2 modules
QR code will appear here

How to Use QR Code Generator

Type or paste any text, URL, or data into the Text or URL field. The QR code preview updates automatically as you type.

  • Size — drag the slider from 128px to 512px to set the output image size.
  • Error Correction — choose L, M, Q, or H. Higher levels make the code more damage-resistant at the cost of density. M is a good default.
  • Colors — click the color pickers to set custom dark and light colors. Ensure strong contrast for reliable scanning.
  • Margin — sets the quiet zone around the code (1–4 modules). Most scanners require at least 1.

Click Download PNG for a raster image or Download SVG for a scalable vector version. A warning appears if your input exceeds 500 characters, since dense QR codes can be harder to scan.

Frequently Asked Questions

What is a QR code?

A QR (Quick Response) code is a two-dimensional barcode that encodes text, URLs, or other data as a matrix of black and white squares. Smartphones and dedicated scanners can read it instantly using a camera.

What do the error correction levels L, M, Q, and H mean?

Error correction allows a QR code to be scanned even when partially damaged or obscured. Level L recovers ~7% of data, M ~15%, Q ~25%, and H ~30%. Higher levels produce denser codes. Use H when the code will be printed on materials that may get scratched.

How much data can a QR code hold?

A standard QR code can store up to 4,296 alphanumeric characters, 7,089 numeric characters, or 2,953 binary bytes. Capacity decreases as the error correction level increases. For URLs, stay under 200 characters for best scan reliability.

Can I customize the QR code colors?

Yes. You can set any dark and light color using the color pickers. Make sure there is sufficient contrast between the two colors — low contrast codes may not scan reliably. Avoid very light dark colors or very dark light colors.

Is my data uploaded to a server?

No. All QR code generation happens entirely in your browser using the open-source qrcode library. Your text or URL never leaves your device.

What format should I download — PNG or SVG?

Use PNG for quick sharing, embedding in documents, or printing at a fixed size. Use SVG for print projects, logos, or any use case where you need to scale the code to any size without quality loss.

Related Tools