Barcode Generator (Code 128 & EAN-13)
Generate a scannable Code 128 or EAN-13 barcode as crisp SVG, encoded in your browser.
Two barcodes that cover most needs
Code 128 and EAN-13 are the two symbologies most people actually need. Code 128 is the dense, general-purpose format used on shipping labels and internal asset tags — it encodes letters, digits, and symbols. EAN-13 is the 13-digit barcode on retail products worldwide. This tool encodes either from your input and draws a scannable barcode.
The encoding is done properly: Code 128 computes the modulo-103 checksum and start/stop patterns, and EAN-13 calculates the check digit (enter 12 digits and it adds the 13th) using the standard parity tables. The output is SVG, so it stays razor-sharp at any print size — which is what keeps a barcode scannable.
Encoded privately
Everything happens in your browser: the barcode is generated locally and nothing you type is uploaded. Right-click the barcode to save the SVG.
Frequently Asked Questions
What barcode types does this support?
Code 128 (set B), which encodes any letters, digits, and common symbols, and EAN-13, the 13-digit retail product barcode. Pick the type that matches where the barcode will be scanned.
How do I use the barcode?
Generate it, then right-click the image to save the SVG, or screenshot it. SVG stays crisp at any print size, which matters for reliable scanning.
Why won’t my EAN-13 generate?
EAN-13 needs exactly 12 or 13 digits. Enter 12 and the tool computes the 13th check digit for you; enter 13 and it validates the one you provided.
Is my data uploaded?
No. The barcode is encoded and drawn entirely in your browser — nothing you type is sent to a server.
Need a polished site or tool built properly? Bushe can help.