Developer tools
Generate QR codes as PNG, SVG, JPG or GIF — for URLs, text, Wi-Fi, email, vCards, geo and UPI payment strings.
/qrfree allowance includedPNG · SVG · JPG · GIF
output formats
UPI
payment-string support
50–2000
pixel range
wifi · vcard · geo
payload types
About the API
Every Indian business now prints a UPI QR, and most apps need to mint QR codes on the fly — for payments, Wi-Fi logins or contact details. This endpoint generates them server-side in four formats with size, colour and background control.
The smart part is the payload types: pass a URL, Wi-Fi credentials, an email, a phone number, an SMS, a vCard or a full UPI payment string and it encodes the right format for you. Set json=1 to get the code back as a base64 data-URL instead of a file.
Who builds on this
Mint a UPI QR for every merchant or checkout on request — PNG for print, SVG for screens.
Generate scannable ticket and check-in codes at issuance time.
Print Wi-Fi login and menu QR codes per outlet without a design dependency.
Under the hood
Request
url / textrequiredthe payload — a link or plain text. Type auto-detected.
sizeoptionalpixels, 50–2000. Omitted → 200.
formatoptionalpng, svg, jpg or gif. Omitted → png.
color / bgoptionalhex colours, e.g. 6366f1 on ffffff.
jsonoptional=1 returns a base64 data-URL instead of a file.
Response
filethe QR image in the requested format.
qr (json=1)base64 data-URL — safe to drop into an <img src>.
Try it
{
"status": "ok",
"api": "qr",
"type": "upi",
"size": 400,
"format": "png",
"qr": "data:image/png;base64,iVBORw0KGgoAA…",
"content": "upi://pay?pa=you@upi&pn=YourName&size=400"
}Base64 truncated — drop the full value straight into an <img src>.
Free tier
Every endpoint includes a free monthly request allowance — the size differs from API to API. When your free requests run out, you move to a paid plan with the same key. No card needed to start.
Start with QR generator, free.
Create an account and we’ll issue your free API key in minutes — this endpoint included.
© 2026 API Mitra. All rights reserved.
service statusMade in India