Skip to main content

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:

HonoursMeaning
hrtit has a human-readable line, drawn with hrt=true (shortcode)
gs1it carries GS1 element strings, read with gs1=true (shortcode)
ecits error-correction level is selectable with ec= (shortcode)
squarethe Data Matrix square option, square=true (shortcode)
fixed ratioit has one shape; a box of another shape is reported
standard heightits 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.

typeWhat it is forX-dim (mm)HonoursExample
code128Any alphanumeric key: order, asset, batch0.495hrt[barcode, code128, DOC-2026-04521, 200|40]
code39Legacy industrial, automotive and defence labelling0.495hrt, standard height[barcode, code39, DOCPAYLOAD, 200|40]
excode39Code 39 widened to the full ASCII set0.495hrt, standard height[barcode, excode39, DocPayload Manual 2026, 200|40]
code93A denser Code 39 replacement, same character set0.495hrt, standard height[barcode, code93, DOC-93-DEMO, 200|40]
code11Telecommunications equipment labelling0.495hrt[barcode, code11, 0123456789, 200|40]
codabarBlood banks, libraries and photo processing0.38hrt, standard height[barcode, codabar, A123456789B, 200|40]
inter25Interleaved 2 of 5: numeric pairs on cartons0.495hrt, standard height[barcode, inter25, 1234567890, 200|40]
c252 of 5 Standard: older warehouse and ticketing systems0.495hrt[barcode, c25, 1234567890, 180|40]
c25iata2 of 5 IATA: air cargo containers and unit load devices0.495hrt[barcode, c25iata, 1234567890, 180|40]
c25logic2 of 5 Data Logic, a compact variant0.495hrt[barcode, c25logic, 1234567890, 180|40]
c25ind2 of 5 Industrial: wide start and stop patterns0.495hrt[barcode, c25ind, 1234567890, 180|40]
logmarsUS Department of Defense marking, MIL-STD-11890.349hrt, standard height[barcode, logmars, DOD-LOGMARS-001, 200|40]
telepenUK libraries, education and laboratory systems0.286hrt, standard height[barcode, telepen, TELEPEN-DEMO, 200|40]
telepen-numTelepen with digits compressed two to a character0.286hrt, standard height[barcode, telepen-num, 12345678, 160|40]
msiMSI Plessey: shelf edges and inventory in retail0.495hrt[barcode, msi, 12345678, 160|40]
vinVehicle identification number on a chassis plate0.495hrt[barcode, vin, 1HGBH41JXMN109186, 200|40]
flatFlattermarken: collation marks on a print signature0.495—[barcode, flat, 12345678, 160|40]
channelChannel Code: a short numeric range in little space0.495hrt, standard height[barcode, channel, 01, 90|40]
dpleitcodeDeutsche Post Leitcode: routing for bulk mail0.495hrt[barcode, dpleitcode, 12345678901, 200|30]
dpidentcodeDeutsche Post Identcode: parcel identification0.495hrt[barcode, dpidentcode, 12345678901, 200|30]
pharmacodeLaetus one-track: pack verification on a blister line0.5standard height[barcode, pharmacode, 12345, 110|40]
pharma2Laetus two-track: the same at twice the density1standard 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.

typeWhat it is forX-dim (mm)HonoursExample
ean13GTIN-13 on a consumer unit0.33hrt, standard height[barcode, ean13, 5901234123457, 105.8|69.5]
ean8GTIN-8 where the pack is too small for EAN-130.33hrt, standard height[barcode, ean8, 96385074, 75.8|60.1]
upcaGTIN-12 on a consumer unit sold in North America0.33hrt, standard height[barcode, upca, 012345678905, 105.8|69.5]
upceThe zero-suppressed GTIN-12 for a small pack0.33hrt, standard height[barcode, upce, 01234565, 62.7|69.5]
itf14GTIN-14 of a shipping case, with bearer bars0.495hrt, 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.

typeWhat it is forX-dim (mm)HonoursExample
gs1-128Element strings on a logistics label: GTIN, dates, SSCC0.495hrt, gs1, standard height[barcode, gs1-128, [01]05012345678900, 200|45]
databarDataBar Omnidirectional: loose produce at the till0.33hrt, standard height[barcode, databar, 0501234567890, 200|30]
databar-ltdDataBar Limited: small items0.33hrt, standard height[barcode, databar-ltd, 0012345678905, 200|30]
databar-expDataBar Expanded: GTIN with weight or a use-by date0.33hrt, gs1, standard height[barcode, databar-exp, [01]98898765432106[3202]012345, 200|34]
databar-omnstkDataBar Stacked Omnidirectional: a narrower footprint0.33standard height[barcode, databar-omnstk, 0501234567890, 46.8|64.6]
databar-expstkDataBar Expanded Stacked: element strings, stacked0.33gs1, 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.

