QR Generator
Stick text or a URL in, get a QR code back as SVG or PNG. Optional size, ecc, margin, and colors. Default is image/svg+xml; format=png returns image/png; format=json wraps the svg and a data URI. Nothing stored.
View DocsParameters
text string RequiredString to encode. Trimmed. Max 1024 characters.
Example: https://threethirds.dev
size number Output width and height in px, 64 to 1024. Default 256.
Example: 256
ecc string Error correction: L, M, Q, or H. Default M.
Example: M
format string svg (default), png, or json.
Example: png
Responses
200
OK Success{
"ok": true,
"text": "https://threethirds.dev",
"size": 256,
"ecc": "M",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"256\" height=\"256\" viewBox=\"0 0 256 256\">...</svg>",
"dataUri": "data:image/svg+xml;base64,..."
}400
BAD_REQUEST text is required400
BAD_REQUEST size has to be an integer from 64 to 1024400
BAD_REQUEST ecc has to be L, M, Q, or H