Barcode Generator

Create Custom Barcodes for Free

Barcode Generators by Type

About This Barcode Generator

Barcodes encode data as a pattern of parallel lines that optical scanners read in milliseconds. Since their commercial introduction in 1974, they have become essential to retail, logistics, healthcare, and manufacturing.

This tool generates barcodes entirely in your browser. No data leaves your device — the encoding runs client-side using the JsBarcode library. You choose the format, enter your data, customize the appearance, and download the result as SVG or PNG.

Supported Barcode Formats

The generator supports 17 format variants across 9 barcode families. Each format serves a specific industry need:

FormatCharacter SetDescription
CODE128 (A/B/C)All 128 ASCII charactersThe most versatile format. Used in shipping labels, logistics, and any application that requires alphanumeric encoding. The GS1-128 variant follows GS1 Application Identifier standards for supply chain data.
EAN-13Numeric (13 digits)The international standard for retail product identification, administered by GS1. Each EAN-13 barcode includes a country prefix, manufacturer code, product code, and check digit.
EAN-8Numeric (8 digits)Compact version of EAN-13 for small packages where a full-size barcode would not fit.
UPC-ANumeric (12 digits)The standard retail barcode in the United States and Canada. Every product sold in North American stores carries a UPC-A code.
CODE39A-Z, 0-9, and symbolsSelf-checking alphanumeric format used in military (MIL-STD-1189), automotive, and government applications. Does not require a check digit.
ITF / ITF-14Numeric only (pairs)Interleaved Two of Five encodes digits in pairs. ITF-14 wraps 14 digits for outer carton identification in warehouses and shipping.
MSI (Plessey)Numeric onlyModified Plessey with configurable checksums (Mod 10, Mod 11, Mod 1010, Mod 1110). Common in warehouse shelf labeling.
Codabar0-9, $, +, -, ., /, :Used in blood banks (ISBT 128), libraries, and FedEx airbills. Includes start/stop characters (A, B, C, D).
PharmacodeNumeric (3-131070)Binary barcode used exclusively in pharmaceutical packaging. Encodes a single integer for medication identification during production.

Choosing the Right Format

The right format depends on your industry and data requirements:

How to Use

  1. Select a format from the dropdown. The default is Code 128, which accepts any text input.
  2. Enter your data. The tool validates your input against the format’s rules and displays a message if the data is invalid (for example, EAN-13 requires exactly 12 or 13 digits).
  3. Customize the appearance. Adjust bar width (1–4), height (50–200px), colors, font family, font size, and text margin. The preview updates in real time.
  4. Download your barcode as SVG (vector, ideal for print) or PNG (raster, ideal for screens and documents).

Printing and Scanning Tips

Key Features

Frequently Asked Questions

What is the difference between EAN-13 and UPC-A?

EAN-13 uses 13 digits and is the international retail standard. UPC-A uses 12 digits and is the North American standard. Every UPC-A code can be expressed as an EAN-13 by adding a leading zero. Most modern scanners read both formats interchangeably.

Can I use these barcodes on commercial products?

The tool generates valid barcodes, but selling products with EAN or UPC codes in retail stores requires a GS1 company prefix. You can obtain one from your national GS1 organization. For internal use (inventory, asset tracking), no registration is needed.

What resolution should I use for printed barcodes?

Download the SVG format for print. SVG is a vector format that scales to any size without pixelation. If you need a raster image, generate it at the largest practical size — scaling down preserves quality, scaling up does not.

Why does my barcode fail to scan?

The most common causes: insufficient quiet zones around the barcode, low print contrast, or printing smaller than the format’s minimum size. Verify your input data matches the format’s requirements (correct digit count, valid check digit) and test with a scanner before printing in bulk.

What is the difference between barcodes and QR codes?

Barcodes are one-dimensional — they encode data in the widths of parallel lines. QR codes are two-dimensional — they encode data in a grid of squares, holding far more information (URLs, text blocks, contact cards). Use barcodes for short numeric or alphanumeric identifiers. Use our QR Code Generator for URLs, Wi-Fi credentials, or any data that exceeds a barcode’s capacity.

Related Tools

You might also find these tools useful: