Supported Formats

The API supports 50+ barcode formats across 10 categories, powered by JsBarcode and BWIP-JS under the hood. All formats are available through the same endpoint — you do not need to specify a rendering engine.

GET /api/barcode/{format}/{data}

The {format} parameter is case-insensitiveCode128, code128, and CODE128 all work identically.


Code 128

The most widely used linear barcode in logistics, shipping, and retail. Encodes the full ASCII character set with high data density.

FormatAPI ValueExample Data
Code 128 (auto)Code128ABC-abc-1234
Code 128ACode128AABC123
Code 128BCode128BHello World!
Code 128CCode128C123456
GS1-128gs1-128(01)09521234543213(3103)000123
HIBC Code 128Hibccode128A999BJC5D6E71

Notes:

  • Code128 (auto) automatically selects the optimal subset (A/B/C) based on your data — use this unless you have a specific reason to force a subset.
  • Code128C encodes pairs of digits only — data must be an even number of digits.
  • GS1-128 requires GS1 Application Identifier syntax, e.g. (01) for GTIN.
  • HIBC Code 128 is used in healthcare for labeling medical products.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Code128/ABC-abc-1234"

EAN / UPC

International standard retail barcodes. Used on consumer products worldwide.

FormatAPI ValueExample DataDigits Required
EAN-13Ean13590123412345712–13 digits
EAN-8Ean8963850747–8 digits
EAN-5Ean5544955 digits
EAN-2Ean2532 digits
UPC-AUpc12345678901211–12 digits
UPC-EUpcE012345658 digits
GS1-14Ean14(01) 0 952 8765 43210 814 digits

Notes:

  • EAN-13 and UPC-A include a check digit — if you provide 12/11 digits, the check digit is computed automatically.
  • EAN-5 and EAN-2 are supplemental barcodes, typically printed alongside EAN-13 for price or issue information.
  • UPC-E is a compressed version of UPC-A, used where space is limited (e.g. small retail packaging).
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Ean13/5901234123457"

2D Barcodes

Two-dimensional codes that encode data both horizontally and vertically, supporting much larger payloads than linear barcodes.

FormatAPI ValueExample DataCommon Use
QR CodeQrcodehttps://www.barcodegen.netURLs, vCards, payments
Data MatrixDatamatrixThis is Data Matrix!Electronics, healthcare labels
PDF417Pdf417This is PDF417ID cards, shipping labels
Aztec CodeAzteccodeThis is Aztec CodeAirline boarding passes

Notes:

  • QR Code supports URLs, plain text, vCards, Wi-Fi credentials, and more. No length limit in practice (up to ~4,000 characters for alphanumeric).
  • Data Matrix is widely used in PCB component labeling and pharmaceutical packaging due to its small footprint.
  • PDF417 can encode up to ~1,800 printable ASCII characters and is the standard for US driver's licenses and airline baggage.
  • Aztec Code does not require a quiet zone, making it ideal for space-constrained labels like transport tickets.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Qrcode/https%3A%2F%2Fexample.com"

Code 39

One of the oldest linear barcode symbologies. Widely used in non-retail environments such as automotive, defense, and healthcare.

FormatAPI ValueExample Data
Code 39Code39CODE 39
Code 39 ExtendedCode39extCode39 Ext!
HIBC Code 39Hibccode39A999BJC5D6E71

Notes:

  • Standard Code 39 supports uppercase letters, digits, and a limited set of symbols (- . $ / + % SPACE).
  • Code 39 Extended supports the full ASCII character set by encoding characters as pairs.
  • HIBC (Health Industry Bar Code) Code 39 follows the ANSI/HIBC standard for healthcare product labeling.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Code39/CODE%2039"

ITF (Interleaved 2 of 5)

A high-density numeric-only barcode used primarily in warehousing and distribution.

FormatAPI ValueExample DataDigits Required
ITFItf1234567890Even number of digits
ITF-14Itf141540014128876314 digits

Notes:

  • ITF encodes pairs of digits simultaneously, so data length must be even. Pad with a leading zero if needed.
  • ITF-14 is the standard for outer carton/case-level barcodes in the GS1 system, always 14 digits including the check digit.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Itf14/15400141288763"

MSI Plessey

A numeric barcode primarily used for inventory control and retail shelf labeling.

FormatAPI ValueExample DataCheck Digit
MSI Plessey (Mod 10)Msi101234567Mod 10
MSI Plessey (Mod 11)Msi111234567Mod 11
MSI Plessey (Mod 10/10)Msi10101234567Double Mod 10
MSI Plessey (Mod 11/10)Msi11101234567Mod 11 + Mod 10

