Introduction to Barcode: 1D and 2D Barcode Symbologies

March 28, 2022
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 metalcraft@idplate.com.

Subheader
Just what is a barcode and what are the different kinds we use? We answer that and much more in our introduction to barcode blog.
Innovation and insight delivered to your inbox

Subscribe to our Newsletter ►

Recent Posts

Posts By Topic

Recent Posts

  • May 17, 2022

    Ultimate Guide to Asset Tracking

    Everything you need to know about asset tracking
  • May 12, 2022

    UID Labels and Labeling Simplified

    Unique Identification, or UID, is a required asset identification program set up by the US Defense Department (DoD). Metalcraft has helped customers with their UID compliance for nearly two decades.
  • May 9, 2022

    Your Guide To RFID Tags

    What are RFID tags and what are they used for? We answer that and a whole lot more in the guide to RFID tags