QR Code Generator API
Generate SVG/Base64 QR codes for URLs, vCards, WiFi credentials, email, and phone. Free tier, no signup.
SVG / Base64
Lightweight SVG or base64 data URL. Embed in HTML or JSON APIs.
vCard QR
Contact cards with name, phone, email, org, address. Scan to save contact.
WiFi QR
SSID + password auto-join codes. WPA/WEP/open supported.
MCP Ready
JSON-RPC 2.0 MCP endpoint. Use with Claude, Cursor, or any MCP client.
Endpoints
GET/api/v1/generate?data=TEXTany text or URL
GET/api/v1/generate/base64?data=TEXTalways returns JSON
POST/api/v1/generateJSON body, supports type=email/phone
POST/api/v1/vcardcontact card QR
POST/api/v1/wifiWiFi credentials QR
POST/api/v1/emailmailto: QR
POST/api/v1/phonetel: QR
POST/mcpMCP JSON-RPC 2.0 (5 tools)
curl 'https://api.lazy-mac.com/qr-code/api/v1/generate?data=https://example.com'
# Base64 for embedding
curl 'https://api.lazy-mac.com/qr-code/api/v1/generate/base64?data=hello+world'
# WiFi
curl -X POST https://api.lazy-mac.com/qr-code/api/v1/wifi \
-H 'Content-Type: application/json' \
-d '{"ssid":"MyNetwork","password":"secret","encryption":"WPA"}'
View OpenAPI Spec