How to Generate a QR Code or Barcode
- Enter your text or URL in the input box or textarea.
- The QR code or Barcode will be generated automatically as you type.
- Customize it using options like scale, padding, height, footer, colors, and more.
- Choose the type of code: QR code (2D) or Barcode (1D or 2D).
- Once generated, download it in high-quality PNG format or as Base64 string.
Supported Barcode Formats
Squizee supports various barcode formats in addition to QR codes:
- 1D Barcodes (Linear):
code128: Barcode 128code39: Barcode 39code93: Barcode 93code11: Barcode 11interleaved2of5: Interleaved 2 of 5msi: MSIplessey: Plessey
- 2D QR & Matrix Codes:
qrcode: Standard QR Codemicroqrcode: Micro QR Codegs1qrcode: GS1 QR Codedatamatrix: DataMatrixdatamatrixrectangular: Rectangular DataMatrixpdf417: PDF417pdf417compact: PDF417 Compactazteccode: Aztec Codeazteccodecompact: Aztec Compactmaxicode: MaxiCodedotcode: DotCodehanxin: Han Xin Codecodeone: Code One
API Usage Guide
Generate QR codes and barcodes programmatically using the Squizee QR Code API:
- Base URL:
https://qr.squizee.in/ - Required:
value- The content to encode (e.g. text, URL, ID, etc.) - Optional Parameters:
bcid: Barcode type (default isqrcode). Choose from a variety of 1D or 2D barcode formats, such ascode128,qrcode, and others.scale: Image scale (e.g., 1-20)height: Image height (e.g., 5-1000) for linear barcodespadding: Padding around the QR or barcode (default is 10)footer:yesorno– whether to show content text below the codebackground: Background color (hex without #, e.g.,ffffff)barcolor: Bar (foreground) color (hex)fileType:png(default): returns a PNG imagebase64: returns base64 encoded image indata:image/png;base64,...formatbase64raw: returns the raw base64 string (without prefix)json: returns a JSON object containing the base64 string as"base64"
Example API Call for QR Code:
https://qr.squizee.in/?value=12323349&footer=no&height=15&scale=10&padding=3&background=055160&barcolor=ffffff&bcid=qrcode
Example API Call for Barcode (Barcode 128):
https://qr.squizee.in/?value=12323349&footer=no&height=15&scale=10&padding=3&background=055160&barcolor=ffffff&bcid=code128
Example with Base64 Response:
https://qr.squizee.in/?value=12323349&fileType=base64
{
"success": true,
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAAHnRFWHRTb2Z0d2FyZQBid2lwLWpzLm1ldGFmbG9vci5jb21Tnbi0AAAfR0lEQVR4nO3VQY4DSQ5D0d74"
}
Example with Base64Raw Response:
https://qr.squizee.in/?value=12323349&fileType=base64raw
iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAAHnRFWHRTb2Z0d2FyZQBid2lwLWpzLm1ldGFmbG9vci5jb21Tnbi0AAAfR0lEQVR4nO3VQY4DSQ5D0d74
Example with JSON Response:
https://qr.squizee.in/?value=12323349&fileType=json
{
"success": true,
"base64": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAAHnRFWHRTb2Z0d2FyZQBid2lwLWpzLm1ldGFmbG9vci5jb21Tnbi0AAAfR0lEQVR4nO3VQY4DSQ5D0d74"
}
Notes:
- If
fileTypeis not provided, the default response will be a PNG image. - For
fileType=base64, the response will be a base64-encoded PNG image string. It will be wrapped in adata:image/png;base64,prefix for use insrcattributes (e.g.,<img src="data:image/png;base64,...">). - If
fileType=base64rawis provided, the response will only return the raw base64 string, without the prefix. - If
fileType=jsonis specified, the response will return a JSON object with the base64 string under the"base64"key.