HPlogo FCOPY Reference Manual: HP 3000 MPE/iX Computer Systems > Appendix C Codes

ASCII/EBCDIC Conversion Table

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

This table is sorted by character code, each code being represented by its decimal, octal, and hexadecimal equivalents. Each row of the table gives the ASCII and EBCDIC meaning of the character code, the ASCII/EBCDIC conversion code, and the Hollerith representation (punched card code) for the ASCII character.

Examples

The following examples illustrate how to use the table.

Example 1

Suppose you want to determine the ASCII code for the $ character. Scan down the ASCII graphic column until you locate $, then look left on that row to find the character code; 36 (decimal), 044 (octal), and 24 (hex). This is the code used by an ASCII device (terminal, printer, computer, etc.) to represent the $ character. Its Hollerith punched card code is 11-3-8.

Example 2

Suppose you want to find out what EBCDIC character the character code 5B (hex) represents. Also, when 5B is converted to ASCII (for example by FCOPY with the EBCDICIN option), you want to know the octal character code. First, locate 5B in the hex character code column and look right on that row to the EBCDIC graphic, which is $. The next column to the right gives the conversion to ASCII, which is 044. As a check, find 044 (octal) in the character code column, look right to the ASCII graphic column and note that $ converted to EBCDIC is 133 (octal), which equals 5B (hex).

Table C-1 ASCII and EBCDIC Characters

Character CodeASCIIEBCDIC
   Control/To Control/To
DecimalOctalHexGraphicEBCDICHollerithGraphicASCII
    (Octal)  (Octal)
