Basics

What is a Barcode?

Complete Guide to Types and Principles

Definition of Barcode

A barcode is a visual representation of data that can be read by machines. It consists of black and white bars and spaces, which is why it's called a "barcode." The barcode was first invented by Norman Joseph Woodland in 1948, and in 1974, a pack of gum became the first product sold using barcode scanning at a supermarket in Ohio. Today, barcodes are essential in virtually every industry, including retail, logistics, healthcare, and manufacturing.

How Barcodes Work

Barcodes work using the principle of light reflection. When light emitted from a barcode scanner hits the barcode surface: • **Black bars**: Absorb light, resulting in less reflection • **White spaces**: Reflect light back to the scanner The scanner detects these differences in reflection patterns, converts them to electrical signals, and interprets them as digital data. The width of bars and spaces represents different numbers or characters.

Structure of a Barcode

A typical 1D barcode consists of the following structure: 1. **Quiet Zone**: Empty space at the beginning and end of the barcode, necessary for the scanner to recognize where the barcode starts and ends. 2. **Start Character**: A special pattern that signals the beginning of the barcode. 3. **Data Area**: The combination of bars and spaces where actual information is encoded. 4. **Check Digit**: A number used to verify scanning errors. 5. **Stop Character**: A special pattern that signals the end of the barcode.

Major Barcode Format Comparison

CODE128

Most versatile barcode
  • Supports uppercase, lowercase, numbers, and special characters
  • Variable length (no limit)
  • High density for storing more information
  • Widely used in logistics, shipping, and inventory
Use cases: Shipping labels, inventory tags, membership cards

EAN-13

International product identification standard
  • Uses exactly 13 digits only
  • Standardized worldwide
  • Last digit is checksum
  • Structure: Country code + Manufacturer code + Product code
Use cases: Retail products, publications (ISBN)

CODE39

Industrial standard barcode
  • Supports uppercase letters, numbers, some special characters
  • Optional self-checking checksum
  • Start/stop character is * symbol
  • Used in government, medical, and military sectors
Use cases: Medical device labels, government documents, parts management

Barcode Format Selection Guide

If you're wondering which barcode to choose: **Choose CODE128 if:** - You need to use letters, numbers, and special characters - Using for internal inventory or logistics systems - Data length is variable **Choose EAN-13 if:** - Attaching to products for retail sale - Need to follow GS1 standards - Require internationally recognized codes **Choose CODE39 if:** - Following government or medical institution requirements - Need compatibility with legacy systems - Need simple, easy-to-read barcodes

Create Your Own Barcode

Generate CODE128, EAN-13, and CODE39 barcodes for free at BaQord and download as PDF.

Generate Barcode