search
QR Code Generator
Generate QR codes as SVG or PNG via a simple HTTP API—embed them in apps, docs, or print layouts.
terminal Basic Usage
GET https://placehold.cloud/qr?data=https://placehold.cloud&size=300&format=svg
Returns an SVG by default. Add format=png for a raster image (requires GD).
Query Parameters
data
Content to encode (required, max 2048 characters)
size
Output size in pixels (50–1024, default: 300)
format
svg or png (default: svg)
fg
Foreground (module) color, 6-digit hex without # (default: 000000)
bg
Background color, 6-digit hex without # (default: ffffff)
margin
Quiet zone in modules (0–10, default: 2)
ecc
Error correction: L, M, Q, or H (default: M)