DEVELOPER DOCUMENTATION

QR Code Generator Parameters

Encode text, numbers, or links as QR Code images. Choose the symbol version, encoding, error correction and rendering options.

QR Code / API
QR Code barcode example
GET /demos/qrcoded.phpHTTP / HTTPS
API OVERVIEW

One request. One barcode image.

Specify the data and optional barcode settings through the BCMaker generator endpoint. The QR demo demonstrates GET requests with form parameters.

GEThttps://www.bcmaker.com/demos/qrcoded.php
Parameters listed13
Reference valuesDemo form
Barcode typeQR Code
01 / BASICS

Image & Data

Define the content and requested size of the QR Code image.

Image & Data parameters
ParameterDescriptionAccepted valuesDefault
dataText or other data that the QR symbol should contain.URL-encoded text, URL, or numeric string1234567
xdimSize of one QR Code module in pixels when the output dimensions are not forced.Positive pixel value4
wOptional output image width.Pixels; leave empty for automatic sizing—
hOptional output image height.Pixels; leave empty for automatic sizing—
02 / ENCODING

Encoding & Correction

Choose the QR symbol version, data representation and correction strength.

Encoding & Correction parameters
ParameterDescriptionAccepted valuesDefault
versionPreferred QR Code version. Larger versions provide more modules and capacity.0 = Auto; 1–40 = versions 1 through 400
modeHow input data is encoded.0 = Auto; 1 = Numeric; 2 = Alphanumeric; 3 = Byte; 4 = Kanji0
eclError-correction level of the QR Code.0 = L (7%); 1 = M (15%); 2 = Q (25%); 3 = H (30%)1
03 / APPEARANCE

Appearance & Colors

Control barcode rotation, quiet zones and foreground/background colors.

Appearance & Colors parameters
ParameterDescriptionAccepted valuesDefault
angleRotation of the generated symbol.0, 90, 180, 270 degrees0
quietInclude the clear margin surrounding the QR symbol.0 = Hide; 1 = Show1
bcolorBackground RGB color; omit the leading # character.Six hexadecimal digits (e.g., ffffff)ffffff
fcolorColor of dark QR Code modules.Six hexadecimal digits (e.g., 000000)000000
04 / UTILITIES

Additional Request Fields

Fields present in the demonstration request.

Additional Request Fields parameters
ParameterDescriptionAccepted valuesDefault
debugRequests diagnostic information when supported by the generator.Example request includes debug=1—
submitName/value emitted by the legacy HTML submit button.Optional form field; not a barcode setting—
EXAMPLE REQUEST

Generate a QR Code barcode

This example encodes 1234567 and includes the settings from the BCMaker demonstration request.

QR Code • GET
https://www.bcmaker.com/demos/qrcoded.php?data=1234567&version=0&mode=0&ecl=1&angle=0&quiet=1&bcolor=ffffff&fcolor=000000&xdim=4&w=&h=&submit=+Generate+QRCode+&debug=1
GOOD TO KNOW

Implementation Notes

01

Demo values versus CGI defaults

The values in the Default column for QR Code are the settings selected in the BCMaker demo form and your working GET example. An independent QR CGI help response could not be verified.

02

Version and ECC

L, M, Q and H correspond to approximately 7%, 15%, 25% and 30% damage recovery; increasing correction generally reduces available data capacity.

03

Color encoding

Use RGB without the # sign: ffffff for white, 000000 for black and 0000ff for blue.

04

Image sizing

Leave w and h empty to let the generator size from the X-dimension. Always URL-encode arbitrary data values.

Reference: Original QR Generator. Demo form values (not independent CGI defaults).

Ready to generate a barcode?

Open the BCMaker generator and choose QR Code.

Go to Generator