Character Arrangement and Structure for Code 128
IBM AFP Format

Printer-friendly version

Value
Code
A
Code
B

Code
C

EBCDIC Hex Position

Value
Code
A
Code
B
Code
C
EBCDIC Hex Position
0
Sp
Sp

00

A0

54

V
V

54

54

1
!
!

01

A1

55

W
W

55

55

2
"
"

02

A2

56

X
X

56

56

3
#
#

03

A3

57

Y
Y

57

57

4
$
$

04

A4

58

Z
Z

58

58

5
%
%

05

A5

59

[
[

59

59

6
&
&

06

A6

60

\
\

60

60

7
'
'

07

A7

61

]
]

61

61

8
(
(

08

A8

62

^
^

62

62

9
)
)

09

A9

63

_
_

63

63

10
*
*

10

10

64

NUL
`

64

64

11

+
+

11

11

65

SOH
a

65

65

12
,
,

12

12

66

STX
b

66

66

13
-
-

13

13

67

ETX
c

67

67

14
.
.

14

14

68

EOT
d

68

68

15
/
/

15

15

69

EOQ
e

69

69

16
0
0

16

16

70

ACK
f

70

70

17
1
1

17

17

71

BEL
g

71

71

18
2
2

18

18

72

BS
h

72

72

19
3
3

19

19

73

HT
i

73

73

20
4
4

20

20

74

LF
j

74

74

21
5
5

21

21

75

VT
k

75

75

22
6
6

22

22

76

FF
l

76

76

23
7
7

23

23

77

CR
m

77

77

24
8
8

24

24

78

SO
n

78

78

25
9
9

25

25

79

SI
o

79

79

26
:
:

26

26

80

DLE
p

80

80

27
;
;

27

27

81

DC1
q

81

81

28
<
<

28

28

82

DC2
r

82

82

29
=
=

29

29

83

DC3
s

83

83

30
>
>

30

30

84

DC4
t

84

84

31
?
?

31

31

85

NAK
u

85

85

32
@
@

32

32

86

SYN
v

86

86

33
A
A

33

33

87

ETB
w

87

87

34
B
B

34

34

88

CAN
x

88

88

35
C
C

35

35

89

EM
y

89

89

36
D
D

36

36

90

SUB
z

90

90

37
E
E

37

37

91

ESC
{

91

91

38
F
F

38

38

92

FS
|

92

92

39
G
G

39

39

93

GS
}

93

93

40
H
H

40

3F*

94

RS
~

94

94

41
I
I

41

41

95

US
DEL

95

95

42
J
J

42

42

96

FNC 3
FNC 3

96

96

43
K
K

43

43

97

FNC 2
FNC 2

97

97

44
L
L

44

44

98

SHIFT
SHIFT

98

98

45
M
M

45

45

99

Code C
Code C

99

99

46
N
N

46

46

100

Code B
FNC 4

Code B

B0
47
O
O

47

47

101

FNC 4
Code A

Code A

B1
48
P
P

48

48
102
FNC 1 FNC 1
FNC 1
B2
49
Q
Q

49

49
103
Start (Code A)
B3
50
R
R

50

50
104
Start (Code B)
B4
51
S S
51
51
105
Start (Code C)
B5
52
T T
52
52

Stop
B6
53
U U
53
53

*Note: the character pair '40' which you would expect to find in 'Hex 40' has been moved to 'Hex 3F. This is because in an AFP font 'Hex 40' is the position of the blank space, and the character in this position will always print as a blank.