Skip to content

Sample barcodes

One scannable example of every supported symbology, generated in the browser and drawn as SVG. Point a phone at the screen, or open this page on a second device and scan it with the playground.

These are rendered by encoders that live in the test project, not in the library. The library itself only reads barcodes; the encoders exist so that the decoders can be validated by round trip and so that this page has something real to show.

Two dimensional

QR Code https://bbscanner.bitplatform.dev
QR Code (numeric) 1234567890123456789012345
Data Matrix BIT-BBSCANNER-DM
Data Matrix (numeric) 20260905123456
Aztec (compact) M1DEMO/BBSCANNER EABC123 AMSJFKKL 0641
Aztec (full range) Aztec Code, full range, read at any angle: bbscanner.bitplatform.dev
PDF417 PDF FOUR ONE SEVEN
MaxiCode MAXICODE DEMO PARCEL 1Z00004951
Micro QR MICRO QR 42
MicroPDF417 MICRO PDF FOUR ONE SEVEN

Linear

Code 128 BIT-BBSCANNER-128
Code 128 (numeric) 20260905
Code 39 CODE39 DEMO
EAN-13 4006381333931
EAN-8 96385074
UPC-A 036000291452
UPC-E 01234565
ITF (Interleaved 2 of 5) 1234567890
Code 93 CODE 93 SAMPLE
Codabar 31234000123457
GS1 DataBar 0109521234543213
GS1 DataBar Limited 0115012345678907
GS1 DataBar Expanded 010952123454321310ABC123

Which is which

Each symbology is one flag of BbBarcodeFormat; combine them with |, or use AllMatrix, AllLinear or All (the default).

SymbologyFlagWhere you meet itRead
QR CodeQrCodeLinks, payments, tickets, Wi-FiVersions 1-40, every error correction level, ECI, structured append, mirrored
Micro QRMicroQrCodeSmall parts and componentsM1 to M4, every segment mode
Data MatrixDataMatrixElectronics, pharmaceuticals, part markingECC 200, square and rectangular, every encodation, GS1
PDF417Pdf417Driving licences, boarding passes, shipping labelsAny orientation, compact (truncated) too, Macro PDF417
MicroPDF417MicroPdf417Small items, healthcare labels, electronic componentsAll 34 sizes, one to four columns; live within six degrees of upright or sideways, a still image at any angle
AztecAztecBoarding passes, rail and transit ticketsCompact and full range, Aztec Runes, mirrored
MaxiCodeMaxiCodeParcel sorting labelsModes 2 to 5, the carrier's structured message
Code 128Code128Logistics, shipping, GS1-128Code sets A, B and C, FNC1
Code 39Code39Industry, defence, ID badgesOptional check character and full ASCII (see the playground's options)
Code 93Code93Logistics, Canada PostFull ASCII, both check characters verified
CodabarCodabarLibraries, blood banks, courier waybillsStart and stop characters kept only with CodabarStartStop
EAN-13 / EAN-8Ean13, Ean8Retail products outside North AmericaCheck digit verified; EAN-2 and EAN-5 add-ons into Metadata.Extension
UPC-A / UPC-EUpcA, UpcERetail products in North AmericaReported as UPC, not as EAN-13; add-ons read
ITFItfCartons and cases (ITF-14)Only the lengths in ItfLengths
GS1 DataBarDataBarLoose produce, small retail itemsOmnidirectional, Truncated and both Stacked forms, as 01 + GTIN-14
GS1 DataBar LimitedDataBarLimitedPharmaceuticals, cosmeticsA GTIN-14 starting with 0 or 1
GS1 DataBar ExpandedDataBarExpandedWeighed fresh food, couponsAny GS1 element string, Expanded Stacked too

Some variants are read but not drawn above, because the test encoders do not write them: compact PDF417, the EAN and UPC add-ons, the stacked DataBar forms and Code 39 full ASCII. Scan a printed one with the playground, or check what each symbology reads in full with the MCP server's GetBbScannerFormats.

Decode them right here

The same symbols, decoded in place without a camera: each one is rasterised into a grayscale buffer and pushed through BbBarcodeDecoder, exactly as a camera frame would be. Every symbology is enabled for every sample, so a match also shows that none was mistaken for another.

An unhandled error has occurred. Reload 🗙