# Barcode Generator

Generate CODE128, CODE39, EAN-13, EAN-8, UPC, ITF-14, MSI, and Pharmacode barcodes from text.

> Canonical page: https://test.elysiatools.com/en/tools/barcode-generator

- **Category:** Generator

- **Keywords:** barcode, generator, code128, code39, ean, upc, itf, msi, text

## Overview

Barcodes are rendered as PNG with JsBarcode. EAN-13 expects 12 digits, EAN-8 expects 7, UPC expects 11, and ITF-14 expects 13; the check digit is calculated automatically. CODE128, CODE39, MSI, and Pharmacode accept text subject to each symbology's character rules.

## Inputs

- **Text to Encode** (text): Enter text to generate barcode...
- **Barcode Format** (select)

## When to use

- You need a quick linear barcode image from a serial number, SKU, or part number.
- You are preparing product packaging that requires standardized retail codes such as UPC or EAN-13.
- You need an asset tracking graphic formatted in CODE128, CODE39, or ITF-14 for immediate printing.

## How it works

- Enter your identifier string into the Text to Encode field.
- Select the required symbology from the Barcode Format dropdown, such as CODE128 (Standard), EAN-13 (Retail), or UPC (North America).
- Generate the barcode image and test-scan the rendered output with a barcode reader to confirm readability.

## Use cases

- Warehouse Asset Tagging: Type internal serial numbers into Text to Encode and select CODE128 (Standard) to export individual barcode graphics for physical shelf and equipment labels.
- Retail Product Labeling: Input a registered 12-digit UPC or 13-digit EAN and choose UPC (North America) or EAN-13 (Retail) to generate scannable artwork for product packaging.
- Shipping Carton Identification: Enter numeric container codes and select ITF-14 (Shipping) to generate outer-carton barcodes for logistics sorting.

## Frequently asked questions

### Can I customize the width, height, or colors of the barcode?

No. The tool has no width, height, or color controls; it uses standard black-and-white rendering, and the overall image width grows with the encoded data.

### Which formats allow letters and punctuation?

CODE128 supports the full ASCII range; CODE39 supports uppercase letters, digits, and a limited symbol set. EAN-13, EAN-8, UPC, and ITF-14 require digits.

### What is the default barcode format?

The tool defaults to CODE128 (Standard).

### Can this tool create QR codes for website URLs?

No. This tool only creates 1D linear barcodes. Use QR Code Generator for 2D matrix codes.

## Related tools

- [QR Code Generator](https://test.elysiatools.com/en/tools/qr-code-generator): Generate QR codes from URLs or text with customizable size and colors
- [Barcode Batch Generator](https://test.elysiatools.com/en/tools/barcode-batch-generator): Batch generate Code 128, EAN-13, UPC-A, ITF-14, QR Code, and Data Matrix outputs from CSV or multiline text
- [Slug Generator](https://test.elysiatools.com/en/tools/slug-generator): Generate clean URL slugs from any text, with built-in Chinese-to-Pinyin conversion. Collapse separators, lowercase, and optional max-length word-aware truncation.
- [AI Text Summarizer - Smart Content Analysis](https://test.elysiatools.com/en/tools/text-summarizer): Intelligently extract key points from articles and generate high-quality summaries. Support multiple styles and lengths for academic papers, news, reports, and various text types
- [Data Noise Injection](https://test.elysiatools.com/en/tools/data-noise-injection): Inject various types of noise into text data for testing purposes. Perfect for stress testing data processing systems, testing data quality algorithms, and creating realistic test datasets. Features: - Character-level noise injection - Word-level noise injection - Numeric data noise - Formatting noise - Whitespace noise - Special character noise - Configurable intensity levels - Realistic noise patterns Common Use Cases: - Test data validation systems - Stress test parsing algorithms - Evaluate error handling - Test data cleaning algorithms - Create realistic messy data - Benchmark data processing performance
- [QR Code Decoder](https://test.elysiatools.com/en/tools/qr-code-decoder): Decode QR codes from images and extract the contained text or URLs
- [Range Chart Generator](https://test.elysiatools.com/en/tools/range-chart-generator): Create range charts to visualize min-max value ranges with median markers and outlier detection
- [Chinese Character Extractor (汉字提取器)](https://test.elysiatools.com/en/tools/chinese-character-extractor): Extract all Chinese characters from text, filtering out punctuation and English letters, numbers, and non-Chinese symbols

## Samples

- [UPC/EAN Barcode Samples](https://test.elysiatools.com/en/samples/upc-ean): Collection of GTIN-12 (UPC), GTIN-13 (EAN), GTIN-8, and GTIN-14 product barcodes for validation testing
- [Copyright-Free MP3 Audio Samples](https://test.elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Web Image Processing Python Samples](https://test.elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://test.elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Barcode and QR Code Workflow](https://test.elysiatools.com/en/hubs/barcode-utility): Create, decode, validate, verify, and print barcodes or QR codes for products, links, WiFi, and labels.
