Barcode Generator

Make Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14 and Interleaved 2 of 5 barcodes, with check digits added and checked. PNG or SVG.

Barcode

Drawing…

This barcode containsTD-2026-0042

Content

Letters, digits, spaces and punctuation (printable ASCII).
Bar height
How is this calculated?
GS1 check digit (EAN, UPC, ITF-14): weight the digits 3, 1, 3, 1 … from the right, add them up, and the check digit brings the sum to the next multiple of 10. Bars are drawn by bwip-js, a port of the Barcode Writer in Pure PostScript.

Runs in your browser — nothing you enter leaves this device.

About this tool

What it does

Barcode Generator draws the seven linear barcodes most used in shops, warehouses and offices. Code 128 holds any printable ASCII text — letters, digits and punctuation — and is the usual choice for shipping labels, asset tags and stock codes. EAN-13 and UPC-A are the retail barcodes on products, EAN-8 their short form for small packs, ITF-14 the code printed on cartons, Code 39 an older format still read by industrial and library scanners, and Interleaved 2 of 5 a compact digits-only code for warehouses. Choose a format, type the content and the barcode appears at once. For the retail formats the GS1 check digit is handled for you: leave it off and it is added, type a wrong one and the barcode is refused with the right digit named, because a till rejects a code whose check fails. Download a PNG for documents or an SVG, which stays sharp at any size, for printing labels.

How to use it
  1. Choose a format; an example appears so you can see the kind of content it holds.
  2. Type your content. For EAN, UPC and ITF-14 you can leave off the last digit.
  3. Choose the bar height and whether the text is printed under the bars.
  4. Download the PNG, or the SVG for printing.
Limits and your data
  • A barcode only makes sense to a shop if its number is registered. EAN-13 and UPC-A numbers for products you sell come from GS1 (GS1 India here); a made-up number may clash with another product.
  • Print at 100% scale, without “fit to page”, and test with a real scanner before printing a batch. Shrinking a retail barcode much below its nominal size, or printing it in light colours, stops it scanning.
  • Code 128 here covers printable ASCII. Accented letters and other scripts need a QR code.
  • Code 39 has no lower-case letters, so lower case is turned into capitals. Its full-ASCII extension is not offered, as many scanners do not decode it by default.
  • Add-on codes (EAN-2 and EAN-5 for magazines and books), UPC-E and GS1-128 with application identifiers are not offered yet.
  • The barcode is drawn in your browser. What you type is not sent anywhere or saved.

Questions

Which barcode should I use?

For products sold in shops, EAN-13 (or UPC-A in North America) with a number from GS1. For your own labels, stock codes and asset tags, Code 128: it holds letters and digits and is compact.

What is a check digit?

The last digit of an EAN, UPC or ITF-14, worked out from the others so a scanner can tell when a digit was misread. The check digit calculator shows the sum step by step.

Is the barcode free to use?

Yes. The drawings are yours. Only the numbering of retail products is managed, by GS1, so that every product has a unique number.

PNG or SVG?

SVG for printing labels and packaging: it is a drawing, so the bars stay sharp at any size. PNG for pasting into a document or a spreadsheet.