Barcode Code 128

1234567890

123

123

This is a text-barcode

Bigger

You can add barcodes in the markup, by adding the barcode class to an HTML element, containing the barcode text. Use barcode2 for double size. To specify which subtype to use, specify a second class: code128a, code128b or code128c.

View source for the markup. No images, no server-side stuff. Just HTML, Javascript and CSS.

The barcodes have been tested with onlinebarcodereader.com and zxing.org.

Test yourself

Subtype:

Known issues

This blog made some improvements, I hopefuly incorporate in my code (thanks to Zachary Zebrowski for bringing this to my attention).

Version history

Usages on the Web