Skip to content

QR Code Generator

Create PNG/SVG QR codes locally—no API.

Preview

Preview appears here after you process an image.

QR Code Generator builds PNG and SVG codes entirely in your browser with the qrcode library. Enter text or a URL, tune size and error correction, then download—no external API and no account.

How it works

Enter a payload, choose size and error correction, then Generate. The tool lazily imports qrcode, renders a PNG data URL and SVG string locally, and lets you download either format.

Benefits

  • No external API calls
  • Lazy-loaded qrcode dependency
  • PNG and SVG downloads
  • Configurable error correction

Use cases

  • Print packaging links
  • Share event URLs offline
  • Encode Wi‑Fi join strings carefully
  • Embed SVG QR in docs and slides

Best practices

  • Test scanability after printing
  • Prefer HTTPS URLs for web links
  • Use higher error correction for small prints
  • Avoid encoding secrets you would not write down

Common mistakes

  • Making the code too small to scan
  • Encoding private passwords in public materials
  • Forgetting to regenerate after editing text
  • Using low contrast dark/light colors

Privacy

Payloads are encoded locally. ToolHub never receives your QR content. Clear downloads on shared devices when finished.

Frequently asked questions

Does QR generation call an external API?
No. The qrcode library runs entirely in your browser after a lazy import. Nothing is sent to a server.
Can I download PNG and SVG?
Yes. Generate once, then download PNG from the toolbar or SVG via the dedicated SVG download button in the workspace.
What is error correction?
Higher levels (Q/H) survive more damage or logo overlays but produce denser codes. Use M for general links and H when printing at small sizes.
Is the library loaded eagerly?
No. qrcode is dynamically imported when you click Generate, keeping the initial tool bundle small.
Are Wi‑Fi QR codes secure to share?
Anyone who scans the code learns the password encoded in the payload. Treat Wi‑Fi QR exports like sharing the password in plain text.

Version 1.0.0 · Updated 2026-07-27 · 1 minute