<script src="JsBarcode.all.min.js"></script>
<svg id="barcode"></svg>
JsBarcode("#barcode", "Hi!");
<svg id="barcode"></svg>
JsBarcode("#barcode", "Hi world!");
<svg id="barcode"></svg>
JsBarcode("#barcode", "1234", {
format: "pharmacode",
lineColor: "#0aa",
width: 4,
height: 40,
displayValue: false
});
<svg class="barcode"
jsbarcode-format="upc"
jsbarcode-value="123456789012"
jsbarcode-textmargin="0"
jsbarcode-fontoptions="bold">
</svg>
JsBarcode(".barcode").init();
Name | Supported barcodes | CDN / Download |
---|---|---|
All | All the barcodes! | JsBarcode.all.min.js |
CODE128 | CODE128 (auto and force mode) | JsBarcode.code128.min.js |
CODE39 | CODE39 | JsBarcode.code39.min.js |
EAN / UPC | EAN-13, EAN-8, EAN-5, EAN-2, UPC (A) | JsBarcode.ean-upc.min.js |
ITF-14 | ITF-14 | JsBarcode.itf-14.min.js |
ITF | ITF | JsBarcode.itf.min.js |
MSI | MSI, MSI10, MSI11, MSI1010, MSI1110 | JsBarcode.msi.min.js |
Pharmacode | Pharmacode | JsBarcode.pharmacode.min.js |