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-insensitive — Code128, 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.
| Format | API Value | Example Data |
|---|---|---|
| Code 128 (auto) | Code128 | ABC-abc-1234 |
| Code 128A | Code128A | ABC123 |
| Code 128B | Code128B | Hello World! |
| Code 128C | Code128C | 123456 |
| GS1-128 | gs1-128 | (01)09521234543213(3103)000123 |
| HIBC Code 128 | Hibccode128 | A999BJC5D6E71 |
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.Code128Cencodes pairs of digits only — data must be an even number of digits.GS1-128requires GS1 Application Identifier syntax, e.g.(01)for GTIN.HIBC Code 128is 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.
| Format | API Value | Example Data | Digits Required |
|---|---|---|---|
| EAN-13 | Ean13 | 5901234123457 | 12–13 digits |
| EAN-8 | Ean8 | 96385074 | 7–8 digits |
| EAN-5 | Ean5 | 54495 | 5 digits |
| EAN-2 | Ean2 | 53 | 2 digits |
| UPC-A | Upc | 123456789012 | 11–12 digits |
| UPC-E | UpcE | 01234565 | 8 digits |
| GS1-14 | Ean14 | (01) 0 952 8765 43210 8 | 14 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.
| Format | API Value | Example Data | Common Use |
|---|---|---|---|
| QR Code | Qrcode | https://www.barcodegen.net | URLs, vCards, payments |
| Data Matrix | Datamatrix | This is Data Matrix! | Electronics, healthcare labels |
| PDF417 | Pdf417 | This is PDF417 | ID cards, shipping labels |
| Aztec Code | Azteccode | This is Aztec Code | Airline 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.
| Format | API Value | Example Data |
|---|---|---|
| Code 39 | Code39 | CODE 39 |
| Code 39 Extended | Code39ext | Code39 Ext! |
| HIBC Code 39 | Hibccode39 | A999BJC5D6E71 |
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.
| Format | API Value | Example Data | Digits Required |
|---|---|---|---|
| ITF | Itf | 1234567890 | Even number of digits |
| ITF-14 | Itf14 | 15400141288763 | 14 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.
| Format | API Value | Example Data | Check Digit |
|---|---|---|---|
| MSI Plessey (Mod 10) | Msi10 | 1234567 | Mod 10 |
| MSI Plessey (Mod 11) | Msi11 | 1234567 | Mod 11 |
| MSI Plessey (Mod 10/10) | Msi1010 | 1234567 | Double Mod 10 |
| MSI Plessey (Mod 11/10) | Msi1110 | 1234567 | Mod 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.
| Format | API Value | Example Data | Valid Range |
|---|---|---|---|
| Pharmacode | Pharmacode | 1234 | 3–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.
| Format | API Value | Example Data |
|---|---|---|
| Codabar | Codabar | A1234B |
Notes:
- Data must begin and end with a start/stop character: one of
A,B,C, orD. - 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.
| Format | API Value | Example Data |
|---|---|---|
| GS1 DataBar Omnidirectional | Databaromni | (01)09521234543213 |
| GS1 DataBar Limited | Databarlimited | (01)09521234543213 |
| GS1 DataBar Expanded | Databarexpanded | (01)09521234543213(3103)000123 |
| GS1 DataBar Stacked | Databarstacked | (01)09521234543213 |
Notes:
- All DataBar variants require a GS1 GTIN-14 as the primary data element, wrapped in the
(01)Application Identifier. Databarexpandedcan carry additional AIs (e.g. weight, expiry date) beyond the base GTIN.Databarstackedis 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.
| Format | API Value | Example Data |
|---|---|---|
| ISBN | Isbn | 978-1-56581-231-4 90000 |
| ISMN | Ismn | 979-0-2605-3211-3 |
| ISSN | Issn | 0311-175X 00 17 |
Notes:
- ISBN (International Standard Book Number) uses EAN-13 with a
978or979prefix. The optional 5-digit supplement (e.g.90000) encodes a suggested retail price. - ISMN (International Standard Music Number) uses EAN-13 with a
979-0prefix, 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.
| Engine | Handles |
|---|---|
| JsBarcode | Code 128 (all variants), EAN/UPC family, Code 39 (all variants), ITF, MSI Plessey, Pharmacode, Codabar |
| BWIP-JS | QR Code, Data Matrix, PDF417, Aztec Code, GS1-128, HIBC variants, GS1 DataBar family, ISBN, ISMN, ISSN, GS1-14 |
Quick Reference
| API Value | Category | Engine |
|---|---|---|
Code128 | Code 128 | JsBarcode |
Code128A | Code 128 | JsBarcode |
Code128B | Code 128 | JsBarcode |
Code128C | Code 128 | JsBarcode |
gs1-128 | Code 128 | BWIP-JS |
Hibccode128 | Code 128 | BWIP-JS |
Ean13 | EAN / UPC | JsBarcode |
Ean8 | EAN / UPC | JsBarcode |
Ean5 | EAN / UPC | JsBarcode |
Ean2 | EAN / UPC | JsBarcode |
Upc | EAN / UPC | JsBarcode |
UpcE | EAN / UPC | JsBarcode |
Ean14 | EAN / UPC | BWIP-JS |
Qrcode | 2D | BWIP-JS |
Datamatrix | 2D | BWIP-JS |
Pdf417 | 2D | BWIP-JS |
Azteccode | 2D | BWIP-JS |
Code39 | Code 39 | JsBarcode |
Code39ext | Code 39 | JsBarcode |
Hibccode39 | Code 39 | BWIP-JS |
Itf | ITF | JsBarcode |
Itf14 | ITF | JsBarcode |
Msi10 | MSI Plessey | JsBarcode |
Msi11 | MSI Plessey | JsBarcode |
Msi1010 | MSI Plessey | JsBarcode |
Msi1110 | MSI Plessey | JsBarcode |
Pharmacode | Pharmacode | JsBarcode |
Codabar | Codabar | JsBarcode |
Databaromni | GS1 DataBar | BWIP-JS |
Databarlimited | GS1 DataBar | BWIP-JS |
Databarexpanded | GS1 DataBar | BWIP-JS |
Databarstacked | GS1 DataBar | BWIP-JS |
Isbn | Publishing | BWIP-JS |
Ismn | Publishing | BWIP-JS |
Issn | Publishing | BWIP-JS |
Related
- Quick Start — Authentication, endpoints, and credit deduction model
- Credit Pricing — Cost per request and plan comparison
- Rate Limits — Request limits and retry guidance