Code 128 is one of the most widely used barcode formats in logistics, retail, and inventory management. This barcode generator encodes your text into a Code 128B barcode rendered as crisp SVG graphics that scale to any size without losing quality.

Customize bar width, height, and whether to display the text below the barcode. Everything runs in your browser with no libraries or server calls required.

Generator

Results

How to Use

  1. Enter the text to encode as a barcode
  2. Adjust bar width and height as needed
  3. Click Calculate to generate the barcode
  4. Right-click the SVG to save or copy it

FAQ

Which barcode format is used?

This tool generates Code 128B barcodes, which support all standard ASCII characters (32-126).

Can I use this for product labels?

Yes. The SVG output is vector-based and will print at any resolution. However, retail products typically use UPC or EAN formats rather than Code 128.

What is the maximum length?

Code 128 can encode up to about 80 characters, though shorter content produces more compact barcodes.

Commonly Used With

Pair this tool with others in Developer