Generate QR Code
qrserver.qr.generateGenerate QR code images from text or URLs. Customize size, color, background, format (PNG or SVG), and error correction level. Returns a direct image URL.
Instructions
Generate a QR code image URL from text or URL — customizable size, color, background, format (PNG/SVG), error correction level. Returns direct image URL (goqr.me)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text or URL to encode into a QR code (required) | |
| size | No | Image size in WxH pixels, e.g. "200x200", "400x400" (default: "200x200") | |
| format | No | Image format: "png" or "svg" (default: "png") | |
| color | No | Foreground color as 6-digit hex without #, e.g. "000000" for black (default: "000000") | |
| bgcolor | No | Background color as 6-digit hex without #, e.g. "ffffff" for white (default: "ffffff") | |
| margin | No | Quiet zone margin in modules around the QR code (default: 1) | |
| ecc | No | Error correction level: L (7%), M (15%), Q (25%), H (30%) — higher allows more damage tolerance (default: "L") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |