Introduction to Barcode: 1D and 2D Barcode Symbologies

barcode symbologies

A barcode is an optical, machine-readable representation of data that typically identifies the object and/or asset that it’s on.

How Does a Barcode Work?

Barcodes work through a combination of a symbology and a scanner that can read the symbols and convert them into useful information. A scanner must be able to read or understand what type of barcode it’s reading and be able to decode the appropriate symbology. Not all readers can read 2D barcodes and they also may be limited to certain symbologies.

What are the Different Barcode Types?

There are different types of barcodes – 1D (one-dimensional) and 2D (two-dimensional). This determines where information is stored within the barcode. Fore example, a linear barcode holds information horizontally but not vertically. A 2D type barcode has a data both horizontally and vertically allowing more information to be stored within a specific size.

What is a Barcode Symbology?

There are many different barcode symbologies. A symbology is the mapping between actual data or messages and barcodes. Symbologies identify what makes up a single digit/character, where to start and stop, quiet zone size and checksum within the barcode. Symbologies are a set of standards and are unique in how the barcode is structured and outlined how readers decode the barcode.

Think of symbologies as different languages such as French, German or English. They are just different ways to communicate something. Common barcode symbologies include:

  • Code 39 (1D)
  • Code 128 (1D)
  • UPC (1D)
  • Data Matrix ECC200 (2D)
  • QR Code (2D)
  • Aztec (2D)

What are the Components of a Barcode System?

  • The identification product – typically a tag or a label – is an extremely important component to bring the project together
  • Reader
  • Mobile device – the focus of today’s technology is on minimizing devices like using a smartphone for reading barcodes.
  • Software to communicate to the host computer on ERP (Enterprise Resource Program) System

How Does a 1D Linear Symbology Work?

Code 39 is a very common barcode symbology. It was the first alphanumeric symbology developed and is still the most popular 1D or linear symbology. The basic elements include:

  • 43 characters – alphanumeric and seven major symbols
  • Narrow and wide elements – three wide and six narrow bars or white space
  • 2 modular code (wide/narrow)
  • Density – 3.0 – 9.4 CPI or characters per inch

Every character has five bars and four spaces, making a total of nine elements. Every Code 39 barcode begins and ends with an asterisk (*) which is the symbology’s start/stop character. Code 39 is self-checking and is normally not used with a check character; however, there is an option to have one.

Code 128 is another common 1D barcode symbology. The basic elements include:

  • Alphanumeric including all 128 ASCII characters
  • 4 modular code
  • Built-in check character

Code 128 has a higher density than Code 39 given the same “X” module meaning it uses less space to encode the same number of characters. The built-in check character with Code 128 helps with data integrity.

In comparison to the barcode types listed above, two-dimensional or 2D barcodes, contain a lot of data in a small space. 2D Data Matrix is a common type of 2D barcode. Features and benefits of 2D Data Matrix include:

  • Full set of ASCII characters
  • Built-in redundancy allowing code to still read if portion of code is destroyed
  • Contains much more data than 1D barcodes

2D Data Matrix is the standard barcode for the Department of Defense UID (Unique Item Identification) mandate because of the amount of data that can be coded as well as the redundancy built into the barcode.

Another prevalent 2D barcode symbology is the QR, (or Quick Response) Code. The QR code was originally developed by Toyota subsidiary Denso Wave for car parts management but has since grown in popularity because of its use in marketing. Features and benefits of QR Codes include:

  • Ability to be read using a smart phone so no additional device is required
  • Built-in redundancy allowing code to still read if portion of code is destroyed
  • Contains much more data than 1D barcodes
  • Can be used for a static URL or sequential number

Which Type of Barcode Should You Use for Your Application?

Excellent question. Answer – it depends. Ask yourself the following questions. Does your software require a specific type of barcode or barcode symbology? Does your hardware read both 1D and 2D barcodes? How much information do you need to program into the barcode? Will it fit into a 1D barcode, or will it require a 2D barcode?

For more information or to discuss your specific barcode project contact Metalcraft at [email protected].

Marianne Alvarado   

About the Author: Marianne Alvarado

Marianne Alvarado is our Vice President of Sales. Alvarado joined Metalcraft in March of 2000 as a Territory Specialist, became Sales Manager in January 2022 and was named Vice President of Sales during August of 2023. She leads both the Outside and Inside Sales teams. Marianne lives in Davenport with her husband, Dave Beeman. 

Mobile Phone: 641-529-9492

Email: [email protected]

Office: 3360 9th St. SW, Mason City, IA 50401

Office Phone: 641-423-9460

Innovation and insight delivered to your inbox

Subscribe to our Newsletter ►

Recent Posts

Posts By Topic

Recent Posts

  • Beyond RFID Tags: Top Questions About RFID Technology

  • What is an RFID Tag and what are they used for?

  • RFID Dry Inlays vs. Wet Inlays: Choosing the Right Tag for Your Application