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.


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

As for Code 2 of 5 size setting, two factors should be considered: barcode width and height.


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.





OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.