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 works right here on your device — nothing gets sent out.
Size and colors
Dark bars on a light background scan most reliably. Always test a printout with your scanner before printing in bulk.
How it works
- Choose a barcode type — EAN-13, EAN-8, UPC-A, ITF-14, Code128 or Code 39.
- Type the value to encode. The barcode redraws as you type, and a missing check digit is added for you.
- Optionally open Size and colors to change bar width, height, margin, the number text and the colors.
- Download the result as SVG (crisp at any size, best for print) or PNG.
- Need many? Switch to Many barcodes, enter one value per line, and download a ZIP of SVG or PNG files.
How the check digit works
EAN, UPC and ITF-14 barcodes end with a check digit that lets a scanner detect a misread. Starting with the digit right next to the check digit and working left, multiply the digits alternately by 3 and 1, add them up, and the check digit is whatever brings the total up to the next multiple of 10:
Check digit = (10 − (Σ(digit × weight) mod 10)) mod 10, weights 3,1,3,1,… from the right
Example: the sample value 590123412345 as
EAN-13 sums to 83 (5×3 + 4×1 + 3×3 + … working from the right), giving a
check digit of 7 — so the full encoded number is 5901234123457.
Code128 and Code 39 don't use this scheme for the values you type. Code128 has its own built-in checksum, added automatically as part of the encoding.
FAQ
How do I generate a barcode online for free?
Pick a barcode type, type or paste the value, and the barcode draws as you type. Then download it as SVG or PNG. There is no sign-up and no watermark, and nothing is sent to a server.
Do I need to work out the check digit myself?
No — for EAN-13, EAN-8, UPC-A and ITF-14, enter the digits without the check digit (12, 7, 11 or 13 digits) and it is calculated and appended for you. If you enter the full length, the check digit is validated instead, and a wrong one is reported together with the correct value.
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 or Code 39 encode letters and symbols?
Yes. Code128 supports the full ASCII character set (letters, digits, and most punctuation). Code 39 supports uppercase A–Z, digits 0–9 and the symbols - . space $ / + % (lowercase is converted to uppercase). EAN, UPC and ITF-14 encode digits only.
What is ITF-14 used for?
ITF-14 encodes a 14-digit GTIN and is commonly printed on cartons and shipping cases rather than on individual products. Enter 13 digits and the check digit is added, or enter all 14 to have it checked.
Can I make many barcodes at once?
Yes. Switch to Many barcodes, enter one value per line (up to 100), and every valid line becomes a barcode. Lines with problems are flagged with the reason instead of stopping the batch. Download the valid ones as a ZIP of SVG or PNG files.
Can I change the size and colors?
Yes — open Size and colors to set bar width, height, margin, whether the number is shown, and the bar and background colors. Scanners need dark bars on a light background, so the tool warns you when the contrast is low or the colors are inverted.
Will these barcodes actually scan?
They use the standard EAN/UPC/ITF/Code 128/Code 39 encoding rules, so yes with standard scanners. 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 | BaseToolbox | Barcode Maker | TEC-IT |
|---|---|---|---|---|
| Runs in your browser — nothing sent to a server | ✓ | Renders in the browser | Not stated on the page | Server-side processing |
| Check digit added and validated, with the correct value shown on a mistake | ✓ | Not stated on the page | Not stated on the page | Not stated on the page |
| Bulk barcodes downloaded as a ZIP, free | ✓ | Not listed on the page | ✓ | Batch limited to 10 for unregistered users |
| Bar and background colors with a scan-contrast warning | ✓ | Appearance settings, not detailed | Not listed on the page | Colors available; no warning listed |
| SVG and PNG downloads with no sign-up | ✓ | ✓ | ✓ | SVG needs a subscription |
TEC-IT and Barcode Maker cover far more barcode types, including 2D codes, which this tool deliberately doesn't. Choose Barcode Generator when you want common 1D barcodes — EAN, UPC, ITF-14, Code 128 or Code 39 — with the check digit handled, colors that stay scannable, and a ZIP of many at once, without an account or your data leaving your device.