QR Code Generator
Generate QR codes by adding query parameters to the URL
Usage
Add query parameters to generate a QR code:
/?data=YOUR_TEXT_OR_URL&size=200&color=000000Parameters
- data (required) - Text or URL to encode (max 8000 characters)
- size (optional) - Size in pixels, 21-1000 (default: 200). Larger values are clamped to 1000.
- color (optional) - Hex color without # (default: 000000)
- format (optional) - png (default) or svg. SVG is vector based and much cheaper to render.
Examples
API Endpoint
You can also use the API endpoint directly:
GET /api/qrcode?data=YOUR_TEXT_OR_URL&size=200&color=000000Limits
- size is clamped to 1000 px. A PNG raster needs
4 x size²bytes, so oversized requests are bounded to protect the server. - data must still fit in a QR code (byte mode holds roughly 2300 characters); longer payloads are rejected with
400. - Renders are queued and limited in parallel. Under extreme load a request may return
503withRetry-After- retry after a second. - Repeated requests are served from a cache. For large images prefer
format=svg, which is vector based and far cheaper to render.