Notes:

  • All MSI variants encode digits only.
  • The check digit scheme determines error detection strength. Mod 10 is most common; Mod 1010 and Mod 1110 offer stronger validation with two check digits.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Msi10/1234567"

Pharmacode

A binary barcode used exclusively in the pharmaceutical packaging industry. Encodes a single integer representing a product identifier.

FormatAPI ValueExample DataValid Range
PharmacodePharmacode12343–131070

Notes:

  • Data must be a positive integer between 3 and 131070.
  • Used on blister packs and medicine boxes for automated packaging line verification.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Pharmacode/1234"

Codabar

A legacy barcode format still in active use in libraries, blood banks, and FedEx air waybills.

FormatAPI ValueExample Data
CodabarCodabarA1234B

Notes:

  • Data must begin and end with a start/stop character: one of A, B, C, or D.
  • Encodes digits and a limited set of symbols (- $ : / . +).
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Codabar/A1234B"

GS1 DataBar

A family of compact GS1 barcodes designed for small retail items, fresh produce, and loyalty cards. Can encode GS1 Application Identifiers in a smaller footprint than GS1-128.

FormatAPI ValueExample Data
GS1 DataBar OmnidirectionalDatabaromni(01)09521234543213
GS1 DataBar LimitedDatabarlimited(01)09521234543213
GS1 DataBar ExpandedDatabarexpanded(01)09521234543213(3103)000123
GS1 DataBar StackedDatabarstacked(01)09521234543213

Notes:

  • All DataBar variants require a GS1 GTIN-14 as the primary data element, wrapped in the (01) Application Identifier.
  • Databarexpanded can carry additional AIs (e.g. weight, expiry date) beyond the base GTIN.
  • Databarstacked is a two-row variant of Omnidirectional, useful when vertical space is limited.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Databaromni/(01)09521234543213"

Publishing

Barcodes used in book, music, and periodical publishing, all based on the EAN/GS1 standard.

FormatAPI ValueExample Data
ISBNIsbn978-1-56581-231-4 90000
ISMNIsmn979-0-2605-3211-3
ISSNIssn0311-175X 00 17

Notes:

  • ISBN (International Standard Book Number) uses EAN-13 with a 978 or 979 prefix. The optional 5-digit supplement (e.g. 90000) encodes a suggested retail price.
  • ISMN (International Standard Music Number) uses EAN-13 with a 979-0 prefix, used for printed music publications.
  • ISSN (International Standard Serial Number) identifies magazines and journals. The optional supplement encodes issue/volume information.
  • Hyphens in the data are ignored during encoding.
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.barcodegen.net/api/barcode/Isbn/978-1-56581-231-4%2090000"

Rendering Engines

Formats are automatically routed to the appropriate rendering engine — you never need to specify this manually.

EngineHandles
JsBarcodeCode 128 (all variants), EAN/UPC family, Code 39 (all variants), ITF, MSI Plessey, Pharmacode, Codabar
BWIP-JSQR Code, Data Matrix, PDF417, Aztec Code, GS1-128, HIBC variants, GS1 DataBar family, ISBN, ISMN, ISSN, GS1-14

Quick Reference

API ValueCategoryEngine
Code128Code 128JsBarcode
Code128ACode 128JsBarcode
Code128BCode 128JsBarcode
Code128CCode 128JsBarcode
gs1-128Code 128BWIP-JS
Hibccode128Code 128BWIP-JS
Ean13EAN / UPCJsBarcode
Ean8EAN / UPCJsBarcode
Ean5EAN / UPCJsBarcode
Ean2EAN / UPCJsBarcode
UpcEAN / UPCJsBarcode
UpcEEAN / UPCJsBarcode
Ean14EAN / UPCBWIP-JS
Qrcode2DBWIP-JS
Datamatrix2DBWIP-JS
Pdf4172DBWIP-JS
Azteccode2DBWIP-JS
Code39Code 39JsBarcode
Code39extCode 39JsBarcode
Hibccode39Code 39BWIP-JS
ItfITFJsBarcode
Itf14ITFJsBarcode
Msi10MSI PlesseyJsBarcode
Msi11MSI PlesseyJsBarcode
Msi1010MSI PlesseyJsBarcode
Msi1110MSI PlesseyJsBarcode
PharmacodePharmacodeJsBarcode
CodabarCodabarJsBarcode
DatabaromniGS1 DataBarBWIP-JS
DatabarlimitedGS1 DataBarBWIP-JS
DatabarexpandedGS1 DataBarBWIP-JS
DatabarstackedGS1 DataBarBWIP-JS
IsbnPublishingBWIP-JS
IsmnPublishingBWIP-JS
IssnPublishingBWIP-JS