Skip to main content

Generate a QR code

Use the QR Code tool to generate a QR code from supported data. The tool returns the generated image as a Base64-encoded string together with information about the QR code.

Configure the QR code​

Select the output and data formats, then customize the QR code's appearance as needed.

SettingDescriptionRequired
Output formatThe format of the data URI output.Yes
Data formatThe type of data to encode in the QR code.Yes
MarginThe margin around the square QR code, in pixels.No
Foreground colorThe QR code's foreground color, in hexadecimal or RGB format.No
Background colorThe QR code's background color, in hexadecimal or RGB format.Yes

The available data formats are Email address, Email message, Phone call, Geolocation, SMS message, URL, Text, and WiFi.

Enter data to encode​

The fields available depend on the selected data format.

Email address​

FieldDescriptionRequired
Email addressOpens the device's email application and starts a message addressed to this email address when the QR code is scanned.No

Email message​

FieldDescriptionRequired
Email addressOpens the device's email application and starts a message addressed to this email address when the QR code is scanned.No
SubjectSets the email subject.No
BodySets the email body. The body can contain up to 150 characters.No

Phone call​

FieldDescriptionRequired
Phone numberOpens the device's phone application with this number when the QR code is scanned.No

Geolocation​

FieldDescriptionRequired
LatitudeThe latitude in decimal degrees.No
LongitudeThe longitude in decimal degrees.No
AltitudeThe altitude in meters.No

SMS message​

FieldDescriptionRequired
Mobile messageOpens the device's SMS application when the QR code is scanned.No
MessageSets the SMS text. The message can contain up to 130 characters.No

URL​

FieldDescriptionRequired
URLOpens this URL when the QR code is scanned.No

Text​

FieldDescriptionRequired
TextEncodes up to 200 characters of plain text. When scanned, the device displays the text and may offer actions such as search or share.No

WiFi​

FieldDescriptionRequired
Network SSIDIdentifies the Wi-Fi network that the device attempts to add when the QR code is scanned. This format is supported on Android and iOS 11 or later.No
Network authenticationThe Wi-Fi authentication type. Supported values are nopass, WEP, and WPA.No
Network passwordThe Wi-Fi password. The tool ignores this value when authentication is set to nopass.No

Response parameters​

FieldDescription
qr_dataData about the generated QR code.
imageThe QR code image as a Base64-encoded string.
errorAn error message when the QR code cannot be generated.

Was this article helpful?