Skip to content
Free tool - no sign-up

Code 128 barcode generator: type a value, download the barcode.

Type or paste a SKU, a part number or another number you already use, and download each one as a Code 128 barcode in SVG or PNG, up to 50 at a time. It runs in your browser: nothing is uploaded.

1. Your values
A SKU, a part number or another number you already use. Each line becomes one Code 128 barcode, up to 50 at a time and 80 characters each. Paste one column from a spreadsheet.
Loading the barcode script...
The narrowest bar, in screen pixels. Wider bars scan from further away.

Nothing is uploaded. The barcodes are drawn in this browser tab, and it keeps nothing when you close it.

Your barcodes

SVG for print, PNG for documents. An SVG stays sharp at any size. The PNG is drawn at three times the size shown here, so it stays sharp when printed at the size shown.

What a Code 128 barcode holds

Code 128 holds letters, digits, spaces and the common symbols on a US keyboard, so it can carry the values you already use: SKUs, part numbers, asset tags, order numbers. Each barcode here holds exactly the value on its line. The tool does not make up numbers.

A line with any other character is not drawn. Accented letters, curly quotes and the long dashes a word processor puts in are the usual ones, and each is listed with the character to change, so no barcode is saved that scans as something other than what you typed.

Short values make wider bars at the same printed size, and wider bars scan more easily. No SKUs yet? The SKU generator turns item names into SKUs.

Code 128, UPC, EAN, GS1-128 or QR

  • Code 128: for your own values, such as SKUs and part numbers. Laser barcode scanners read it, and so do camera and 2D imager scanners. This is the one this tool makes.
  • UPC and EAN: the barcodes on products sold in shops. Their numbers are issued by GS1 to the company that makes the product. This tool does not make them or issue those numbers. If an item already has one printed on it, use that one.
  • GS1-128: Code 128 with GS1 rules and data fields, used on shipping labels for retailers that ask for it. This tool does not make it.
  • QR code: a square code that most phone cameras read. To print QR codes or Code 128 barcodes on Avery label sheets with the item name, use the item label maker.

How to print a barcode that scans

  1. Keep the white margin. Each file has a band of white at each end, ten times the narrowest bar wide. Scanners need it to find where the barcode starts and stops, so do not crop it or place the barcode against other print.
  2. Print at 100%. Stretching a barcode to fit a space changes the width of its bars. Resize it evenly, or not at all.
  3. Use the SVG when you can. It stays sharp at any size. The PNG is saved at three times the size shown, so keep it at that size or smaller.
  4. Choose wider bars if it will not scan. A low-resolution label printer or a scanner held further away needs a wider bar width.
  5. Scan a test print with the scanner or phone you will use, before printing the rest.

If you would rather keep the barcodes with your items

  • Generate Barcodes: on the web Items page, Generate Barcodes lists the items that have no barcode and gives each one a barcode made from its SKU: Code 128 by default, with the SKU in capitals.
  • Print labels: on the web, select items on the Items page and choose Print labels. It prints a label for each selected item that has a barcode, in a 4 x 6 in or a 2 x 1 in size.
  • Scanning: scan an item with the iPhone or Android app to open it. Scanning is on every plan.

Flat monthly plans from $19/mo, with no per-user fees. Every plan starts with a 7-day free trial, and you won't be charged for 7 days. On the web you pick a plan and enter a card.

Frequently asked questions

Is the Code 128 barcode generator free?

Yes. There is no sign-up and no email is asked for. The barcodes are drawn in your browser, and the values you type are not sent to InventoryQuick or stored.

What can a Code 128 barcode hold?

Letters, digits, spaces and the common symbols on a US keyboard, up to 80 characters each here. A line with an accented letter, a curly quote or a long dash is not drawn: it is listed with the character to change, so no barcode is saved that scans as something other than what you typed.

Does it give me a UPC or EAN number?

No. UPC and EAN numbers are issued by GS1 to the company that makes a product. This tool draws a Code 128 barcode from a value you already have, such as a SKU or a part number. It does not make up numbers, and it does not make UPC, EAN or GS1-128 barcodes.

Should I download the SVG or the PNG?

The SVG for printing and for label software that takes vector files: it stays sharp at any size. The PNG for documents, spreadsheets and anything that takes only images. The PNG is saved at three times the size shown, so it stays sharp when printed at that size or smaller.

Why does my barcode not scan?

Usually because the white margin at each end was cropped, the barcode was stretched or scaled when it printed, or the bars are too fine for the printer. Keep the margin, print at 100%, and choose a wider bar width. Scan a test print before printing the batch.

Can I make many barcodes at once?

Yes. Paste up to 50 values, one per line, straight from one column of a spreadsheet. Each line gets its own barcode and its own SVG and PNG download. To print the codes on Avery label sheets with the item name, paste the list into the item label maker instead.

More free tools: item label maker, SKU generator, inventory count sheet, reorder point calculator.