Code 2 of 5 Introduction
This page concerns basic information of Code 2 of 5, as well as its generating and printing components.
Code 2 of 5 Overview

This part talks about the
Code 2 of 5 barcode.Code 2 of 5, also known as Code 25, Standard 2 of 5, Industrial 2 of 5, is a low-density barcode symbology which encodes numeric digits only. Developed in 1960s, it has been used in photo finishing, warehouse sorting, and airline tickets with sequential numbering. It is
named "2 of 5" because each digit is encoded with 5 bars with 2 of them being always wide.and start/stop characters.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Generating and Printing Code 2 of 5 Barcodes
OnBarcode provides comprehensive Code 2 of 5 generators and scanner components for Java, .NET, Android, iOS developments and several reporting applications.
Code 2 of 5 Structure
The structure of Code 2 of 5 is as below:
Code 2 of 5 Barcode Size Setting
Code 2 of 5 Data Encoding
Code 2 of 5 encodes:
- Numeric digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- Start character, encoded as 11011010(1 stands for a bar, 0 a space)
- Stop character, encoded as 11010110.
Code 2 of 5 VS Interleaved 2 of 5
Interleaved 2 of 5 is a higher-density and more efficient version of Code 2 of 5, because it allows data to be encoded in both bars and spaces, while Code 2 of 5 encodes information only in the width of the bars.
Another difference is that Code 2 of 5 is more flexible to encode numeric data of variable length, while Interleaved 2 of 5 is restricted to encode an even number of numeric digits.