Free Tools Grid

Barcode Generator

Utility Tools

Generate barcodes in six standard formats: Code 128, EAN-13, EAN-8, UPC-A, Code 39, and ITF-14. Download as PNG or SVG with a configurable bar width and height.

Runs entirely in your browser
Loading tool...

About Barcode Generator

Barcodes are still everywhere — retail, inventory, shipping, libraries, asset tracking — because they're cheap to print and universally scanned. Different industries use different formats: EAN-13 is the global standard for retail products, UPC-A is the North American retail standard, Code 128 is a flexible general-purpose format used in shipping and logistics, Code 39 is common in manufacturing and military, and ITF-14 is used for shipping cartons.

This generator covers all six common formats with the strict content rules each one requires (EAN-13 needs exactly 12 digits — the check digit is auto-computed; Code 128 accepts any ASCII; Code 39 accepts a limited alphabet). Adjust the bar width and height to suit your printing setup, toggle the human-readable text below the bars, and download as PNG (universal raster) or SVG (perfect for print at any size). Generation uses `jsbarcode` and runs entirely in your browser.

How to use

  1. 1

    Pick a format

    Code 128 for general-purpose. EAN-13/EAN-8 for retail products. UPC-A for North American retail. Code 39 for manufacturing/military. ITF-14 for shipping cartons.

  2. 2

    Enter the content

    Each format has different rules — the helper text under the dropdown shows the required digit count or alphabet. The default example shows valid content for the selected format.

  3. 3

    Adjust appearance

    Bar width slider (1–6) controls thickness. Height slider (40–200px) controls bar height.

  4. 4

    Toggle text display

    Show or hide the human-readable content below the bars.

  5. 5

    Download

    PNG for raster, SVG for scalable vector output.

Examples

EAN-13 retail product code

12 digits in; the 13th digit (check) is auto-computed.

Input

590123412345

Output

13-digit EAN-13 barcode with check digit

Code 128 shipping label

Free-form ASCII content, common in logistics.

Input

PKG-2024-00471

Output

Code 128 barcode encoding the shipment ID

Frequently asked questions

Which format should I use?+

EAN-13 if you're selling retail products globally (with a GS1-assigned company prefix). UPC-A for North American retail. Code 128 for everything else — it's flexible, dense, and universally scanned. Avoid Code 39 unless you're in an industry that mandates it.

What's a check digit?+

EAN, UPC, and ITF formats include a check digit computed from the other digits. It's there so scanners can detect read errors. Our generator computes it automatically — you provide the data digits, the tool adds the check digit.

Why does my Code 39 input fail?+

Code 39 only allows uppercase letters, digits, and `-.$/+%*=` (plus space). Lowercase letters and most symbols are not allowed — the tool will reject them with an error message.

How big should I print the barcode?+

Industry minimums: EAN-13 at 100% magnification is 37.29mm × 25.93mm. Print smaller and you may get scan failures, especially at distance or with cheap scanners. For Code 128 in office use, larger and higher contrast is always better.

Is my content sent anywhere?+

No. Barcode rendering happens locally via jsbarcode.