Industrial 2of5 (S2of5)

The Industrial 2of5 barcode is used for encoding numbers. It is called 2of5 because the barcode is always encoded with 2 wide bars and 3 narrow bars (total of 5 bars). Each of the bars is separated by a narrow space.

ConnectCode S2of5 Barcode Font

ConnectCode Industrial 2of5 barcode supports up to seven different heights. These barcodes with seven different heights are provided in seven fonts with different names. The barcode names are appended with characters like "S1" or "S2" etc... with each one of them representing a different height. The list below illustrates the seven different fonts that is supplied for Industrial 2of5.

  • CCodeIND2of5_S1
  • CCodeIND2of5_S2
  • CCodeIND2of5_S3
  • CCodeIND2of5_S4
  • CCodeIND2of5_S5
  • CCodeIND2of5_S6
  • CCodeIND2of5_S7
Note - If you are running the trial version, the font name will have the word "_Trial" appended to it.

Character Mappings

All characters supported by the barcode is as shown below. All of them have a simple a direct mapping.

Data Character Barcode Font Character
Start Character'{'
Stop Character'}'
0'0'
1'1'
2'2'
3'3'
4'4'
5'5'
6'6'
7'7'
8'8'
9'9'

Industrial 2of5 Check Digit

For example, the check digit of the data string "12345" is calculated as follows.

Data 1 2 3 4 5
Starting from the last digit, multiply by 3 followed by 1.
*3 *1 *3 *1 *3
Sum : (1*3) + (2*1) + (3*3) + (4*1) + (5*3) = 33
If Sum Modulo 10 equals 0, the result is 0. Otherwise the result is 10 - (Sum Modulo 10)
Modulo 10 : 10 - (33 % 10) = 7
Data to be encoded 123457
Mapping "123457"


The characters "{123457}" can then be keyed in to the text editor with the appropriate font selected to generate a Industrial 2of5 barcode with check digit.

Using Connectcode's Industrial 2of5 Font

For example, to encode the data "123456", you can key in the following in your text editor and choose the ConnectCode_2of5 barcode font.

Input (Into the Encoder or Visual Basic formulas): 123456

Manual Input: {123456}

Output:



For example, to encode the data "56789", you can key in the following in your text editor and choose the ConnectCode_2of5 barcode font.

Input (Into the Encoder or Visual Basic formulas): 56789

Manual Input: {56789}

Output:



If you are using the Encoder, it will automatically put in the Start/Stop characters for you and allow you to choose the optional check character.