Barcode Generator

Create barcodes in Code 128, EAN-13, UPC-A, and Code 39. Download as SVG (sharp at any print size). Per-format input validation. Browser-based.

Enter a value above to generate a barcode.

tuneBarcode Format

infoHow It Works

Code 128

High-density format supporting all 128 ASCII characters. Widely used in shipping and packaging.

EAN-13

International retail standard. Requires exactly 13 digits including the check digit.

UPC-A

Used in US and Canadian retail. Requires exactly 12 digits including the check digit.

Code 39

Supports uppercase letters, digits, and a few symbols. Common in industrial and military applications.

lightbulbTip

SVG barcodes can be scaled to any size without losing quality. They are ideal for print materials like product labels and packaging.

What is the Barcode Generator?

A barcode generator encodes a string into a machine-readable image that scanners can read with a single sweep. The four common formats split by use case: Code 128 for shipping labels and any ASCII text, EAN-13 for international retail, UPC-A for North American retail, Code 39 for industrial and military asset tracking.

How to use the Barcode Generator

  1. 1

    Pick a format

    Code 128 (any ASCII), EAN-13 (exactly 13 digits), UPC-A (exactly 12 digits), Code 39 (A-Z, 0-9, and a few symbols). The input field validates against the chosen format.

  2. 2

    Enter the value

    Type or paste your data. The placeholder shows what a valid value looks like for the current format.

  3. 3

    Watch the barcode regenerate

    The preview updates on every keystroke. If your input doesn't fit the format's rules, an error tells you why.

  4. 4

    Download the SVG

    Click Download SVG to save. SVG stays sharp at any size, so the same file works for a 1-inch product label and a 10-inch shipping label.

Frequently Asked Questions

What barcode formats are supported?

Four: Code 128 (any ASCII characters, used for shipping and logistics), EAN-13 (13 digits, the international retail standard), UPC-A (12 digits, North American retail), and Code 39 (A-Z, 0-9, and -./+%$ space, used in industrial, automotive, and government tracking).

Can I download the barcode?

Yes, as an SVG file. SVG is vector, so the same image scales from a tiny inventory tag to a large shipping label without losing sharpness. The filename includes the format (e.g. barcode-ean13.svg). All four formats are royalty-free for commercial use.

Are the barcodes scannable?

Yes. The output follows each format's published specification (built on the JsBarcode library), so any standard scanner or smartphone barcode app reads them. For best print results, keep the barcode at least 25 mm wide and use 300 DPI minimum, which the SVG output handles automatically.

Related Tools