Code 128 barcode generator

Type any text, letters, numbers or symbols and get a compact Code 128 barcode. Download it as PNG or SVG for shipping labels, inventory and tickets.

  • Free
  • No sign-up
  • Runs in your browser
barcode-code128

100% private — the barcode is drawn in your browser and nothing is sent to any server.

Next step

Keep going with your result in another tool. Nothing is uploaded.

How it works

Type the value

The barcode is drawn as you type.

Adjust the size

Set the bar width and height, and show or hide the text.

Download it

Save it as PNG or SVG and test it with a scanner.

How to generate a Code 128 barcode

To generate a Code 128 barcode, type your text or number in the value box above. The barcode appears at once, and you can change the bar width and height and choose whether to show the text below. Download it as PNG or SVG. The check character is calculated automatically, and the whole process runs in your browser with nothing uploaded.

What is Code 128?

Code 128 is a high-density barcode that can encode the full ASCII set: uppercase and lowercase letters, digits and symbols. It switches between three code sets internally and packs pairs of digits into a single symbol, so a numeric string takes half the width of the same text in Code 39. It always includes a check character, calculated modulo 103, which your scanner verifies.

Code 128 or another format?

Choosing a barcode format
FormatEncodesBest for
Code 128Full ASCII, letters and digitsShipping labels, inventory, tickets, serial numbers
Code 39Uppercase letters, digits and a few symbolsOlder industrial and ID systems
EAN-13 / UPC-ADigits only, fixed lengthRetail products
ITF-14Digits only, 14 digitsCartons and cases

Where it is used

  • Shipping and logistics labels; GS1-128 is a Code 128 profile.
  • Warehouse locations, asset tags and serial numbers.
  • Tickets and vouchers with an alphanumeric reference.
  • Lab samples and library items with mixed letters and numbers.

Generating a barcode is not the same as owning the number

This tool draws a correctly formatted barcode from any number you give it. That is enough for internal use, such as inventory, shelves or test labels. To sell a product in shops and on marketplaces, however, the number must be a GTIN issued by GS1 through a licensed company prefix; otherwise it may collide with another company's product. Buy your numbers from GS1 in your country, then use this tool to draw the codes.

Private by design

The code is drawn by your browser on your own device. What you type, including passwords and contact details, is never sent to a server, and the finished image is yours with no watermark and no expiry.

Frequently asked questions

What characters does Code 128 support?
All 128 ASCII characters, so uppercase and lowercase letters, digits, punctuation and control characters.
Is Code 128 better than Code 39?
For most new uses, yes. It is denser, supports lowercase letters and has a built-in check character. Code 39 remains common in older systems.
Does the text below the barcode matter?
It is only for people. Scanners read the bars, so you can hide the text with the show-text option if space is tight.
Is this converter free?
Yes. There is no sign-up and no limit, and it runs in your browser, so nothing you type is sent to a server.
Does it work on a phone?
Yes. It works in any modern mobile browser, and the result updates as you type.