QR Code Generator

Generate a QR code from text, URL, or any payload. Pick foreground colour, background colour (or transparent), error correction level, margin and size. Returns SVG, base64 data URL, and ASCII preview.

DomainGeneral UtilityVersionv1.0.0Added2026-05-17
Inputs
Content
Anything you want to encode. URLs, plain text, Wi-Fi credentials, vCards, UPI strings.
Error Correction
L ≈ 7% recovery · M ≈ 15% · Q ≈ 25% · H ≈ 30%. Higher = more robust but bigger QR. Use H for logos overlaid on the code.
Foreground Colour
Hex (#000000), rgb(), or any CSS named colour. The dark modules of the QR.
Background Colour
Hex, CSS colour, or the literal word "transparent" for no fill.
Quiet Zonemodules
Empty border in QR modules. Standard is 4. Set 0 for edge-to-edge.
Sizepx
Output Format
svg = vector, infinite scaling, tiny file. png = lossless raster with transparency. jpeg = smaller, no transparency. webp = modern, smaller than png.
Result
version1.0.0
POST /v1/general-utility/qr-code-generatorView API docs →
curl -X POST https://toolsamurai.com/api/v1/general-utility/qr-code-generator \
  -H "Authorization: Bearer sk_live_•••••••••••••••" \
  -H "Content-Type: application/json" \
  -d '{
     "content": "https://toolsamurai.com",
     "error_correction": "M",
     "foreground": "#0c0c0d",
     "background": "#ffffff",
     "margin": 4,
     "size": 512,
     "format": "svg"
  }'
qr-codeqrbarcodegeneratorsvgutility