Skip to content
DayUtils

Barcode Generator – Make Code 128, EAN-13, UPC and Other Barcodes

Create a barcode in seconds: choose the type, type the value and download a sharp PNG or a scalable SVG. Supports Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI and Codabar, checks that the value is valid and lets you change the size and colour.

Loading tool…

How to use the barcode generator

  1. Choose the barcode type. A valid example value fills in automatically.
  2. Type your value.
  3. Adjust the bar height, bar width and colour, and whether to show the number underneath.
  4. Download a PNG or SVG.

If the value doesn’t fit the chosen type — for example the wrong number of digits for EAN-13 — an error explains what to fix.

Barcode types

TypeWhat it encodesTypical use
Code 128Letters, numbers, symbolsShipping labels, inventory, asset tags
EAN-1312 digits + check digitRetail products worldwide
EAN-87 digits + check digitSmall retail packages
UPC-A11 digits + check digitRetail products in the US and Canada
Code 39Capital letters, digits, a few symbolsID badges, industry, older systems
ITF-1413 digits + check digitOuter cartons and cases
MSI PlesseyDigitsShelf labels and warehouses
CodabarDigits and a few symbols, with start and stop lettersLibraries, blood banks, couriers

How a check digit works (EAN-13)

Starting from the left, multiply the 12 digits alternately by 1 and 3, add the results, and find the number that brings the total up to the next multiple of 10. For 590123412345: the weighted sum is 83, so the check digit is 7 (83 + 7 = 90), giving 5901234123457.

Printing tips

  • Size: a standard EAN-13 is about 37 × 26 mm at 100%. You can shrink it to around 80% or enlarge it to 200%, but not much further.
  • Quiet zone: keep a clear white margin on both sides — at least ten times the narrowest bar width.
  • Contrast: dark bars on a white or light background. Red bars don’t scan with red-light scanners.
  • Resolution: use the SVG for print or a high-resolution PNG; never stretch a small image.
  • Test: scan a printed sample with the scanner or phone app you will actually use before printing hundreds.

Barcodes vs QR codes

Barcodes store a short number or code in one dimension and are read by laser and camera scanners at checkouts and warehouses. QR codes are two-dimensional, hold much more data — such as a web link or payment details — and are read by phone cameras. For links, menus and payments, use the QR code generator.

To put barcodes on invoices or labels, pair this with the invoice generator, and check label sizes with the paper size chart.

Frequently asked questions

Which barcode type should I use?

For your own labels, stock and asset tags, Code 128 is the most flexible — it encodes letters, numbers and symbols compactly. For products sold in shops, use EAN-13 (most of the world) or UPC-A (US and Canada). For shipping cartons, ITF-14.

Can I make a barcode to sell products in shops?

You can draw the barcode here, but the number itself must be issued by GS1, the organisation that manages retail barcodes. Retailers check that the number belongs to your company. Made-up EAN or UPC numbers will be rejected.

What is a check digit?

The last digit of EAN and UPC codes, calculated from the others so scanners can detect typing mistakes. You can leave it off and the generator adds it; if you include a wrong one, you’ll see an error.

PNG or SVG?

SVG is a vector file that stays sharp at any size — best for print and design software. PNG is an image at three times screen resolution — best for documents, websites and label printers that need an image.

Why won’t my barcode scan?

Common causes are printing too small, low contrast (light bars or a dark background), blurry printing, or not enough white space around the code. Print at 100% size and keep a clear margin on both sides.

Is this free for commercial use?

Yes. The barcodes you make are yours to use. There’s no watermark and nothing is uploaded.

Last updated: