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.
The PDF417 sample is drawn with the library's placeholder symbol character table. It round trips here, which is what validates the detector, the GF(929) error correction and the compaction modes, but it is not a conforming PDF417 symbol and no other scanner will read it. See the PDF417 section of the README for why the real table cannot be derived.

Two dimensional

QR Code https://bbscanner.bitplatform.dev
QR Code (numeric) 1234567890123456789012345
Data Matrix BIT-BBSCANNER-DM
Data Matrix (numeric) 20260905123456
PDF417 (placeholder table) 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

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.

An unhandled error has occurred. Reload 🗙