Image

Generate QR Code

0calls
Free

Whether it's a URL, text or contact information, it can all be turned into a QR code! This is a very flexible QR code generation tool.

Overview

You provide a piece of text content, we generate the corresponding QR code image for you. You can customize size, foreground color, background color, support transparent background, and choose different return formats to suit different scenarios.

Query parameters

text
stringrequired

Any text content you wish to encode into the QR code, such as a URL, a paragraph of text or a JSON string.

size
integeroptional

Side length (square) of the QR code image, in pixels. Valid range is between 256 and 2048.

format
stringoptional

Specify the format of the response content. Optional values are image, json, json_url.

transparent
booleanoptional

Whether to use transparent background. When enabled, the generated PNG image will have alpha channel with transparent background.

fgcolor
stringoptional

QR code foreground color (i.e., the color of the QR code itself), in hexadecimal format. Need to encode # as %23 in URL.

bgcolor
stringoptional

QR code background color, in hexadecimal format. This parameter is ignored when transparent=true. Need to encode # as %23 in URL.

Response

200 / OK

Request successful. The format and content of the response depends on the format parameter you passed. Please refer to the definitions of different formats below.

Format 1image/png
Format 2application/json
JSON

400 / Bad Request

Request parameter error. Please check if text is provided, size is within valid range, and format is a supported value.

JSON

500 / Internal Server Error

Internal server error. An unknown error occurred during QR code generation.

JSON