Generate CODE128, EAN13, UPC, and other linear barcodes. 100% in-browser.
Generate standards-compliant linear barcodes directly in your browser. Supports CODE128, CODE39, EAN13, EAN8, UPC, ITF14, MSI, pharmacode, and codabar — all rendered as crisp SVG with configurable size and colors. Nothing is uploaded: your input is encoded locally, and you can download the result as PNG or SVG for print, labels, or product artwork.
Enter the value
Type the text or digits you want to encode. Each format has its own rules — for example EAN13 expects 12 digits plus a check digit.
Pick a format and tune the look
Choose a symbology (CODE128 is the safest default), then adjust bar width, height, colors, and whether the human-readable value is shown below the bars.
Download PNG or SVG
Export a high-resolution PNG for quick use, or a vector SVG for print-ready artwork that scales to any size.
CODE128 is the most flexible and works for most general-purpose use cases, including letters and digits. Use EAN13 or UPC for retail products, ITF14 for shipping cartons, and CODE39 for legacy systems.
Each symbology has strict rules. EAN13 requires exactly 12 or 13 digits, EAN8 requires 7 or 8, UPC requires 11 or 12, CODE39 only accepts uppercase letters, digits, and a few symbols. Try CODE128 if you need arbitrary text.
No. Barcodes are generated entirely in your browser using the jsbarcode library. Nothing is uploaded or logged.
SVG is resolution-independent and ideal for print or reflowable layouts. PNG is a fixed-resolution raster image, convenient for quick embedding in documents or slides.
This tool focuses on linear (1D) barcodes. For QR codes use the QR Generator tool instead.