QR code generator API — PNG, SVG, or data URL in one GET request
Generate QR codes for URLs, text, or any data with a single GET or POST request — choose PNG, SVG, or base64 data URL output, and set size and error-correction level.
No credit card · Free to start · X-API-Key header auth
What's included in /tools
GET or POST
GET ?data=...&format=png for quick generation. POST JSON for the same parameters without URL encoding issues.
3 output formats
PNG (binary), SVG (vector), or dataurl (base64 string) — cover every embedding and print use case.
Configurable size
64px to 2048px — from favicon-sized thumbnails to print-ready QR codes.
Error correction levels
L (7%), M (15%), Q (25%), H (30%) — use H for logos overlaid on QR codes.
Pairs with /tools/url/shorten
Shorten a URL then generate its QR code — two calls, one shareable asset.
Start using the QR code API today
Free tier — 250 calls/month, no credit card. Upgrade when you need more.
Frequently asked questions
Can I use the data URL format in HTML directly?
Yes — format=dataurl returns a base64-encoded PNG you can embed as an <img src='data:image/png;base64,...'> without a separate request.
What error correction level should I use?
H (30%) if you plan to overlay a logo on the QR code. M (15%) for clean codes without overlay.
Is there a size limit?
Size must be between 64 and 2048 pixels. 300px is good for web; 600px+ for print.
Related API guides
URL Shortener API — Custom Codes, Expiry, Analytics
REST API to shorten URLs with optional custom codes and expiry dates. GET analyt…
Read guideOCR API — Extract Text from Images, Free Tier, No Setup
OpenAI-powered OCR REST API. POST a multipart image or a public image URL, get e…
Read guideRapidAPI Alternative — One Key, 34 APIs, No Per-API Billing
Tired of managing multiple API keys and invoices? APlicious gives you 10 live na…
Read guideOne key unlocks all 10 namespaces — finance, legal, property, jobs, wellness, and more.
View all plans and pricing →