Antpact Toolbox
中文
Home › Utilities & Developer › Barcode Generator

Barcode Generator

Generate EAN-13 product barcodes with automatic check digit — download as PNG.

Privacy: this tool runs entirely in your browser — files are never uploaded, and data is gone when you close the page.

How to use

  1. Enter 12 digits (check digit added) or a full 13-digit code.
  2. Tune bar width, height and whether to show digits.
  3. Click "Download PNG" to save the barcode.

FAQ

What is the difference between 12 and 13 digits?

EAN-13 has 13 digits, the last being the check digit. Enter 12 and it is appended; enter 13 and the last digit is verified.

Can I sell products with this barcode?

The image is a valid, scannable EAN-13, but official retail use requires registering a company prefix with GS1 — this tool registers nothing.

What does a 69 prefix mean?

69 is the country prefix for mainland China; "Random" generates examples starting with 69.

Is the downloaded image high quality?

It exports at true canvas resolution — increase bar width (4–5px) for print-quality output.

Is my code uploaded?

No — the barcode is drawn entirely in your browser.

About this Barcode Generator

Draws to the EAN-13 spec (GB 12904 / ISO 15420): the leading digit selects the L/G parity pattern for the six left digits, guard bars separate the halves, and the final digit is the check digit (alternating 1/3 weights, mod 10). Rendered locally on canvas.