Type the value
The barcode is drawn as you type.
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.
100% private — the barcode is drawn in your browser and nothing is sent to any server.
Keep going with your result in another tool. Nothing is uploaded.
The barcode is drawn as you type.
Set the bar width and height, and show or hide the text.
Save it as PNG or SVG and test it with a scanner.
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.
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.
| Format | Encodes | Best for |
|---|---|---|
| Code 128 | Full ASCII, letters and digits | Shipping labels, inventory, tickets, serial numbers |
| Code 39 | Uppercase letters, digits and a few symbols | Older industrial and ID systems |
| EAN-13 / UPC-A | Digits only, fixed length | Retail products |
| ITF-14 | Digits only, 14 digits | Cartons and cases |
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.
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.
More utilities that also run without leaving your browser.