QR Code Generator

Generate QR codes on demand from a URL. Supports PNG, SVG, JPEG, WebP output, custom colors, error correction level, and quiet-zone margin. Bulk mode turns a list of lines into a ZIP of individually named QR codes — handy for business cards, event badges, and printable sheets.

← Back to Tools

Error correction (higher = more damage-tolerant, larger)
Format
QR preview
AI instructions — paste into Claude / Cursor / ChatGPT
URL template — replace the highlighted tokens
https://anhtu.dev/tool/qr?data=YOUR_DATA&size=SIZE&fg=FG&bg=BG&ecc=ECC&margin=MARGIN&format=FORMAT
  • YOUR_DATA — required, URL-encoded, up to 2000 chars
  • SIZE — optional pixel size, 64–2048 (default 512)
  • FG — optional foreground color, hex or name
  • BG — optional background color, hex or name
  • ECCL, M, Q (default), H
  • MARGIN — optional quiet-zone modules, 0–16 (default 2)
  • FORMATpng, svg, webp, jpg
HTML <img>
Markdown