Barcode Generator

With this barcode generator you create barcodes for Code 128, Code 39, EAN-13, EAN-8, UPC-A and ITF: enter the text, let the check digit be added and save a PNG or SVG, no upload.

Source: Wikipedia – Code 128 (Symboltabelle, Zeichensätze A/B/C, Prüfsumme). Updated: .

for EAN/UPC the digits without the check digit are enough
Code 39 (mod 43) and ITF (mod 10) only; EAN/UPC always carry a check digit
px
px
1 = narrowest bar width; 3 reads well in print and on screen
modules
blank space beside the code; values below 10 (EAN-13/UPC-A: 11, EAN-8: 7) are not drawn
optional – every line becomes its own barcode of the same type, all on one sheet (up to 60)
My ToolboxYour inputs are saved in this browser only.

ABC-12345

The preview updates with every input.

Result

Barcode
Code 128: ABC-12345
Details
  • 123 modules (narrowest bar widths)
  • 11 symbols
  • Image size in the PNG export: 429 × 300 pixels
Print black on white, leave space on both sides (quiet zone) and test the code with a scanner or phone camera before printing.

How it is calculated

A barcode turns text or numbers into bars that a scanner can read. The generator works out character sets and check digits itself and gives you a PNG or a lossless SVG graphic.

Which barcode type fits?

Good to know

The quiet zone left and right is mandatory, or scanners fail. Never stretch the width; choose the pixels per module instead. For packaging SVG is the best choice because the graphic scales without loss. All calculations run in your browser.

Check digit, batch and margin

Check digit with working: for EAN-13, EAN-8, UPC-A and ITF-14 the “Details” show how the last digit is found. Example EAN-13 400638133393: the digits are weighted by 3 and 1 alternately from the right, the sum is 89, and 1 is missing to reach 90 – the code is 4006381333931.

Batch: enter one value per line in the “Batch” field. Every line becomes its own barcode of the chosen type, all placed on one sheet that you save as PNG or SVG (up to 60). Faulty lines are named with their line number and skipped. ITF-14 encodes the 14-digit number of an outer carton; 13 digits are enough, the check digit is added. “Margin” widens the quiet zone left and right, measured in module widths.

Frequently asked questions

How do you make a barcode?

Choose the barcode type, enter the content and save a PNG or SVG. For EAN and UPC the digits are enough; the generator adds the check digit.

Which barcode is best for your own labels?

Code 128. It takes any characters, is short and readable by practically every scanner. You only need EAN-13 for items sold through retail.

How is the EAN check digit calculated?

The digits are weighted alternately by 3 and 1 from the right and added. The check digit brings the sum up to the next multiple of 10.

Can I invent my own EAN number?

Not for retail sale: GS1 issues EAN numbers under licence. For internal use, tests or stock, Code 128 is the better choice.

Sources and legal basis

As of: · Editorial policy

Related tools