Barcode Generator

Generate Code 128, EAN-13, and UPC-A barcode images from text or numbers. Live SVG preview with download.

Supports ASCII characters (letters, numbers, symbols)

Barcode Generator

A barcode generator converts text or numeric data into standardized barcode images that can be scanned by barcode readers. Barcodes are essential in retail, logistics, inventory management, and product identification β€” encoding information in a pattern of parallel lines of varying widths.

This tool supports three widely-used barcode formats: Code 128 for general-purpose alphanumeric encoding, EAN-13 for international product identification, and UPC-A for North American retail products. Generate barcodes instantly, preview them live, and download as SVG or PNG for print or digital use.

How it works

Code 128 encodes each ASCII character (32–126) as a pattern of bars and spaces, with a modulo-103 checksum. EAN-13 uses a 12-digit payload plus a check digit calculated by alternating Γ—1 and Γ—3 weights. UPC-A encodes 11 data digits plus a check digit using alternating Γ—3 and Γ—1 weights. All formats include start/stop patterns and guard bars for scanner synchronization.

Use cases

  • Generating product barcodes for retail packaging and inventory labels
  • Creating Code 128 barcodes for shipping labels and logistics tracking
  • Producing EAN-13 or UPC-A codes for product registration and cataloging
  • Designing barcode labels for asset tracking and warehouse management

Related Calculators