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.
Frequently Asked Questions
Do these QR codes expire?
No. These are static QR codes — the data is encoded directly in the pattern, so they never expire and need no tracking, account, or subscription to keep working.
What size should I export for print?
Use SVG for print because it scales to any size without blurring, or a PNG of at least 1000 by 1000 pixels. Keep the quiet margin around the code so scanners can find it.
Why is my QR code not scanning?
The usual causes are low contrast and too little margin. Keep a dark foreground on a light background, avoid inverting the colors, and raise the error-correction level if you place a logo over the code.
Can I add a logo in the middle?
Yes. Set error correction to level H, which adds about 30 percent redundancy, so the code still scans even with a logo covering the center.
Related free tools
Browse all toolsPick any color and convert between HEX, RGB, and HSL. Explore shades and tints.
Create beautiful CSS linear, radial, and conic gradients with live preview and presets.
Create CSS box shadows visually. Adjust offset, blur, spread, and color with live preview.
Generate color palettes from a base color. Complementary, analogous, triadic, tetradic, split-complementary.