Barcode Generation

The Barcode Generation API provides a versatile solution for generating barcodes in various formats, including Code 39, Code 128, GS1-128, EAN-13, UPC-A, UPC-E, ITF-14, Data Matrix, and PDF417. By receiving specific parameters, the API outputs the barcode as a base64-encoded image, suitable for integration into applications and documents.

Example Results


Here is a table detailing the various barcode formats supported by the API, including their descriptions and common use cases:

FormatDescriptionCommon Use
Code 39Alphanumeric, includes numbers, uppercase letters, and some special characters.Used in logistics, inventory control, and product labeling.
Code 128Compact, supports all ASCII characters and allows auto-switching between three character sets (A, B, C).Used in shipping and product labeling; ideal for applications needing high data density.
GS1-128An extension of Code 128 that includes additional information like serial numbers and dates, with a GS1 prefix.Employed in supply chain management and industry compliance.
EAN-1313-digit barcode including a country prefix and product number.Commonly used in retail for consumer products.
UPC-A12-digit variant similar to EAN-13 but without the country prefix.Primarily used in retail in the United States.
UPC-ECompressed 6-digit version of UPC-A.Used in small packaging where space is limited.
ITF-14Supports 14 digits, suitable for encoding packaging units and boxes.Ideal for box and pallet labeling in logistics.
Data MatrixTwo-dimensional barcode that can store large amounts of data in a small space.Used in the pharmaceutical industry and manufacturing for component tracking.
PDF417Two-dimensional barcode that supports large volumes of data, including images and text.Utilized in identification documents, tickets, and baggage tags.

Schema Response

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "string",
      "format": "base64",
      "description": "The base64 encoded image of the barcode."
    }
  },
  "required": ["data"]
}
Body Params
string
required

The data to encode in the barcode

int32

The width of the barcode in millimeters (optional). Must be between 10 and 200

string
required

The height of the barcode in millimeters. Must be between 10 and 100

string
enum
required

The format of the barcode (Available formats: code39, code128, gs1-128, ean13, upca, upce, itf14, datamatrix, pdf417)

Response

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json