typeWhat it is forX-dim (mm)HonoursExample
qrcodeA URL a phone camera opens: verification, payment, ticket0.625gs1, fixed ratio, ec[barcode, qrcode, https://docpayload.example, 80|80]
microqrMicro QR: a short code on a very small part0.625fixed ratio, ec[barcode, microqr, MQR-001, 60|60]
rmqrRectangular Micro QR: a matrix code in a linear slot0.625gs1, fixed ratio, ec[barcode, rmqr, RMQR-PAYLOAD-1234, 83.3|26.6]
datamatrixDirect part marking and UDI on medical devices0.625gs1, fixed ratio, square[barcode, datamatrix, DOC-2026-0001, 80|80]
aztecTransport tickets and boarding passes0.625gs1, fixed ratio[barcode, aztec, AZTEC-DEMO-001, 80|80]
maxicodeParcel sortation, read at speed off a belt0.88fixed ratio[barcode, maxicode, MAXI-DEMO-001, 79.9|77]
dotcodeTobacco and high-speed inkjet marking0.625gs1, fixed ratio[barcode, dotcode, DOTCODE-PAYLOAD, 60.3|44.3]
hanxinHan Xin: the Chinese national standard, full Hanzi0.625fixed ratio[barcode, hanxin, HAN-XIN-DEMO, 80|80]
gridmatrixGrid Matrix: Chinese character sets in a square symbol0.625fixed ratio[barcode, gridmatrix, Grid Matrix demo, 80|80]
ultracodeUltracode: colour modules carry the data0.625gs1, fixed ratio[barcode, ultracode, Ultracode demo payload, 47.9|26.6]
upnqrUPNQR: the Slovenian payment order, its error correction fixed by its profile0.625fixed 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.

typeWhat it is forX-dim (mm)HonoursExample
pdf417Driving licences, shipping manifests, government ID0.33—[barcode, pdf417, DocPayload-Boarding-Pass, 200|50]
micropdf417PDF417 for a small label: healthcare and electronics0.33—[barcode, micropdf417, MicroPDF417 demo, 180|50]
code16kCode 16K: Code 128 data stacked into up to 16 rows0.33gs1, standard height[barcode, code16k, Code16k stacked demo, 75.8|52.4]
codablockfCodablock-F: stacked Code 128 for a long payload0.33standard 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.

typeWhat it is forX-dim (mm)HonoursExample
postnetUSPS POSTNET: legacy ZIP routing0.591standard height[barcode, postnet, 90210, 160|18]
planetUSPS PLANET: delivery confirmation0.591standard height[barcode, planet, 12345678901, 180|6.5]
uspsimailUSPS Intelligent Mail: the current 4-state barcode0.591standard height[barcode, uspsimail, 01234567094987654321, 200|7.5]
royalmail4stateRoyal Mail 4-State (RM4SCC): UK postcode routing0.638standard height[barcode, royalmail4state, 1734120350, 180|18]
kixDutch KIX: PostNL address routing0.638standard height[barcode, kix, 1234567890, 180|18]
japanpostJapan Post: postal code and address0.6standard height[barcode, japanpost, 15400233-16-2-308, 200|7]
koreapostKorea Post: postal code0.495hrt[barcode, koreapost, 123456, 160|18]
australiapostAustralia Post Standard Customer barcode0.5standard 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.

typeWhat it is forX-dim (mm)HonoursExample
hibcHIBC Code 128: the health industry supply chain0.495hrt[barcode, hibc, A123BJC5D6E71, 200|45]
hibc-39HIBC Code 39, where Code 39 is mandated0.495hrt, standard height[barcode, hibc-39, A123BJC5D6E71, 200|40]
hibc-dmHIBC Data Matrix: small device marking0.625fixed ratio, square[barcode, hibc-dm, A123BJC5D6E71, 90|90]
hibc-qrHIBC QR Code0.625fixed ratio, ec[barcode, hibc-qr, A123BJC5D6E71, 90|90]
hibc-pdf417HIBC PDF417: more data on a package label0.33—[barcode, hibc-pdf417, A123BJC5D6E71, 200|50]
hibc-micropdfHIBC MicroPDF417: the same on a smaller label0.33—[barcode, hibc-micropdf, A123BJC5D6E71, 180|50]
hibc-codablockfHIBC Codablock-F: a stacked Code 128 carrier0.33standard height[barcode, hibc-codablockf, A123BJC5D6E71, 113.2|48.7]
hibc-aztecHIBC Aztec: a matrix carrier needing no quiet zone0.625fixed ratio[barcode, hibc-aztec, A123BJC5D6E71, 80|80]