000000NUL00012 0 1 8 9NUL000
100101SOH00112 1 9SOH001
200202STX00212 2 9STX002
300303ETX00312 3 9ETX003
400404EOT0677 9PF234
500505ENQ0550 5 8 9HT011
600606ACK0560 6 8 9LC206
700707BEL0570 7 8 9DEL177
801008BS02611 6 9GE227
901109HT00512 5 9RLF215
100120ALF0450 5 9SMM216
110130BVT01312 3 8 9VT013
120140CFF01412 4 8 9FF014
130150DCR01512 5 8 9CR015
140160ESO01612 6 8 9SO016
150170FSI01712 7 8 9SI017
1602010DLE02012 11 1 8 9DLE020
1702111DC102111 1 9DC1021
1802212DC202211 2 9DC2022
1902313DC302311 3 9TM023
2002414DC40744 8 9AES235
2102515NAK0755 8 9NL205
2202616SYN0622 9BS010
2302717ETB0460 6 9IL207
2403018CAN03011 8 9CAN030
2503119EM03111 1 8 9EM031
260321ASUB0777 8 9CC222
270331BESC0470 7 9CU1217
280341CFS03411 4 8 9IFS034
290351DGS03511 5 8 9IGS035
300361ERS03611 6 8 9IRS036
310371FUS03711 7 8 9IUS037
3204020SP space100BlankDS200
3304121!11712 7 8SOS201
3404222"1777 8FS202
3504323#1733 8 203
3604424$13311 3 8BYP204
3704525%1540 4 8LF012
3804626&1201 2ETB027
3904727' apost.1755 8ESC033
4005028(11512 5 8 210
4105129)13511 5 8 211
420522A*13411 4 8SM212
430532B+11612 6 8CU2213
440542C, comma1530 3 8 214
450552D- hyphen14011ENQ005
460562E. period11312 3 8ACK006
470572F/1410 1BEL007
480603003600 220
490613113611 221
500623223622SYN026
510633333633 223
520643443644PN224
530653553655RS225
540663663666UC226
550673773677EOT004
560703883708 230
570713993719 231
580723A:1722 8 232
590733B;13611 6 8CU3233
600743C<11412 4 8DC4024
610753D=1766 8NAK025
620763E>1560 6 8 023
630773F?1570 7 8SUB032
6410040@17448SP040
6510141A30112 1 240
6610242B30212 2 241
6710343C30312 3 242
6810444D30412 4 243
6910545E30512 5 244
7010646F30612 6 245
7110747G30712 7 246
7211048H31012 8 247
7311149I31112 9 250
741124AJ32111 1¢133
751134BK32211 2. period056
761144CL32311 3<074
771154DM32411 4(050
781164EN32511 5+053
791174FO32611 6|041
8012050P32711 7&046
8112151Q33011 8 251
8212252R33111 9 252
8312353S3420 2 253
8412454T3430 3 254
8512555U3440 4 255
8612656V3450 5 256
8712757W3460 6 257
8813058X3470 7 260
8913159Y3500 8 261
901325AZ3510 9|135
911335B[11212 2 8$044
921345C\3400 2 8*052
931355D]13211 2 8)051
941365E^13711 7 8;073
951375F_underline1550 5 8 136
9614060` grave1711 8- hyphen055
9714161a20112 0 1/057
9814262b20212 0 2 262
9914363c20312 0 3 263
10014464d20412 0 4 264
10114565e20512 0 5 |265 
10214666f20612 0 6 266
10314767g20712 0 7 267
10415068h21012 0 8 270
10515169i21112 0 9|271
1061526Aj22112 11 1|174
1071536Bk22212 11 2, comma054
1081546Cl22312 11 3%045
1091556Dm22412 11 4_unlin137
1101566En22512 11 5>076
1111576Fo22612 11 6?077
11216070p22712 11 7 272
11316171q23012 11 8 273
11416272r23112 11 9 274
11516373s24211 0 2 275
11616474t24311 0 3 276
11716575u24411 0 4 277
11816676v24511 0 5 300
11916777w24611 0 6 301
12017078x24711 0 7 302
12117179y25011 O 8'140
1221727Az25111 0 9:072
1231737B{30012 0#043
1241747C|15212 11@100
1251757D}32011 0' (apos)047
1261767E-24111 0 1=075
1271777FDEL00712 7 9"042
12820080 04011 0 1 8 9 303
12920181 0410 1 9a141
13020282 0420 2 9b142
13120383 0430 3 9c143
13220484 0440 4 9d144
13320585 02511 5 9e145
13420686 00612 6 9f146
13520787 02711 7 9g147
13621088 0500 8 9h150
13721189 0510 1 8 9i151
1382128A 0520 2 8 9 304
1392138B 0530 3 8 9 305
1402148C 0540 4 8 9 306
1412158D 01112 1 8 9 307
1422168E 01212 2 8 9 310
1432178F 03311 3 8 9 311
14422090 06012 11 0 1 8 9 312
14522191 0611 9j152
14622292 03211 2 8 9k153
14722393 0633 9l154
14822494 0644 9m155
14922595 0655 9n156
15022696 0666 9o157
1512279701012 8 9p160
15223098 0708 9q161
15323199 0711 8 9r162
1542329A 0722 8 9 313
1552339B 0733 8 9 314
1562349C 00412 4 9 315
1572359D 02411 4 9 316
1582369E 0766 8 9 317
1592379F 34111 0 1 9 320
160240A010112 0 1 9 321
161241A1 10212 0 2 9~176
162242A2 10312 0 3 9s163
163243A3 10412 04 9t164
164244A4 10512 0 5 9u165
165245A5 10612 0 6 9v166
166246A6 10712 0 79w167
167247A7 11012 0 8 9x170
168250A8 11112 1 8y171
169251A9 12112 11 1 9z172
170252AA 12212 11 2 9 322
171253AB 12312 11 3 9 323
172254AC 12412 11 4 9 324
173255AD 12512 11 5 9 325
174256AE 12612 11 6 9 326
175257AF 12712 11 7 9 327
176260B0 13012 11 8 9 330
177261B1 13111 1 8 331
178262B2 14211 0 2 9 332
179263B3 14311 0 3 9 333
180264B4 14411 0 4 9 334
181265B5 14511 0 5 9 335
182266B6 14611 0 6 9 336
183267B7 14711 0 7 9 337
184270B815011 0 8 9 340
185271B9 1510 1 8 341
186272BA 16012 11 0 342
187273BB 16112 11 0 1 9 343
188274BC 16212 11 0 2 9 344
189275BD 16312 11 0 3 9 345
190276BE 16412 11 0 4 9 346
191277BF 16512 11 0 5 9 347
192300C0 16612 11 0 6 9{173
193301C1 16712 11 0 7 9A101
194302C2 17012 11 0 8 9B102
195303C3 20012 0 1 8C103
196304C4 21212 0 2 8D104
197305C5 21312 0 3 8E105
198306C621412 0 4 8F106
199307C721512 0 5 8G107
200310C8 21612 0 6 8H110
201311C9 21712 0 7 8I111
202312CA 22012 11 1 8 350
203313CB 23212 11 2 8 351
204314CC 23312 11 3 8 352
205315CD 23412 11 4 8 353
206316CE 23512 11 5 8 354
207317CF 23612 11 6 8 355
208320D0 23712 11 7 8}175
209321D1 24011 0 1 8J112
210322D2 25211 0 2 8K113
211323D3 25311 0 3 8L114
212324D4 25411 0 4 8M115
213325D5 25511 0 5 8N116
214326D6 25611 0 6 8O117
215327D7 25711 0 7 8P120
216330D8 26012 11 0 1 8Q121
217331D9 26112 11 0 1R122
218332DA 26212 11 0 2 356
219333D8 26312 11 0 3 357
220334DC 26412 11 0 4 360
221335DD 26512 11 0 5 361
222336DE 26612 11 0 6 362
223337DF 26712 11 0 7 363
224340E0 27012 11 0 8\134
225341E1 27112 11 0 9 237
226342E2 27212 11 0 2 8S123
227343E3 27312 11 0 3 8T124
228344E4 27412 11 0 4 8U125
229345E5 27512 11 0 5 8V126
230346E6 27612 11 0 6 8W127
231347E7 27712 11 0 7 8X130
232350E8 31212 0 2 8 9Y131
233351E9 31312 0 3 8 9Z132
234352EA 31412 0 4 8 9 364
235353EB 31512 0 5 8 9 365
236354EC 31612 0 6 8 9 366
237355ED 31712 0 7 8 9 367
238356EE 33212 11 2 8 9 370
239357EF 33312 11 3 8 9 371
240360F0 33412 11 4 8 90060
241361F1 33512 11 5 8 91061
242362F2 33612 11 6 8 92062
243363F3 33712 11 78 93063
244364F4 35211 0 2 8 94064
245365F5 35311 0 3 8 95065
246366F6 35411 0 4 8 96066
247367F7 35511 05 8 97067
248370F8 35611 0 6 8 98070
249371F9 35711 0 7 8 99071
250372FA 37212 11 0 2 8 9 372
251373FB 37312 11 0 3 8 9 373
252374FC 37412 11 0 4 8 9 374
253375FD 37512 11 0 5 8 9 375
254376FE 37612 11 0 6 8 9 376
255377FF 37712 11 0 7 8 9 377

 

Feedback to webmaster