Barcode Generator

: Make Code 128, UPC-A, EAN-13, Code 39, ITF-14 and other barcodes in your browser, with check digits worked out, as SVG or PNG, one at a time or in bulk from a list
Limits: 20 MB · .txt or .csv, one value per line
Barcodes
Pixels per module, the narrowest bar
Options
Type or paste a value to see its barcode; one value per line makes a batch.

A free barcode generator that runs in your browser: type or paste a value and get the barcode as SVG or PNG. It makes Code 128, GS1-128, Code 39, Code 93, EAN-13 (which covers ISBN), EAN-8, UPC-A, UPC-E, ITF-14, Interleaved 2 of 5, Codabar and MSI Plessey, adds a check digit when you leave it out and checks it when you type it. Paste a column from a spreadsheet and the same page becomes a batch barcode generator with ZIP downloads and a printable sheet.

  1. Choose the Type. Not sure which? The notes below say when to use each one; Code 128 takes any text.
  2. Type or paste into Values, one value per line. The line under the box counts them. The Examples menu has one for each type.
  3. Set Bar width (px) (the narrowest bar), Height (px), Text under the bars, Bar colour and Background. For Code 39 there is also Mod 43 check character.
  4. With one line, the barcode appears large with its check digit, size and, for Code 128, the code sets used. Save it from Files as SVG or PNG, or take both in a ZIP.
  5. With several lines, a table lists every line and marks the ones that could not be encoded. Use All as SVG (ZIP), All as PNG (ZIP) or Printable sheet (PDF, Letter); Sheet paper and Sheet columns appear once there are several lines.

A 12-digit EAN-13 value left without its check digit. The tool adds it and shows the figures it would show you, at the default bar width of 2 px and height of 100 px. The same number with a wrong 13th digit, 5901234123450, is refused: "The check digit is wrong: it should be 7, not 0."

Input
Type: EAN-13 / ISBN
Values: 590123412345
Output
Check digit 7 added.
Type: EAN-13 / ISBN
Encoded data: 5901234123457
Check digit: 7
Characters: 13
Modules wide: 95 + 11 quiet each side
Size: 234 × 120 px

What is a UPC barcode?

A UPC-A is the 12-digit retail barcode used on products in North America: 11 digits for the number system, manufacturer and product, and a 12th check digit. EAN-13 is the same idea with 13 digits for the rest of the world, and a UPC-A is an EAN-13 with a leading 0. This UPC code generator takes 11 digits and adds the check digit (036000291452 for 03600029145), or checks it if you type all 12.

How do I get a UPC barcode for my product?

You need a company prefix, and that is licensed by GS1. The numbers have to be yours, because shops and marketplaces look them up. Once you have a number, type it here to get the image. The page cannot give you a number that belongs to you.

What is the difference between Code 39 and Code 128?

Code 128 holds all ASCII characters, in less space: 134 modules for a 12-character value, with automatic code sets. Code 39 holds capitals, digits and a few symbols, and each character is wider. Pick Code 39 only when a system or customer asks for it; otherwise Code 128 is the shorter choice.

Why was my number refused, and what is a check digit?

A check digit is the last digit, worked out from the others so a scanner can spot a mistyped number. If the page says the check digit is wrong, it names the right one: The check digit is wrong: it should be 7, not 0. Either fix the typo or leave the last digit off and let the tool add it.

Is my data uploaded?

No. The barcodes are drawn in your browser, the ZIPs and the PDF are built there on click, and the values are not sent anywhere.

Runs entirely in your browser. Nothing is uploaded.