← Back to generator

QR Code API

Generate QR codes via a simple GET request. No API key, no signup, no rate limits.

Base URL

GET https://qrmake.dev/api/generate?data=YOUR_TEXT_OR_URL

Returns a QR code image directly. Default format is SVG.

Parameters

ParameterTypeDefaultDescription
datastringrequiredText or URL to encode (max ~2953 bytes)
formatstringsvgsvg or png
sizeint256Image dimension in pixels (64 - 2048)
fgstring000000Foreground color (6-char hex)
bgstringffffffBackground color (6-char hex)
ecstringMError correction: L, M, Q, H
marginint4Quiet zone in modules (0 - 10)
transparentboolfalseTransparent background (SVG & PNG)
downloadboolfalseSet Content-Disposition: attachment

Examples

Basic SVG

https://qrmake.dev/api/generate?data=https://example.com
Try it →

PNG with custom colors

https://qrmake.dev/api/generate?data=Hello+World&format=png&size=512&fg=2563eb&bg=f0f9ff
Try it →

High error correction, no margin

https://qrmake.dev/api/generate?data=https://qrmake.dev&ec=H&margin=0&size=400
Try it →

Embed in HTML

<img src="https://qrmake.dev/api/generate?data=https://example.com&size=200" alt="QR code">

Use in Markdown

![QR](https://qrmake.dev/api/generate?data=https://example.com&size=200)

curl

# Download as PNG
curl -o qr.png "https://qrmake.dev/api/generate?data=https://example.com&format=png&size=1024"

# Download as SVG
curl -o qr.svg "https://qrmake.dev/api/generate?data=https://example.com"

Response

Returns the QR code image directly with appropriate Content-Type header (image/svg+xml or image/png). Responses are cached for 1 hour via Cloudflare CDN.

On error, returns JSON with an error field and appropriate HTTP status code.

{ "error": "missing required parameter: data" }

CORS

All responses include Access-Control-Allow-Origin: *, so you can call the API from any web page via JavaScript.

Limits

No API key required. No rate limits. No daily caps. Responses are cached on Cloudflare's edge network for fast global delivery.