Barcode Generator

Generate Code 128 or EAN-13 barcodes from text or numbers, with an automatic check digit and crisp SVG or PNG download. Everything is drawn in your browser, nothing is uploaded.

How it works

Code 128 encodes any letters, numbers and symbols, automatically switching to a compact numeric mode for digit runs, ideal for SKUs, asset tags and shipping labels. EAN-13 is the 13-digit retail barcode found on consumer products; enter 12 digits and the final check digit is calculated for you.

The barcode is drawn as a crisp vector (SVG) and can be exported as a PNG raster too. A built-in checksum is added so scanners can verify the read.

Everything is generated in your browser, your data is never uploaded.

What this does

A barcode generator creates Code 128 or EAN-13 barcodes from text or numbers, with an automatic check digit and a crisp SVG or PNG download.

How to use it

  1. Pick Code 128 or EAN-13.
  2. Enter the data.
  3. Let the check digit auto-fill.
  4. Download SVG or PNG.

How it works

Code 128 encodes any letters, numbers, and symbols; EAN-13 is the 13-digit retail code. Enter the first 12 digits and the check digit is appended automatically.

EAN-13 check = 10 − (weighted sum mod 10)

Example

Entering 12 digits returns the full 13-digit EAN with its check digit.

Sources & methodology

Last updated .

Frequently asked questions

Which barcode types are supported?

Code 128, which encodes any letters, numbers and symbols and is ideal for SKUs and labels, and EAN-13, the 13-digit retail barcode used on consumer products.

Do I need to add the EAN-13 check digit?

No. Enter the first 12 digits and the final check digit is calculated and appended automatically. If you paste a full 13-digit code it is verified instead.

Is my data sent anywhere?

No. The barcode is generated entirely in your browser; the data you encode is never uploaded or stored.