UTILITY TOOL

Barcode Generator

Generate a Code 128 barcode directly in your browser.

Code 128 barcode rendered locally in your browser.

About Barcode Generator

Code 128 is a compact barcode format used on shipping labels, inventory tags, asset stickers and many internal systems. It can encode letters, digits and common punctuation in a short bar pattern, which makes it a good fit for order numbers, SKUs and serial codes that mix characters.

This generator is a live preview. Type in the box and the barcode redraws as you type, with the human-readable text shown beneath the bars. The input accepts up to 80 characters and starts with a sample value you can overwrite. Only the Code 128 format is offered, so there is no format picker and no size or color settings.

The barcode is drawn in your browser as a vector image that scales cleanly on the page. The page does not include a download button, so to use the code elsewhere you would print the page or take a screenshot. Always test the result with a real scanner before relying on it for stock or shipping.

How to use Barcode Generator

  1. Click in the input box and replace the sample text with the value you want to encode, up to 80 characters.
  2. Watch the barcode below the box update as you type. The same text appears under the bars as readable characters.
  3. If an error message appears under the barcode, remove unsupported characters or shorten the value until the barcode draws again.
  4. Print the page or take a screenshot at a generous size, keeping the white margin around the bars intact.
  5. Scan the printed result with the actual scanner you will use, and confirm it reads back exactly the text you typed.

When this tool helps

Tag stock and bins

Create a code for a shelf or bin number such as a short alphanumeric location, print it on a label, and scan it with a handheld reader to look up the position in your own spreadsheet or system.

Label equipment you own

Assign each laptop, tool or camera a short asset code and render it as a barcode. Stick the printed label on the item so audits take a quick scan rather than reading serial numbers.

Test a scanner or workflow

Developers and warehouse staff often need a quick sample code to check that a scanner is configured correctly, that it captures the full string, and that the receiving field handles it as expected.

Mock up a design

When building a label, ticket or packing slip layout, a real barcode with representative content shows how much space the bars need, which is more useful than a placeholder rectangle.

Tips for better results

  • Keep values short when you can. Fewer characters mean wider bars at the same label width, and wider bars are more tolerant of low-quality printers and worn labels.
  • Leave the blank margin on both sides of the bars alone. Scanners rely on that quiet zone to find where the code starts and ends, and a tight crop often causes failed reads.
  • Print in black on a white or light background with high contrast. Colored bars, glossy surfaces and heavy scaling after the fact are common reasons labels fail to scan.
  • Avoid leading or trailing spaces in the value, because they are encoded as real characters and may show up in the scanner output or break matches in your database.
  • Use Code 128 only where your reader supports it. Most modern handheld scanners do, but some retail systems expect other formats.

Good to know

  • Only Code 128 is supported. There is no EAN, UPC, Code 39 or 2D code output, so retail product barcodes need a different tool.
  • The input is capped at 80 characters, and characters that Code 128 cannot represent trigger an error message instead of a barcode.
  • There is no download or copy button, and no size, color or text options, so you rely on printing or a screenshot to reuse the image.

Privacy and your data

The barcode is created locally in your browser with a JavaScript library, and the text you enter is not sent to an ELDOSA server.

Barcode Generator FAQ

What is Code 128 used for?

Code 128 is a general-purpose, high-density barcode format. You will see it on shipping labels, warehouse bins, asset tags and in many internal tracking systems. It handles a wide range of characters in a compact width, which suits alphanumeric identifiers better than purely numeric formats.

How many characters can I encode?

This tool accepts up to 80 characters in the input box. Longer values make the barcode wider, so if it is going on a small label, a shorter identifier is almost always easier to print and scan reliably.

Can I make EAN-13 or UPC barcodes here?

No. This page only produces Code 128. Retail product barcodes such as EAN-13 and UPC follow different rules and are normally assigned through a licensing body, so a generic generator is not the right way to create them.

How do I save the barcode as an image?

The page shows the barcode but does not provide a download button. You can print the page to PDF from your browser, or take a screenshot and crop it. Keep the margins and use a large enough size so bars stay sharp.

Why do I see an error instead of a barcode?

The text probably contains a character that Code 128 cannot encode, such as certain accented or non-Latin letters. Remove those characters or replace them with plain letters and numbers, and the barcode should draw again.

Why will my scanner not read the printed barcode?

Common causes are low contrast, a printout that is too small, missing white margins, smudged ink, or a scanner that has Code 128 turned off. Print larger, use black on white, and check the scanner settings.

Browse all ELDOSA tools →