Change the content, colors, rounded corners, shape, logo, size and PNG/SVG format to get a matching QR code image URL you can embed directly in web pages and emails.
QR code generator
When scanned: Opens the link or shows the text
Generating preview…
https://api.imgrender.net/v1/qrcode?data=https%3A%2F%2Fwww.imgrender.net&format=png&size=150Current parameters
When a web page, email or document needs a QR code, the usual flow is to make one in a generator, download it and upload it before you can use it.
The QR code generator API skips all that: a GET request to a URL returns the image, so the URL itself is the QR code. Put it in an <img src> or an email and it shows up, with no downloading, uploading or rendering on your side.
Just the content to encode (a URL or text). URL parameters control the style: format, size, quiet zone, error-correction level, colors, module shape and center logo.
data must be URL-encoded; colors are hex only, with # written as %23. For Wi-Fi, vCard, mailto and the like, build the standard string yourself and pass it in; see the API docs below.
A GET request with query parameters that returns the image on success. You can open it directly in a browser.
https://api.imgrender.net/v1/qrcode?data=https%3A%2F%2Fwww.imgrender.net
More parameters below.
All parameters go in the query string. data is required; the rest are optional. String enums are case-insensitive. See below for the values and formats of data, frontcolor / backcolor and shape.
dataformatsizemarginecLevelfrontcolorbackcolorshapecenterImagecenterImageSizeRatioUnknown parameters are ignored.
data accepts URLs, plain text and standard strings you build yourself, such as Wi-Fi, vCard and mailto. What happens on scan depends on the format; common types are below.
frontcolor and backcolor are hex only (3, 6 or 8 digits). The # is optional; if you include it, write it as %23. Eight digits with alpha 00 gives a transparent background. Color names and rgb() are not accepted:
3 digits: f006 digits: ff00008 digits, transparent: FFFFFF00shape accepts these module shapes:
square
Square
rounded-square
Rounded square
circle
Circle
diamond
Diamond
horizontal
Horizontal bars
vertical
Vertical bars
The body depends on the format parameter. Image URLs never expire and the same parameters always give the same result. Success responses include Cache-Control: public, max-age=86400 and Access-Control-Allow-Origin: *.
Errors use the HTTP status code, with the reason as plain text.
centerImage of another one (no nesting).ecLevel=H, and test scanning on a real device; transparent areas of the image may show modules through.size, keep enough quiet zone and use ecLevel=H.GET https://api.imgrender.net/v1/qrcode?data=https%3A%2F%2Fwww.imgrender.net
GET https://api.imgrender.net/v1/qrcode?data=hello&format=svg&shape=circle&frontcolor=%23f00&backcolor=%23FFFFFF00
GET https://api.imgrender.net/v1/qrcode?data=https%3A%2F%2Fexample.com&ecLevel=H¢erImage=https%3A%2F%2Fexample.com%2Flogo.png¢erImageSizeRatio=0.3
<img src="https://api.imgrender.net/v1/qrcode?data=https%3A%2F%2Fexample.com" width="180" height="180" alt="QR code image" />
curl -o qr.png "https://api.imgrender.net/v1/qrcode?data=https%3A%2F%2Fexample.com&size=512&ecLevel=H&shape=rounded-square&frontcolor=%23007bff"
const qr = document.getElementById('qr');
qr.src = 'https://api.imgrender.net/v1/qrcode?data=' + encodeURIComponent('https://www.imgrender.net') + '&size=256';import requests
url = "https://api.imgrender.net/v1/qrcode?data=" + requests.utils.quote("https://www.imgrender.net")
open("qr.png", "wb").write(requests.get(url).content)GET https://api.imgrender.net/v1/qrcode?data=WIFI%3AT%3AWPA%3BS%3Amywifi%3BP%3Apass123%3B%3B
These three images were generated by the QR code generator API; change the URL parameters to reproduce them.
ecLevel=H, and test on a real device.data value that's too long returns 400; shorten or split long text.No. There's no sign-in and no key; just call it.