Skip to content

Barcode Generator (EAN, UPC, Code 128)

Make EAN-13, EAN-8, UPC-A, Code 128, Code 39, ITF-14 and Codabar barcodes as PNG and SVG, with check digits validated.

    Options

    How to use Barcode Generator (EAN, UPC, Code 128)

    1. Type the content: the product number, code or text.
    2. Choose the barcode type: EAN-13 or UPC-A for retail products, Code 128 for text and logistics, Code 39, ITF-14, Codabar and others.
    3. Set the bar height and width, the colour, and whether the text is shown under the bars.
    4. Press Start and download the barcode as PNG (for documents) or SVG (for printing at any size).

    How Barcode Generator (EAN, UPC, Code 128) works

    Check digits

    EAN-13, EAN-8, UPC-A and ITF-14 end with a check digit. If you type the number without it, it is calculated and added; if you type it with a wrong one, the content is refused, so a printed code always scans.

    Which type

    EAN-13 (Europe and most countries) and UPC-A (North America) are for products sold in shops and need numbers from GS1. Code 128 encodes any letters and numbers compactly and is common for shipping labels. Code 39 is older and only uppercase. Codabar is used by some libraries and blood banks.

    Made by JsBarcode

    The barcode is drawn with the open-source JsBarcode library as a vector SVG, then rendered to a sharp PNG at three times its size.

    Comparison

    This site (in-browser)Typical upload-based sites
    Your filesNever leave your deviceSent to a remote server
    Waiting timeNo upload, no download queueUpload + processing + download
    LimitsNoneOften file-size or daily limits
    Works offlineYes, once loadedNo

    Tips for the best result

    • Use the SVG file for print: it stays sharp at any size.
    • Keep a white margin around the barcode (the 'quiet zone'); do not crop it.
    • Dark bars on a light background scan best; avoid red bars.
    • Test-print and scan with a phone app before printing many labels.

    Private by design

    Barcode Generator (EAN, UPC, Code 128) runs entirely inside your browser, in background threads (Web Workers) that use your device's own processor. Your files are never uploaded to our servers, so nobody else can see them, and processing starts instantly with no upload or download wait. Once the page has loaded, the tool keeps working even without an internet connection.

    Related tools

    Frequently asked questions

    Can I make a barcode for a product I sell in shops?

    Yes, but the EAN or UPC number itself must come from GS1 for your company; this tool only draws it.

    Why is my EAN-13 refused?

    It needs 12 digits (the check digit is added) or 13 digits with a correct check digit, and numbers only.

    Can I make QR codes?

    Use the QR Code Generator.

    Is it free for commercial use?

    Yes, the pictures you create are yours.

    Is my data uploaded?

    No. Files and pasted text are processed by JavaScript in your browser and never sent to FileToolsPlus or any server, so you can use it for private configuration files, API keys or customer data.

    Does it work offline?

    Once the page has loaded, the conversion itself needs no internet connection.