EBCDIC Character Codes

EBCDIC, Extended Binary Coded Decimal Information Code, is only rarely encountered; it is only used on IBM mainframes. A lucky person never comes across it.

EBCDIC is an Eight-bit code, but only 95 of the 256 possible character codes are used. Note that EBCDIC codes do not fall into logical blocks like ASCII codes. Under ASCII, the test (c>='a' && c<='z') is a complete test for lower case letters; the same kind of test exists for capital letters and digits. Nothing of this sort is possible with EBCDIC. Also, EBCDIC did not have square brackets []; on some equipment [ was hexadecimal code AD and ] was BD, this was not "regular issue" EBCDIC.


Hexadecimal EBCDIC Table

__0 __1 __2 __3 __4 __5 __6 __7 __8 __9 __A __B __C __D __E __F
0__
1__
2__
3__
4__
 
¢
.
<
(
+
|
5__
&
!
$
*
)
;
¬
6__
-
/
¦
,
%
_
>
?
7__
`
:
#
@
'
=
"
8__
a
b
c
d
e
f
g
h
i
9__
j
k
l
m
n
o
p
q
r
A__
~
s
t
u
v
w
x
y
z
B__
C__
{
A
B
C
D
E
F
G
H
I
D__
}
J
K
L
M
N
O
P
Q
R
E__
\
S
T
U
V
W
X
Y
Z
F__
0
1
2
3
4
5
6
7
8
9



Decimal EBCDIC Table

__0 __1 __2 __3 __4 __5 __6 __7 __8 __9
_
1__
2__
3__
4__
5__
6__
 
7__
¢
.
<
(
+
|
8__
&
9__
!
$
*
)
;
¬
-
/
10__
¦
,
%
_
11__
>
?
12__
`
:
#
@
'
=
"
a
13__
b
c
d
e
f
g
h
i
14__
j
k
l
m
n
15__
o
p
q
r
16__
~
s
t
u
v
w
x
y
z
17__
18__
19__
{
A
B
C
D
E
F
G
20__
H
I
}
J
21__
K
L
M
N
O
P
Q
R
22__
\
S
T
U
V
23__
W
X
Y
Z
24__
0
1
2
3
4
5
6
7
8
9
25__





Invisible (or Non-Printing) EBCDIC Characters

Dec
Hex
Oct
name
meaning
0
00
000
NUL
Null character
1
01
001
SOH
Start of Heading
2
02
002
STX
Start of Text
3
03
003
ETX
End of Text
4
04
004
PF
Punch Off
5
05
005
HT
Horizontal Tab
6
06
006
LC
Lower Case
7
07
007
DEL
Delete
10
0A
012
SMM
Start of Manual Message
11
0B
013
VT
Vertical Tab
12
0C
014
FF
Form Feed
13
0D
015
CR
Carriage Return
14
0E
016
SO
Shift Out
15
0F
017
SI
Shift In
16
10
020
DLE
Data Link Escape
17
11
021
DC1
Device Control 1
18
12
022
DC2
Device Control 2
19
13
023
TM
Tape Mark
20
14
024
RES
Restore
21
15
025
NL
New Line
22
16
026
BS
Back Space
23
17
027
IL
Idle
24
18
030
CAN
Cancel
25
19
031
EM
End of Medium
26
1A
032
CC
Cursor Control
27
1B
033
CU1
Customer User Control 1
28
1C
034
IFS
Interchange File Separator
29
1D
035
IGS
Interchange Group Separator
30
1E
036
IRS
Interchange Record Separator
31
1F
037
IUS
Interchange Unit Separator
32
20
040
DS
Digit Select
33
21
041
SOS
Start of Significance
34
22
042
FS
Field Separator
36
24
044
BYP
Bypass
37
25
045
LF
Line Feed
38
26
046
ETB
End of Transmission Block
39
27
047
ESC
Escape
42
2A
052
SM
Set Mode
43
2B
053
CU2
Customer User Control 2
45
2D
055
ENQ
Enquiry
46
2E
056
ACK
Acknowledge
47
2F
057
BEL
Sound Bell (Audible Alarm)
50
32
062
SYN
Synchronous Idle
52
34
064
PN
Punch On (paper tape)
53
35
065
RS
Reader Stop
54
36
066
UC
Upper Case
55
37
067
EOT
End Of Transmission
59
3B
073
CU3
Customer User Control 3
61
3D
075
NAK
Negative Acknowledge
63
3F
077
SUB
Substitute