Barcode Generator

Create Code 128 and EAN-13 barcodes with adjustable size, then download them as crisp SVG or high-resolution PNG.

Barcode Settings
Preview
UPWEBTOOLS-1234
6.662 viewsYour data is processed in your browser and never sent to a server.

Related tools

JSON Formatter
Validate, beautify and minify JSON online. Everything runs in your browser — free and private.
Base64 Converter
Encode or decode Base64 text instantly in your browser. Free and private.
URL Encoder
Encode or decode URLs and query strings instantly in your browser. Free and private.
Color Picker
Pick any color and instantly get its HEX, RGB and HSL codes for CSS and design tools. Free, private, runs in your browser.

Get to know this tool

Barcode Generator creates scannable Code 128 and EAN-13 barcodes in seconds and lets you download them as vector SVG or high-resolution PNG — free, without watermarks, and entirely inside your browser. The data you encode never leaves your device.

What is a Barcode Generator and Why is it Useful?

Barcodes turn text or numbers into a machine-readable pattern of bars that any laser or camera scanner can read. Businesses put them on products, shelves and price tags; warehouses track inventory with them; offices use them on documents, assets and ID cards. Code 128 is the everyday workhorse — it encodes letters, digits and punctuation compactly, ideal for internal SKUs, serial numbers and logistics labels. EAN-13 is the 13-digit standard printed on virtually every retail product worldwide. This tool generates both, with the correct checksums, ready for print.

Key Features

  • Two industry-standard formats: Code 128 (subset B/C with automatic digit optimization) and EAN-13 with automatic check-digit calculation.
  • Vector SVG output: Infinitely scalable — perfect for professional print, labels and packaging design.
  • High-resolution PNG: A 2× rendered raster for quick use in documents and e-commerce panels.
  • Adjustable dimensions: Control bar height and module width so the code fits your label stock.
  • Human-readable text: Optionally print the encoded value under the bars, as on real product labels.
  • Built-in validation: Invalid characters, wrong lengths and checksum mismatches are flagged instantly with clear messages.

How to Use the Barcode Generator?

  1. Choose the format — Code 128 for free text and internal codes, EAN-13 for retail product numbers.
  2. Type the content: any ASCII text for Code 128, or 12 digits for EAN-13 (the 13th check digit is computed for you).
  3. Adjust bar height and width to match where the code will be printed.
  4. Check the live preview — it updates as you type.
  5. Download as SVG for print or PNG for screens.

Why Choose This Tool?

Most online barcode makers watermark the output, cap the resolution, or funnel your product data through their servers. This generator does none of that: the encoding algorithms (including the Code 128 checksum and EAN-13 parity tables) run locally in JavaScript, the downloads are clean, and there is no limit on how many codes you create. Because SVG output is true vector, your barcodes stay razor sharp at any print size — which is exactly what reliable scanning requires.

Frequently Asked Questions (FAQ)

Will these barcodes actually scan?

Yes. The generator implements the official Code 128 and EAN-13 symbologies, including checksums and quiet zones. Print at sufficient size and contrast (dark bars on a light background) and any standard scanner will read them.

What's the difference between Code 128 and EAN-13?

EAN-13 encodes exactly 13 digits and is the format retail checkout systems expect. Code 128 encodes letters and symbols too, so it's the right pick for serial numbers, asset tags and shipping labels.

Can I sell products with an EAN-13 code I generated here?

The barcode image will scan correctly, but official retail numbers must be assigned through GS1 — this tool renders the code, it doesn't register the number for you.

Is my data uploaded anywhere?

No. Encoding and rendering happen entirely in your browser; the content you type is never transmitted.