Symbologies
The engine draws 64 symbologies. Write the name in the type column exactly as shown: it is the one name the schema publishes for that symbology. There are no aliases, and a name in another letter case is refused (the report names the right spelling).
The examples come from the Barcode Catalog tutorial, whose rendering is on the Overview page. Each shortcode drops into any text element (p, td, li, header and footer content). The same names go in the spec.type of a barcode shape inside svg.
X-dim is the X-dimension (the narrowest bar or module) the symbology's standard states: an unsized symbol is drawn at its module count times this figure. Honours lists the options and properties each symbology has:
| Honours | Meaning |
|---|---|
hrt | it has a human-readable line, drawn with hrt=true (shortcode) |
gs1 | it carries GS1 element strings, read with gs1=true (shortcode) |
ec | its error-correction level is selectable with ec= (shortcode) |
square | the Data Matrix square option, square=true (shortcode) |
| fixed ratio | it has one shape; a box of another shape is reported |
| standard height | its standard states a bar height, and a box that draws the bars shorter is reported |
(shortcode): the option is a slot of the [barcode, …] shortcode; a barcode shape inside svg is drawn with its default.
Linear codes for any key
The general-purpose linear symbologies: an alphanumeric or numeric key read by a laser scanner or an imager.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
code128 | Any alphanumeric key: order, asset, batch | 0.495 | hrt | [barcode, code128, DOC-2026-04521, 200|40] |
code39 | Legacy industrial, automotive and defence labelling | 0.495 | hrt, standard height | [barcode, code39, DOCPAYLOAD, 200|40] |
excode39 | Code 39 widened to the full ASCII set | 0.495 | hrt, standard height | [barcode, excode39, DocPayload Manual 2026, 200|40] |
code93 | A denser Code 39 replacement, same character set | 0.495 | hrt, standard height | [barcode, code93, DOC-93-DEMO, 200|40] |
code11 | Telecommunications equipment labelling | 0.495 | hrt | [barcode, code11, 0123456789, 200|40] |
codabar | Blood banks, libraries and photo processing | 0.38 | hrt, standard height | [barcode, codabar, A123456789B, 200|40] |
inter25 | Interleaved 2 of 5: numeric pairs on cartons | 0.495 | hrt, standard height | [barcode, inter25, 1234567890, 200|40] |
c25 | 2 of 5 Standard: older warehouse and ticketing systems | 0.495 | hrt | [barcode, c25, 1234567890, 180|40] |
c25iata | 2 of 5 IATA: air cargo containers and unit load devices | 0.495 | hrt | [barcode, c25iata, 1234567890, 180|40] |
c25logic | 2 of 5 Data Logic, a compact variant | 0.495 | hrt | [barcode, c25logic, 1234567890, 180|40] |
c25ind | 2 of 5 Industrial: wide start and stop patterns | 0.495 | hrt | [barcode, c25ind, 1234567890, 180|40] |
logmars | US Department of Defense marking, MIL-STD-1189 | 0.349 | hrt, standard height | [barcode, logmars, DOD-LOGMARS-001, 200|40] |
telepen | UK libraries, education and laboratory systems | 0.286 | hrt, standard height | [barcode, telepen, TELEPEN-DEMO, 200|40] |
telepen-num | Telepen with digits compressed two to a character | 0.286 | hrt, standard height | [barcode, telepen-num, 12345678, 160|40] |
msi | MSI Plessey: shelf edges and inventory in retail | 0.495 | hrt | [barcode, msi, 12345678, 160|40] |
vin | Vehicle identification number on a chassis plate | 0.495 | hrt | [barcode, vin, 1HGBH41JXMN109186, 200|40] |
flat | Flattermarken: collation marks on a print signature | 0.495 | — | [barcode, flat, 12345678, 160|40] |
channel | Channel Code: a short numeric range in little space | 0.495 | hrt, standard height | [barcode, channel, 01, 90|40] |
dpleitcode | Deutsche Post Leitcode: routing for bulk mail | 0.495 | hrt | [barcode, dpleitcode, 12345678901, 200|30] |
dpidentcode | Deutsche Post Identcode: parcel identification | 0.495 | hrt | [barcode, dpidentcode, 12345678901, 200|30] |
pharmacode | Laetus one-track: pack verification on a blister line | 0.5 | standard height | [barcode, pharmacode, 12345, 110|40] |
pharma2 | Laetus two-track: the same at twice the density | 1 | standard height | [barcode, pharma2, 12345, 110|40] |
Retail: the GS1 GTIN family
What a consumer unit and its shipping case carry. Given no size, these are drawn at GS1 magnification 1.0. A payload written with its check digit has that digit verified, not recomputed.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
ean13 | GTIN-13 on a consumer unit | 0.33 | hrt, standard height | [barcode, ean13, 5901234123457, 105.8|69.5] |
ean8 | GTIN-8 where the pack is too small for EAN-13 | 0.33 | hrt, standard height | [barcode, ean8, 96385074, 75.8|60.1] |
upca | GTIN-12 on a consumer unit sold in North America | 0.33 | hrt, standard height | [barcode, upca, 012345678905, 105.8|69.5] |
upce | The zero-suppressed GTIN-12 for a small pack | 0.33 | hrt, standard height | [barcode, upce, 01234565, 62.7|69.5] |
itf14 | GTIN-14 of a shipping case, with bearer bars | 0.495 | hrt, standard height | [barcode, itf14, 1001234567890, 200|50] |
Add-ons: a price or an issue number
An EAN-13, EAN-8, UPC-A or UPC-E takes a two- or five-digit add-on written after a plus: the book's price on an ISBN, the issue number on a periodical's ISSN. The add-on's digits are printed above its bars.
[barcode, ean13, 9781739528140+51699, hrt=true]
[barcode, ean13, 9772517771001+02, hrt=true]
A shorter add-on is padded with zeros, +516 encoding as 00516, and a NOTICE says so. An EAN-8 with an add-on is outside its standard and draws a WARNING.
GS1 element strings
Application identifiers in square brackets, [01]05012345678900, written straight into the shortcode with no escaping.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
gs1-128 | Element strings on a logistics label: GTIN, dates, SSCC | 0.495 | hrt, gs1, standard height | [barcode, gs1-128, [01]05012345678900, 200|45] |
databar | DataBar Omnidirectional: loose produce at the till | 0.33 | hrt, standard height | [barcode, databar, 0501234567890, 200|30] |
databar-ltd | DataBar Limited: small items | 0.33 | hrt, standard height | [barcode, databar-ltd, 0012345678905, 200|30] |
databar-exp | DataBar Expanded: GTIN with weight or a use-by date | 0.33 | hrt, gs1, standard height | [barcode, databar-exp, [01]98898765432106[3202]012345, 200|34] |
databar-omnstk | DataBar Stacked Omnidirectional: a narrower footprint | 0.33 | standard height | [barcode, databar-omnstk, 0501234567890, 46.8|64.6] |
databar-expstk | DataBar Expanded Stacked: element strings, stacked | 0.33 | gs1, standard height | [barcode, databar-expstk, [01]98898765432106[3202]012345, 95.5|66.5] |
Matrix codes
Two-dimensional symbols for an imager or a phone camera. Each has one shape, so give one side only, or a box of the symbol's own proportions.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
qrcode | A URL a phone camera opens: verification, payment, ticket | 0.625 | gs1, fixed ratio, ec | [barcode, qrcode, https://docpayload.example, 80|80] |
microqr | Micro QR: a short code on a very small part | 0.625 | fixed ratio, ec | [barcode, microqr, MQR-001, 60|60] |
rmqr | Rectangular Micro QR: a matrix code in a linear slot | 0.625 | gs1, fixed ratio, ec | [barcode, rmqr, RMQR-PAYLOAD-1234, 83.3|26.6] |
datamatrix | Direct part marking and UDI on medical devices | 0.625 | gs1, fixed ratio, square | [barcode, datamatrix, DOC-2026-0001, 80|80] |
aztec | Transport tickets and boarding passes | 0.625 | gs1, fixed ratio | [barcode, aztec, AZTEC-DEMO-001, 80|80] |
maxicode | Parcel sortation, read at speed off a belt | 0.88 | fixed ratio | [barcode, maxicode, MAXI-DEMO-001, 79.9|77] |
dotcode | Tobacco and high-speed inkjet marking | 0.625 | gs1, fixed ratio | [barcode, dotcode, DOTCODE-PAYLOAD, 60.3|44.3] |
hanxin | Han Xin: the Chinese national standard, full Hanzi | 0.625 | fixed ratio | [barcode, hanxin, HAN-XIN-DEMO, 80|80] |
gridmatrix | Grid Matrix: Chinese character sets in a square symbol | 0.625 | fixed ratio | [barcode, gridmatrix, Grid Matrix demo, 80|80] |
ultracode | Ultracode: colour modules carry the data | 0.625 | gs1, fixed ratio | [barcode, ultracode, Ultracode demo payload, 47.9|26.6] |
upnqr | UPNQR: the Slovenian payment order, its error correction fixed by its profile | 0.625 | fixed ratio | [barcode, upnqr, UPNQR-DEMO, 80|80] |
Stacked linear codes
Linear rows stacked into a block: more data than a bar code carries, less area than a matrix code needs.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
pdf417 | Driving licences, shipping manifests, government ID | 0.33 | — | [barcode, pdf417, DocPayload-Boarding-Pass, 200|50] |
micropdf417 | PDF417 for a small label: healthcare and electronics | 0.33 | — | [barcode, micropdf417, MicroPDF417 demo, 180|50] |
code16k | Code 16K: Code 128 data stacked into up to 16 rows | 0.33 | gs1, standard height | [barcode, code16k, Code16k stacked demo, 75.8|52.4] |
codablockf | Codablock-F: stacked Code 128 for a long payload | 0.33 | standard height | [barcode, codablockf, Codablock-F demo, 113.2|48.7] |
Postal codes
The 2-state and 4-state symbols national posts use for routing. Their bar heights and quiet zones come from each post's own specification.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
postnet | USPS POSTNET: legacy ZIP routing | 0.591 | standard height | [barcode, postnet, 90210, 160|18] |
planet | USPS PLANET: delivery confirmation | 0.591 | standard height | [barcode, planet, 12345678901, 180|6.5] |
uspsimail | USPS Intelligent Mail: the current 4-state barcode | 0.591 | standard height | [barcode, uspsimail, 01234567094987654321, 200|7.5] |
royalmail4state | Royal Mail 4-State (RM4SCC): UK postcode routing | 0.638 | standard height | [barcode, royalmail4state, 1734120350, 180|18] |
kix | Dutch KIX: PostNL address routing | 0.638 | standard height | [barcode, kix, 1234567890, 180|18] |
japanpost | Japan Post: postal code and address | 0.6 | standard height | [barcode, japanpost, 15400233-16-2-308, 200|7] |
koreapost | Korea Post: postal code | 0.495 | hrt | [barcode, koreapost, 123456, 160|18] |
australiapost | Australia Post Standard Customer barcode | 0.5 | standard height | [barcode, australiapost, 56385074, 180|18] |
HIBC: the health industry
The Health Industry Bar Code carriers, for UDI marking of medical devices. The leading + and the modulo-43 check character are added for you, so the payload is the identifier alone.
type | What it is for | X-dim (mm) | Honours | Example |
|---|---|---|---|---|
hibc | HIBC Code 128: the health industry supply chain | 0.495 | hrt | [barcode, hibc, A123BJC5D6E71, 200|45] |
hibc-39 | HIBC Code 39, where Code 39 is mandated | 0.495 | hrt, standard height | [barcode, hibc-39, A123BJC5D6E71, 200|40] |
hibc-dm | HIBC Data Matrix: small device marking | 0.625 | fixed ratio, square | [barcode, hibc-dm, A123BJC5D6E71, 90|90] |
hibc-qr | HIBC QR Code | 0.625 | fixed ratio, ec | [barcode, hibc-qr, A123BJC5D6E71, 90|90] |
hibc-pdf417 | HIBC PDF417: more data on a package label | 0.33 | — | [barcode, hibc-pdf417, A123BJC5D6E71, 200|50] |
hibc-micropdf | HIBC MicroPDF417: the same on a smaller label | 0.33 | — | [barcode, hibc-micropdf, A123BJC5D6E71, 180|50] |
hibc-codablockf | HIBC Codablock-F: a stacked Code 128 carrier | 0.33 | standard height | [barcode, hibc-codablockf, A123BJC5D6E71, 113.2|48.7] |
hibc-aztec | HIBC Aztec: a matrix carrier needing no quiet zone | 0.625 | fixed ratio | [barcode, hibc-aztec, A123BJC5D6E71, 80|80] |