Skip to content

Barcode Generator

Make a Code 128, EAN-13, UPC-A, UPC-E, EAN-8, Code 39 or ITF-14 barcode with the check digit worked out, and download it as SVG or PNG. Runs in your browser.

Runs in your browser

Everything happens on your device: nothing you paste or type is sent to our server or stored. A share link holds your settings, and your input only if you choose to include it.

Retail products use EAN-13 or UPC-A; shipping cartons ITF-14; labels and inventory Code 128.

More options

In multiples of the narrowest bar. Retail EAN/UPC symbols are about 69 modules tall at full size.

Width of the narrowest bar in the PNG download. Whole pixels keep every bar sharp.

Barcode updated: FMS-2026-0042.

Barcode type
Code 128
Encoded data
FMS-2026-0042
Width (modules, first bar to last bar)
167

Method: Code 128, ISO/IEC 15417:2007 · jsbarcode 3.12.3 (encoders)

Off by default. When on, your input is packed into the part of the link after “#”, which browsers never send to any server; anyone you give the link to will see it.

How it works

Your data is checked against the rules of the barcode type first: Code 39 takes capital letters, digits and seven symbols; Code 128 here takes plain ASCII; the retail and carton types take digits only, at their fixed lengths. For EAN-13, UPC-A, UPC-E, EAN-8 and ITF-14 the GS1 mod 10 check digit is added when you leave it off and checked when you include it, with the same code as our GTIN check digit calculator. A wrong check digit is an error, never silently corrected.

The bar patterns come from the open-source JsBarcode encoders (version 3.12.3), loaded in your browser when the page opens; Code 128 switches between code sets A, B and C automatically to keep the symbol short. Drawing is our own code: an SVG with the quiet zones the standards require (11 and 7 modules either side of an EAN-13, 10 for Code 128, Code 39 and ITF-14), longer guard bars on retail symbols, the human-readable line underneath and bearer bars on ITF-14.

Every barcode type is tested by decoding the output again with an independent reader (zxing-cpp). Nothing is uploaded: the data stays on your device.

Standards this tool follows

Barcode Generator: Code 128, EAN-13, UPC and ITF-14 Barcodes

By FindMySum · Last reviewed

This barcode generator draws Code 128, EAN-13, UPC-A, UPC-E, EAN-8, Code 39 and ITF-14 barcodes and lets you download them as SVG or PNG. Pick the type, type the data, and the barcode updates as you type, in your browser: nothing is uploaded, and the check digit is worked out for you.

How to make a barcode

  1. Choose the barcode type. Products for shops use EAN-13 or UPC-A; labels and inventory use Code 128.
  2. Type the data. For number types you can leave off the last digit and the check digit is added; if you type it, it is checked.
  3. Download the SVG for print and design work, or the PNG for documents and label software. Set the bar height and the PNG's pixels per module under More options.
  4. Print a test copy and scan it with the scanner or app that will read it in practice.

A worked example

Type 400638133393 with EAN-13 selected. The weighted sum of those 12 digits is 89, so the check digit is 1 and the barcode encodes 4006381333931. The symbol is 95 modules wide: a start guard, six digits on the left, a centre guard, six on the right and an end guard. The first digit isn't drawn as bars at all: it is carried by the pattern of odd and even parity among the left six digits, which is why it is printed in the margin.

Choosing between Code 128 and Code 39

Both encode letters and digits, but Code 128 packs more into less space, has a built-in check character and switches to a compact double-digit mode for runs of numbers. Code 39 needs no check character and is easy to read by older equipment, but only has capital letters and is roughly twice as wide. Unless a system asks for Code 39, use Code 128.

Common mistakes

Inventing retail numbers. A correct check digit doesn't make a number yours; use numbers from your GS1 membership.

Cropping the quiet zone. The white margins are part of the barcode.

Stretching the image. Scaling a PNG by a non-whole factor blurs or drops thin bars. Download a fresh PNG at the size you need, or use the SVG.

Coloured or low-contrast bars. Scanners use red light, so red bars disappear. Print black bars on white.

To check a GTIN without drawing it, use the GTIN check digit calculator; for links and text, make a QR code instead.

Sources

Frequently Asked Questions

Can I make a UPC or EAN barcode for a product I sell in stores?

You can draw any valid number, but shops and marketplaces only accept numbers from your own GS1 company prefix, which you license from GS1 (GS1 Canada, GS1 US and so on). The generator checks the check digit, not ownership. Numbers bought from resellers often belong to another company and get rejected.

Which barcode type should I use?

EAN-13 or UPC-A for products sold at retail (UPC-A is the norm in Canada and the US), UPC-E or EAN-8 for packs too small for those, ITF-14 for cartons and cases, and Code 128 for anything else such as asset tags, shipping references and inventory labels. Code 39 is older and wider, but some systems still require it.

Why must I keep the white space on each side?

Scanners need a quiet zone to find where the barcode starts and ends. An EAN-13 needs 11 modules of white on the left and 7 on the right; Code 128 and Code 39 need 10 modules each side. The downloads include them, so don't crop the image tight to the bars.

What size should I print it?

For retail EAN-13 and UPC-A, GS1's nominal size is about 37 by 26 mm, and it can shrink to 80% or grow to 200%. Make each module a whole number of printer dots: the PNG option for pixels per module does that for screens and label printers, and the SVG scales cleanly for design software.

Spotted a wrong result or a bug? Report a problem (the link sends the page address only, never what you entered).

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy