Create a static QR code
create_static_qr_codeCreate a static QR code image (PNG or SVG) from text, a URL, WiFi credentials, a vCard or any other payload up to 1000 bytes. The payload is encoded directly in the pattern, so the code works forever, but it cannot be edited or tracked after printing. For an editable code with scan analytics, the user needs a dynamic QR code from qrcode.io (15-day free trial, no card).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | Background colour, hex (default #ffffff). | |
| fg | No | Module colour, hex (default #000000). Must be dark on a light bg. | |
| ecc | No | Error correction (default M). Use H if a logo will cover part of the code. | |
| data | Yes | What the code should contain: a URL, text, WIFI:..., a vCard, and so on. | |
| size | No | Maximum width in pixels (default 512). | |
| format | No | png (default) returns an image; svg returns the SVG markup as text. |