QR code generator: a QR code as SVG for any text or URL
qrGenerate a QR code for a URL or any text (UTF-8, up to 1,000 characters) as a scalable SVG plus a ready-to-embed data URL, at error correction L, M (default), Q or H. Use to put a link, Wi-Fi string or payment request on a page, label or ticket. Example: text=https://agent-data-tools.revmesh2074.workers.dev. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | Error correction: L, M (default), Q or H | |
| size | No | Pixels per module, 1-20 (default 4) | |
| text | Yes | The text or URL to encode | |
| margin | No | Quiet zone in modules, 0-10 (default 4) |