Skip to content

Barcode generator

Make Code 128, GS1-128, EAN-13, UPC-A, UPC-E, EAN-8, Code 39 or ITF-14 barcodes, one at a time or many at once as a ZIP. Check digits are worked out for you.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

Letters, digits and symbols on a standard keyboard (ASCII), up to 80 characters.

Your barcode will appear here

How it works

Your value is turned into bars in your browser, following the published rules for each barcode type, and nothing is sent anywhere. Check digits for EAN, UPC and ITF-14 are worked out as you type, and a number that already has one is checked.

Code 128 switches to its compact mode for runs of digits, so a value that is mostly numbers gives a shorter barcode. Every barcode includes the blank margins (quiet zones) scanners need on each side, and in the PNG each bar is a whole number of pixels wide, so its edges stay sharp.

For GS1-128, each application identifier and its value are checked against the GS1 Barcode Syntax Dictionary (Apache License 2.0), GS1's table of what each one holds: its length, which characters it allows, check digits, dates and times, and pairs of identifiers that can't go together. The barcode starts with the FNC1 character that marks it as GS1, and a separator follows each value whose length the standard doesn't fix, unless it is the last.

A UPC-E stands for a UPC-A number with zeros left out. The page works out that UPC-A, takes the check digit from it and shows it under the barcode. A UPC-A you type is shortened only when it has those zeros, and a UPC-E written in a non-standard way is refused with the standard form, so there is never a second barcode for the same number.

In bulk mode, every line is checked the same way (spaces at either end of a line and blank lines are skipped) and each barcode becomes its own file in a ZIP, built in your browser too. Files are named after their values, with characters that aren't safe in file names replaced by dashes, and a number added when two would clash.

Questions

Which barcode type should I use?

Products sold in shops use EAN-13, or UPC-A in the US and Canada. Very small packs use EAN-8, or UPC-E, a shorter form of some UPC-A numbers. Outer cartons of those products use ITF-14, and pallet and shipping labels that follow the GS1 standard use GS1-128. For anything else, such as asset tags, stock and library numbers, Code 128 is the usual choice: it holds letters and digits and stays compact. Code 39 is for older systems that ask for it.

Can I make my own UPC or EAN number for a product?

This page will draw any number, but a UPC or EAN for selling in shops has to come from GS1, the organisation that issues them. Shops and online marketplaces check that the number belongs to your company. Made-up numbers are fine for your own use, like labelling shelves or stock.

What is a check digit?

The last digit of an EAN, UPC or ITF-14 number is worked out from the others, so a scanner can tell when it has misread one. Type the number without it and it is added for you. Type it with the check digit and the page checks it, and tells you which digit it expected if it is wrong.

How do I make a GS1-128 barcode?

Choose GS1-128 and type each application identifier in brackets followed by its value, such as (01)09501101530003(17)261231(10)ABC123: (01) is the 14-digit GTIN, (17) the expiry date as YYMMDD and (10) the batch. Each value is checked against the GS1 rules for its identifier, including check digits and dates, and the separators scanners need between values are added for you. One barcode holds up to 48 characters; labels with more data use two or three barcodes.

Can I make many barcodes at once?

Yes. Choose "Many at once", paste one value per line or open a CSV or text file (a CSV gives its first column), and download them all as a ZIP of PNG or SVG files named after their values. Up to 1,000 at a time, all of the same type and size. Lines with a mistake are listed with what is wrong, and the rest are still made.

Should I download PNG or SVG?

SVG for printing labels and anything that will be resized, because it stays sharp at any size. PNG for documents, spreadsheets and places that only take ordinary images. When you resize a barcode, keep its proportions: stretching it unevenly changes the bar widths a scanner reads.

Limits

Eight types: Code 128 (up to 80 characters on a standard keyboard), GS1-128 (up to 48 characters), EAN-13, UPC-A, UPC-E (number systems 0 and 1), EAN-8, Code 39 (up to 40 characters) and ITF-14. The small 2 and 5 digit add-ons and 2D codes such as Data Matrix and PDF417 aren't supported yet. For a 2D code, use the QR code generator.

GS1-128 checks each value on its own, not whether a GTIN or company prefix really belongs to you, country and currency codes, or which identifiers a label must carry together (they can be spread over several barcodes). A value can't contain a number in brackets, such as (12), because that reads as the next identifier.

The text under the bars is set in your device's monospace font, and an SVG shows it in the font of the app that opens it. If a label must use the OCR-B font, turn the text off and add it in your label software. ITF-14 is drawn without the bearer bars (the frame around it) used when printing straight onto cardboard.

Bulk mode makes up to 1,000 barcodes at a time, all of one type and size, and doesn't keep the list in the page's link. It doesn't lay them out on label sheets: open the files in your label or word processing software for that.

Privacy

This tool runs entirely in your browser. The files you open and what you type are never sent to a server, and nothing is stored after you close the page. See the privacy page.

Related tools