On this page, you can find the instructions of the create-qr-code command which belongs to our QR code API ("Application Programming Interface"). You can use it to create own QR code images / symbols.
You may also start to embed in into your own web application, e.g. an QR code generator. Our page goQR.me is also using this API.
See Terms of Service: QR code API
Additional notes: There is no request limit, but we reserve the right to reject API requests. This applies especially to requests we consider abusive or inappropriate (i.e. if it seems to be a DoS attack). We therefore record the origin of all requests (referrer and IP address), but not the contents of the QR codes (see the notes on our privacy policy for more information). To make our work easier, please let us know, if your service will regularly cause more than 10 000 requests a day or if your service is blocked wrongly.
Send a GET request of following form to our system to get a QR code graphic as PNG image (=to generate a QR code):
http(s)://api.qrserver.com/v1/create-qr-code/?data=[URL-encoded-text]&size=[pixels]x[pixels]
Test it directly within your browser by requesting the following URL:
http://api.qrserver.com/v1/create-qr-code/?data=HelloWorld!&size=100x100
As you can see, it's easy to embed a QR code in your (X)HTML documents by using the <img> tag. The <img> tag
<img src="https://api.qrserver.com/v1/create-qr-code/?data=HelloWorld&size=100x100" alt="" title="" />
produces / shows the following QR code image:
To avoid problems with special characters, it is advisable to submitted the charset your data is encoded with via the charset-source parameter.
The command supports a wide range of parameters to configure the QR code creation. Simply use extra parameters by adding &[parameter-name]=[parameter-value] to your request.
All parameters can be submitted by HTTP-GET or HTTP-POST. You can mix both methods, too. If a parameter was submitted with POST and GET at the same time, the GET value will be used and the POST value will be ignored.
The text to store within the QR code (URL encoded, PHP programmers may use urlencode()).
Specifies the size of the QR code image you want to generate (in px for raster graphic formats like png, gif or jpeg); as logical unit for vector graphics (svg, eps).
Specifies the charset the text submitted via data parameter is encoded in. Note: you don't have to care about converting your data if charset-source and charset-target have different values, the API does all the needed work automatically.
Specifies the charset to encode the text submitted via data parameter with, before storing it within the QR code. Note: you don't have to care about converting your data if charset-source and charset-target have different values, the API does all the needed work automatically.
Defines the error correction code (ECC) which determines the degree of data redundancy. The more data redundancy exists, the more data can be restored if a QR code is damaged (i.e. scratches on a QR code sticker or something like that).
Color of the data modules as RGB value.
Color of the background as RGB value.
Thickness of a margin in pixels. The margin will always have the same color as the background (you can configure this via bgcolor). It will not be added to the width of the image set by size, therefore it has to be smaller than at least one third of the size value. The margin will be drawn in addition to an eventually set qzone value. The margin parameter will be ignored if svg or eps is used as QR code format (=if the QR code output is a vector graphic).
Thickness of a margin (="quiet zone", an area without disturbing elements to help readers locating the QR code), in modules as measuring unit. This means a value of 1 leads to a drawn margin around the QR code which is as thick as a data pixel/module of the QR code. The quiet zone will always have the same color as the background (you can configure this via bgcolor). The quiet zone will be drawn in addition to an eventually set margin value.
It is possible to create the QR code picture using different file formats, available are PNG, GIF, JPEG and the vector graphic formats SVG and EPS (=you can create QR code vector graphics / QR code EPS / QR code SVG as needed for professional printing).