Barcode Generator: Code 128, EAN-13, UPC-A and More

Make a barcode PNG in six formats, or paste a list of values and download them all as a ZIP. Barcodes are drawn with the open-source JsBarcode library.

Bulk Generator

Bulk Barcode Generator

Paste one barcode value per line. Uses the format and dimensions selected above. Download all as a ZIP.

Runs in your browser: your files and text are not uploaded. Free, no account needed.

Last updated: · Reviewed by the QuickTooly Team

Which format to choose

  • Code 128: letters, digits and symbols (any ASCII character). The usual choice for shipping labels, asset tags and internal IDs. Accented letters and emoji are rejected.
  • EAN-13: the 13-digit retail code used on products outside North America. Enter 12 digits and the tool adds the check digit, or enter all 13 and it checks the last one.
  • EAN-8: the short retail code for small packs. 7 digits plus a check digit.
  • UPC-A: the 12-digit retail code used in the US and Canada. 11 digits plus a check digit.
  • Code 39: an older industrial format. Allows 0 to 9, A to Z, space and - . $ / + %. Lower-case letters are converted to upper case. No check character is added.
  • ITF-14: the 14-digit code printed on shipping cartons that hold retail items. 13 digits plus a check digit.

How the EAN-13 check digit works

Take the first 12 digits. Multiply the digits in positions 2, 4, 6 and so on by 3, and the rest by 1. Add everything up. The check digit is the amount needed to reach the next multiple of 10. For 590123412345: 5 + 0 + 2 + 4 + 2 + 4 = 17, and (9 + 1 + 3 + 1 + 3 + 5) × 3 = 66. 17 + 66 = 83, so the check digit is 7 and the full code is 5901234123457. UPC-A, EAN-8 and ITF-14 use the same method with the weights counted from the right. If you enter the full number and the last digit is wrong, the tool shows "Invalid input for the selected format".

Size and color settings

  • Bar Width (1 to 4, default 2): the width of the narrowest bar in pixels. Every other bar scales with it, so this sets the overall width of the image.
  • Height (50 to 300 px, default 100): the bar height. The value is printed as text under the bars, and a 10-pixel margin is added on every side.
  • Colors: scanners need dark bars on a light background. Red bars are hard to read for laser scanners, which use red light.

The PNG has a fixed pixel size. For print, place it at 100% or scale it up by a whole number, and avoid smoothing, which blurs the bar edges.

Bulk generation

Paste one value per line. Each line is trimmed, empty lines are skipped, and every value uses the format and settings chosen above. Lines that fail validation are listed with their error and left out of the ZIP. Files are named barcode-1-<value>.png, numbered in the order of the valid lines.

Frequently Asked Questions

Can I make an EAN-13 or UPC-A for my own product?

The tool draws any valid number, but a code for sale in shops must come from the GS1 organization in your country, which issues the company prefix. Do not reuse the number of another product; scanners will show that product instead.

Why does my EAN-13 fail with 13 digits?

The last digit does not match the check digit of the first 12. Enter only the first 12 digits to let the tool calculate it, then compare with the number you have.

Which format should I use for internal inventory labels?

Code 128. It holds letters and digits, gives a shorter barcode than Code 39 for the same text, and does not need GS1 numbers.

Related Tools

  • QR Code Generator - for URLs and longer text, which do not fit in a one-dimensional barcode.
  • Number Generator - create a list of random numbers to paste into the bulk generator for test labels.