Online Tool Store Online Tool Store

Barcode Generator

Generate EAN-13, EAN-8, UPC-A, and Code128 barcodes and download them as SVG or PNG. Runs entirely in your browser — nothing is uploaded.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

How it works

  1. Choose a barcode type — EAN-13, EAN-8, UPC-A, or Code128.
  2. Type the value to encode. The barcode redraws as you type.
  3. Download the result as SVG (crisp at any size, best for print) or PNG.

How the check digit works

EAN and UPC barcodes end with a check digit that lets a scanner detect a misread. It's calculated by alternating weights of 1 and 3 across the preceding digits, then finding what's needed to round the total up to the next multiple of 10:

Check digit = (10 − (Σ(digit × weight) mod 10)) mod 10, weights 1,3,1,3,…

Example: the sample value 590123412345 as EAN-13 sums to 83 (weighting each digit 1 or 3 by position), giving a check digit of 7 — so the full encoded number is 5901234123457.

Code128 doesn't use this scheme — it has its own built-in checksum, calculated and added automatically as part of the encoding.

FAQ

Do I need to work out the check digit myself?

No — for EAN-13, EAN-8, and UPC-A, enter just the base digits (12, 7, or 11 respectively) and the check digit is calculated and appended automatically. You can also enter the full length including your own check digit, and it's validated instead of replaced.

What's the difference between EAN-13 and UPC-A?

UPC-A (12 digits) is the standard in the US and Canada. EAN-13 (13 digits) is used almost everywhere else and is a superset of UPC-A — most modern scanners read both. If you're not sure which you need, EAN-13 is the safer default.

Can Code128 encode letters and symbols, not just numbers?

Yes — Code128 supports the full ASCII character set (letters, digits, and most punctuation), unlike EAN and UPC, which only encode digits. Use it for SKUs, serial numbers, or any alphanumeric code.

Will these barcodes actually scan?

They're generated using the standard EAN/UPC/Code128 encoding rules, so yes with most standard scanners. If you're printing for retail or commercial use, test a physical printout first — print size, contrast, and paper quality all affect scan reliability in ways an on-screen preview can't show.

Is the value I enter uploaded anywhere?

No. The barcode is drawn entirely in your browser with JavaScript — nothing you type is sent to a server.

How we compare

Feature Online Tool Store Typical free online barcode generators Design software (Canva, Adobe Express)
Runs entirely in your browser — nothing sent to a server Usually not — most generate the image via a server-side API call
Free, no watermark on the barcode Varies — some watermark or cap resolution on the free tier
No sign-up required

If you just need a clean EAN, UPC, or Code128 barcode without an account, a watermark, or your data leaving your device, Barcode Generator gets you there in one page.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.