Free Barcode Generator — Code 128, EAN-13, UPC-A

Type a value and draw a linear barcode label in your browser. Live SVG preview with PNG and SVG download. The symbol is drawn locally, and this number is not assigned by GS1.

Loading…
Free Barcode Generator
Draw Code 128, EAN-13, and UPC-A label images locally. Download PNG or SVG; the symbol is drawn in your browser and the number is not a GS1 assignment.

Developer notes

Drawing uses JsBarcode 3.11.0 with frozen black bars (#000000) and white background (#ffffff). Font and per-side margins are not exposed. EAN-13 and UPC-A accept digits only; spaces are not stripped. A missing check digit is calculated with GS1 mod-10 before draw; a wrong check digit is rejected. PNG export rasterizes the same SVG in a canvas, with no second server encode. For checksum-valid dummy GTIN strings (test data), use <a href="/en/test-gtin-generator">Test GTIN Generator</a>, not this page.

Options

  • Symbology

    Switches the linear format and input rules. Code 128 takes free text, EAN-13 takes 12 or 13 digits, and UPC-A takes 11 or 12 digits, with GS1 check digit validation.

  • Show text under bars

    Controls human-readable text (HRI) under the bars in the SVG and raster exports.

  • Bar height

    Sets bar height in pixels (short 50, normal 80, tall 120). Taller bars can improve scan reliability on printouts.

  • Module width

    Sets the width of one bar module in pixels (narrow 1, normal 2, wide 3), changing symbol density and overall width.

Related tools

GTIN test strings (not label images): Test GTIN Generator. More utilities on All tools.

When this is the right tool

You need a scannable linear barcode image for a mock SKU, internal ID, or demo label, not a GS1 registry lookup. You want Code 128 for arbitrary text or EAN-13 / UPC-A for retail-style numeric labels. You need PNG or SVG files with no account, no upload, and no paywall.

Barcode Generator FAQ

Browser-local linear barcodes

Is this a GS1 GTIN lookup or brand registry?

No. The page only draws the symbol you type. It does not verify ownership or assign a licensed GTIN.

Does it generate QR codes?

No. This page is limited to Code 128, EAN-13, and UPC-A linear symbologies.

Is my value sent to a server?

No. Validation, drawing, and file download run entirely in your browser.

What happens if my EAN-13 is one digit short?

The GS1 mod-10 check digit is calculated locally, shown in the preview, and included in downloads.

Draw Code 128, EAN-13 and UPC-A labels and static QR codes in your browser, then download PNG or SVG. This is not a GS1 lookup.