Generate a static QR code
generate_qr_codeEncode text or URLs into local static QR codes as PNG images or SVG markup; no dynamic or trackable codes, accounts, or API keys required.
Instructions
Encode text or a URL as a local static QR image (PNG) or SVG markup. Does not create a dynamic or trackable code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text or URL to encode, max 2000 characters | |
| size | No | Pixel size 128-2048, default 512 | |
| format | No | png (default) or svg | |
| background | No | Background color as #RRGGBB, default #ffffff | |
| foreground | No | Module color as #RRGGBB, default #0a0a0a | |
| error_correction | No | QR error correction L, M (default), Q, or H |