What is the difference between this tool and the Sample Barcode Generator?▾
The Sample Barcode Generator creates test/dummy data for QA, screenshots, and demo apps — values are random, intended to look real but not to map to anything. This Barcode Generator is for real production codes you control: you supply the SKU, asset tag, GTIN or carton number and the tool encodes it precisely, with correct check digits, ready to print and scan.
Which barcode format should I choose for my product?▾
Code 128 is the safest general default — it accepts any printable ASCII and produces compact codes. Use EAN-13 for retail products with a registered GS1 prefix, UPC-A for North American grocery, Code 39 for industrial and military asset tags, ITF-14 for shipping cartons, EAN-8 for very small packaging, and QR when you need to encode a URL or large payload.
Does the tool calculate the check digit for EAN and UPC?▾
Yes. JsBarcode auto-calculates the check digit for EAN-13, EAN-8, UPC-A and ITF-14. You provide the leading digits (12, 7, 11 or 13 respectively) and the tool appends the correct trailing digit so the code passes GS1 validation.
Can I use this barcode for retail without a GS1 license?▾
Technically you can generate any EAN/UPC value, but selling a product through major retailers requires a registered GS1 company prefix. Without one, your barcode may collide with a registered SKU. For internal asset tracking or non-retail use, Code 128 or Code 39 are unrestricted.
Why does my Code 39 input get rejected?▾
Code 39 only accepts uppercase A-Z, digits 0-9, space, and the symbols - . $ / + %. Lowercase letters and punctuation outside that set are invalid. Either uppercase your input or switch to Code 128, which accepts the full ASCII range.
Should I download SVG or PNG?▾
SVG is preferred for label printers and design software because it scales to any size without pixelation and contains crisp vector paths. PNG is fine for web previews, slide decks, and inkjet/laser printing at the exact size you choose. For thermal label printers (Zebra, Dymo) always use SVG.
What error correction level does the QR option use?▾
QR codes generated here use Level M (15% damage tolerance) by default, which is appropriate for clean digital and well-printed scenarios. For codes that will be printed on materials that may get folded, dirty, or damaged, generate at Level H using our QR Generator for higher robustness.
Are coloured barcodes always scannable?▾
Most modern scanners require strong contrast between bars and background. Black on white is universally safe. Dark navy on cream or dark green on white usually works. Avoid red on yellow, light grey on white, or any combination where the luminance difference is below ~50% — laser scanners may fail to read these reliably.