QR Code Generator
API call (curl)
curl -X POST https://quillly.com/tools/qr-code-generator/api/generate \
-H 'Content-Type: application/json' \
-d '{
"text": "https://quillly.com",
"size": 512,
"margin": 2,
"fgColor": "#0f172a",
"bgColor": "#ffffff",
"errorCorrection": "M",
"format": "png"
}'Free QR Code Generator API
Generate QR codes for URLs, WiFi networks, vCards, SMS, email, phone numbers, geo locations, and calendar events. Export as PNG (any size) or SVG (infinitely scalable). Customize foreground/background colors, quiet-zone margin, and error-correction level. No signup, no API key, no watermark. Use it free from our UI, or call the public API from your own code.
QR code use cases
- Website URLs — link to landing pages, portfolios, docs
- WiFi credentials — guests auto-connect on scan
- Contact cards (vCard) — save contact to phone in one tap
- Email templates — pre-filled subject + body
- Phone & SMS — tap to call or send pre-written text
- Locations — open address in maps app
- Calendar events — add event to calendar
Error correction levels explained
QR codes include redundant data so they can still be scanned even when partially damaged or covered:
- L (~7%) — smallest QR, minimal redundancy
- M (~15%) — balanced, default for most uses
- Q (~25%) — good for printing in small sizes
- H (~30%) — maximum, required when embedding a logo
PNG vs SVG — which to pick?
SVG is the right default for print, signage, anywhere you need the QR to scale cleanly (business cards, banners, documents). PNG is better for emails, chat messages, OG images, or any context where SVG isn't supported.
Using the API
POST to https://quillly.com/tools/qr-code-generator/api/generate with a text field and optional customization. You'll get back a signed R2 URL (3-hour expiry) or raw binary if you set response: "binary". Full spec at /tools/api-docs.