# Barcode generator

> Generate a barcode with your chosen symbology.

[Open tool](https://www.toolcabana.com/li/barcode-generator) · [Generators and marketing](https://www.toolcabana.com/li/category/generators-and-marketing)

Tool ID: barcode-generator. Requested language: li. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

The barcode generator turns a value of up to 150 characters into a CODE128, EAN-13, EAN-8, UPC, CODE39 or ITF-14 barcode, rendered with JsBarcode and downloadable as an SVG file. You can set the bar height from 20 to 500 pixels and choose whether the human-readable value is printed below the bars.

## Supported tasks (en)

Generate a barcode with your chosen symbology.

## Steps (en)

1. Paste the source into the input editor, or load the built-in example.
2. Set barcode format, height (px), display value below barcode.
3. Run barcode generator, review the output, then use the available copy or download controls.

## Settings

- Barcode format (en; key: format; type: select): CODE128 [en], EAN13 [en], EAN8 [en], UPC [en], CODE39 [en], ITF14 [en]
- Height (px) (en; key: height; type: number); minimum: 20; maximum: 500
- Display value below barcode (en; key: label; type: checkbox)

## Limitations (en)

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Example input

```text
123456789012
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### Why do I get an invalid check digit error for EAN-13 or UPC?

Retail formats such as EAN-13, EAN-8, UPC and ITF-14 have fixed lengths and a check digit. When the value has the wrong length or its check digit does not match, the tool reports that the value or check digit is invalid for that format.

### Which barcode format should I use for letters and numbers?

CODE128 is the default and encodes letters, digits and symbols, and CODE39 also accepts letters. EAN-13, EAN-8, UPC and ITF-14 are numeric formats used for retail products and shipping cartons.

### Can I download the barcode as a vector file?

Yes. The barcode is built as an SVG with a 20-pixel margin and saved as barcode.svg, which scales cleanly for print layouts. Turn off Display value below barcode if you want the bars without the text line.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Related tools

- [Password generator](https://www.toolcabana.com/li/password-generator)
- [QR code generator](https://www.toolcabana.com/li/qr-generator)
- [Email mailto generator](https://www.toolcabana.com/li/mailto-generator)
- [Robots.txt generator](https://www.toolcabana.com/li/robots-generator)
