I2of5

I2of5 (Interleaved 2 of 5) is a widely used, high density barcode supporting numeric characters. The data to be encoded must contain even number of digits as each two digit numbers is uniquely represented by a set of bars and spaces in the barcode. The character '0' may be added to the beginning if the data does not contain an even number of digits.

ConenctCode I2of5 Barcode Font

ConnectCode I2of5 supports seven different heights. These are provided in seven fonts with different names. The barcodes 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 I2of5.

  • CCodeI2of5_S1
  • CCodeI2of5_S2
  • CCodeI2of5_S3
  • CCodeI2of5_S4
  • CCodeI2of5_S5
  • CCodeI2of5_S6
  • CCodeI2of5_S7
Additionally, ConnectCode also provides a font for I2of5 that includes human text. It is shown below.

  • CCodeI2of5_HS3

I2of5 Character Mappings (Interleaved 2 of 5)

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'}'
00' '
01'!'
02'"'
03'#'
04'$'
05'%'
06'&'
07'''
08'('
09')'
10'*'
11'+'
12','
13'-'
14'.'
15'/'
16'0'
17'1'
18'2'
19'3'
20'4'
21'5'
22'6'
23'7'
24'8'
25'9'
26':'
27';'
28'<'
29'='
30'>'
31'?'
32'@'
33'A'
34'B'
35'C'
36'D'
37'E'
38'F'
39'G'
40'H'
41'I'
42'J'
43'K'
44'L'
45'M'
46'N'
47'O'
48'P'
Data Character Barcode Font Character
49'Q'
50'R'
51'S'
52'T'
53'U'
54'V'
55'W'
56'X'
57'Y'
58'Z'
59'['
60'\'
61']'
62'^'
63'_'
64'`'
65'a'
66'b'
67'c'
68'd'
69'e'
70'f'
71'g'
72'h'
73'i'
74'j'
75'k'
76'l'
77'm'
78'n'
79'o'
80'p'
81'q'
82'r'
83's'
84't'
85'u'
86'v'
87'w'
88'x'
89'y'
90'z'
91191 (ASCII Decimal)
92192 (ASCII Decimal)
93193 (ASCII Decimal)
94194 (ASCII Decimal)
95195 (ASCII Decimal)
96196 (ASCII Decimal)
97197 (ASCII Decimal)
98198 (ASCII Decimal)
99199 (ASCII Decimal)


I2of5 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 12 = ',' , 34 = 'B' , 57 = 'Y'


The characters "{,BY}" can then be keyed in to the text editor with the appropriate font selected to generate a I2of5 barcode with check digit.


Using ConnectCode's I2of5 Font


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

Input: {,BX}

Output:



For example, to encode the data "56789", you can key in the following in your text editor and choose the I2of5 barcode font. As I2of5 barcode only allow even number of numeric digits, the above data should be treated as "056789".

Input: {%cy}

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. On top of that, automatic padding of '0' to make the data contain even number of digits will be carried out.