ASCII or EBCDIC
 Translation Tables
http://www.simotime.com
 Copyright © 1987-2010 SimoTime Enterprises  All Rights Reserved
  Table of Contents Version 09.11.05 
 
Introduction
The ASCII and EBCDIC Tables
 
  Decimal:  0-31  |  32-63  |  64-95  |  96-127  |  128-159  |  160-191  |  192-223  |  224-255 
  Hexadecimal:   00-1F  |  20-3F  |  40-5F  |   60-7F   |   80-9F   |   A0-BF   |   C0-DF   |   E0-FF  
  Alternate Codes, Grave, Acute, Circumflex, Umlaut and Tilde
  Alternate Codes, Currency and Additional Symbols
  Summary
 
  Copyrights, Trademarks and Disclaimers
  Links to Similar Pages of Interest
  Glossary of Terms
  Comments or Suggestions
  About SimoTime

Introduction
(Next) (Previous) (Table-of-Contents)

The following conversion table is provided as a reference for ASCII and EBCDIC translation. When moving information (files or data buffers) between EBCDIC machines and ASCII machines it is quite often necessary to convert the information. If the data strings contain only display or printable characters then it is a straightforward, byte for byte conversion. However, in the real world the actual conversion of data strings between the ASCII and EBCDIC encoding schemas is usually more complicated than a simple byte for byte conversion. For example, if the data strings contain packed or binary data or control information then the data conversion becomes content sensitive. For more information about the automated or programmatic conversion between EBCDIC and ASCII refer to the Links to Similar Pages of Interest at the end of this document.

The ASCII and EBCDIC Tables
(Next) (Previous) (Table-of-Contents)

The following is the ASCII and EBCDIC translation tables. In addition to the ASCII and EBCDIC values the following tables include the decimal, hexadecimal and binary values.

 
(Next) (Previous) (Table-of-Contents) ( Decimal 000-031 ) ( Hexadecimal 00-1F )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
000 00 NUL NUL 0000 0000   016 10 DLE DLE 0001 0000
001 01 SOH SOH 0000 0001   017 11 DC1 DC1 0001 0001
002 02 STX STX 0000 0010   018 12 DC2 DC2 0001 0010
003 03 ETX ETX 0000 0011   019 13 DC3 DC3 0001 0011
004 04 SEL EOT 0000 0100   020 14 RES/ENP DC4 0001 0100
005 05 TAB ENQ 0000 0101   021 15 NL NAK 0001 0101
006 06 RNL ACK 0000 0110   022 16 BS SYN 0001 0110
007 07 DEL BEL 0000 0111   023 17 POC ETB 0001 0111
008 08 GE BS 0000 1000   024 18 CAN CAN 0001 1000
009 09 SPS TAB 0000 1001   025 19 EM EM 0001 1001
010 0A RPT LF 0000 1010   026 1A UBS SUB 0001 1010
011 0B VT VT 0000 1011   027 1B CU1 ESC 0001 1011
012 0C FF FF 0000 1100   028 1C IFS FS 0001 1100
013 0D CR CR 0000 1101   029 1D IGS GS 0001 1101
014 0E SO SO 0000 1110   030 1E IRS RS 0001 1110
015 0F SI SI 0000 1111   031 1F ITB/IUS US 0001 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 032-063 ) ( Hexadecimal 20-3F )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
032 20 Space 0010 0000   048 30   0 0011 0000
033 21 SOS ! 0010 0001   049 31   1 0011 0001
034 22 FS " 0010 0010   050 32 SYN 2 0011 0010
035 23 WUS # 0010 0011   051 33 IR 3 0011 0011
036 24 BYP/INP $ 0010 0100   052 34 PP 4 0011 0100
037 25 LF % 0010 0101   053 35 TRN 5 0011 0101
038 26 ETB & 0010 0110   054 36 NBS 6 0011 0110
039 27 ESC ' 0010 0111   055 37 EOT 7 0011 0111
040 28 SA ( 0010 1000   056 38 SBS 8 0011 1000
041 29 SFE ) 0010 1001   057 39 IT 9 0011 1001
042 2A SM/SW * 0010 1010   058 3A RFF : 0011 1010
043 2B CSP + 0010 1011   059 3B CU3 ; 0011 1011
044 2C MFA , (comma) 0010 1100   060 3C DC4 < 0011 1100
045 2D ENQ - 0010 1101   061 3D NAK = 0011 1101
046 2E ACK . 0010 1110   062 3E   > 0011 1110
047 2F BEL / 0010 1111   063 3F SUB ? 0011 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 064-095 ) ( Hexadecimal 40-5F )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
064 40 Space @ 0100 0000   080 50 & p 0101 0000
065 41 RSP A 0100 0001   081 51 é Q 0101 0001
066 42 â B 0100 0010   082 52 ê R 0101 0010
067 43 ä C 0100 0011   083 53 ë S 0101 0011
068 44 à D 0100 0100   084 54 è T 0101 0100
069 45 á E 0100 0101   085 55 í U 0101 0101
070 46 ã F 0100 0110   086 56 î V 0101 0110
071 47 å G 0100 0111   087 57 ï W 0101 0111
072 48 ç H 0100 1000   088 58 ì X 0101 1000
073 49 ñ I 0100 1001   089 59 ß Y 0101 1001
074 4A ¢ J 0100 1010   090 5A ! Z 0101 1010
075 4B . K 0100 1011   091 5B $ [ 0101 1011
076 4C < L 0100 1100   092 5C * \ 0101 1100
077 4D ( M 0100 1101   093 5D ) ] 0101 1101
078 4E + N 0100 1110   094 5E ; ^ 0101 1110
079 4F | O 0100 1111   095 5F ¬ _ 0101 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 096-127 ) ( Hexadecimal 60-7F )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
096 60 - ` 0110 0000   112 70 ø p 0111 0000
097 61 / a 0110 0001   113 71 É q 0111 0001
098 62 Â b 0110 0010   114 72 Ê r 0111 0010
099 63 Ä c 0110 0011   115 73 Ë s 0111 0011
100 64 À d 0110 0100   116 74 È t 0111 0100
101 65 Á e 0110 0101   117 75 Í u 0111 0101
102 66 Ã f 0110 0110   118 76 Î v 0111 0110
103 67 Å g 0110 0111   119 77 Ï w 0111 0111
104 68 Ç h 0110 1000   120 78 Ì x 0111 1000
105 69 Ñ i 0110 1001   121 79 ` y 0111 1001
106 6A ¦ j 0110 1010   122 7A : z 0111 1010
107 6B , (comma) k 0110 1011   123 7B # { 0111 1011
108 6C % l 0110 1100   124 7C @ | 0111 1100
109 6D _ m 0110 1101   125 7D ' } 0111 1101
110 6E > n 0110 1110   126 7E = ~ 0111 1110
111 6F ? o 0110 1111   127 7F " DEL 0111 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 128-159 ) ( Hexadecimal 80-9F )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
128 80 Ø 1000 0000   144 90 DLE   1001 0000
129 81 a   1000 0001   145 91 j   1001 0001
130 82 b   1000 0010   146 92 k   1001 0010
131 83 c   1000 0011   147 93 l   1001 0011
132 84 d   1000 0100   148 94 m   1001 0100
133 85 e   1000 0101   149 95 n   1001 0101
134 86 f   1000 0110   150 96 0   1001 0110
135 87 g   1000 0111   151 97 p   1001 0111
136 88 h   1000 1000   152 98 q   1001 1000
137 89 i   1000 1001   153 99 r   1001 1001
138 8A     1000 1010   154 9A     1001 1010
139 8B     1000 1011   155 9B     1001 1011
140 8C     1000 1100   156 9C æ   1001 1100
141 8D ý   1000 1101   157 9D     1001 1101
142 8E     1000 1110   158 9E Æ   1001 1110
143 8F     1000 1111   159 9F   Ÿ 1001 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 160-191 ) ( Hexadecimal A0-BF )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
160 A0     1010 0000   176 B0 ^   1011 0000
161 A1 ~   1010 0001   177 B1 £   1011 0001
162 A2 s ¢ 1010 0010   178 B2 ¥   1011 0010
163 A3 t £ 1010 0011   179 B3     1011 0011
164 A4 u   1010 0100   180 B4     1011 0100
165 A5 v ¥ 1010 0101   181 B5     1011 0101
166 A6 w ¦ 1010 0110   182 B6     1011 0110
167 A7 x   1010 0111   183 B7     1011 0111
168 A8 y   1010 1000   184 B8     1011 1000
169 A9 z   1010 1001   185 B9     1011 1001
170 AA     1010 1010   186 BA [   1011 1010
171 AB     1010 1011   187 BB ] » 1011 1011
172 AC   ¬ 1010 1100   188 BC     1011 1100
173 AD Ý   1010 1101   189 BD     1011 1101
174 AE     1010 1110   190 BE     1011 1110
175 AF     1010 1111   191 BF     1011 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 192-223 ) ( Hexadecimal C0-DF )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
192 C0 { À 1100 0000   208 D0 }   1101 0000
193 C1 A Á 1100 0001   209 D1 J Ñ 1101 0001
194 C2 B Â 1100 0010   210 D2 K Ò 1101 0010
195 C3 C Ã 1100 0011   211 D3 L Ó 1101 0011
196 C4 D Ä 1100 0100   212 D4 M Ô 1101 0100
197 C5 E Å 1100 0101   213 D5 N Õ 1101 0101
198 C6 F Æ 1100 0110   214 D6 O Ö 1101 0110
199 C7 G Ç 1100 0111   215 D7 P   1101 0111
200 C8 H È 1100 1000   216 D8 Q Ø 1101 1000
201 C9 I É 1100 1001   217 D9 R Ù 1101 1001
202 CA   Ê 1100 1010   218 DA   Ú 1101 1010
203 CB ô Ë 1100 1011   219 DB û Û 1101 1011
204 CC ö Ì 1100 1100   220 DC ü Ü 1101 1100
205 CD ò Í 1100 1101   221 DD ù Ý 1101 1101
206 CE ó Î 1100 1110   222 DE ú   1101 1110
207 CF õ Ï 1100 1111   223 DF ÿ ß 1101 1111
 
(Next) (Previous) (Table-of-Contents) ( Decimal 224-255 ) ( Hexadecimal E0-FF )
DEC  HEX  EBCDIC  ASCII  BINARY   DEC  HEX  EBCDIC  ASCII  BINARY
224 E0 \ à 1110 0000   240 F0 0   1111 0000
225 E1   á 1110 0001   241 F1 1 ñ 1111 0001
226 E2 S â 1110 0010   242 F2 2 ò 1111 0010
227 E3 T ã 1110 0011   243 F3 3 ó 1111 0011
228 E4 U ä 1110 0100   244 F4 4 ô 1111 0100
229 E5 V å 1110 0101   245 F5 5 õ 1111 0101
230 E6 W æ 1110 0110   246 F6 6 ö 1111 0110
231 E7 X ç 1110 0111   247 F7 7   1111 0111
232 E8 Y è 1110 1000   248 F8 8 ø 1111 1000
233 E9 Z é 1110 1001   249 F9 9 ù 1111 1001
234 EA   ê 1110 1010   250 FA   ú 1111 1010
235 EB Ô ë 1110 1011   251 FB Û û 1111 1011
236 EC Ö ì 1110 1100   252 FC Ü ü 1111 1100
237 ED Ò í 1110 1101   253 FD Ù ý 1111 1101
238 EE Ó î 1110 1110   254 FE Ú   1111 1110
239 EF Õ ï 1110 1111   255 FF Ÿ ÿ 1111 1111
 
Decimal Values
0-31 | 32-63 | 64-95 | 96-127 | 128-159 | 160-191 | 192-223 | 224-255
Hexadecimal Values
00-1F | 20-3F | 40-5F | 60-7F | 80-9F | A0-BF | C0-DF | E0-FF
 

Alternate Codes, Grave, Acute, Circumflex, Umlaut and Tilde
(Next) (Previous) (Table-of-Contents)

The following table shows the ASCII and EBCDIC values for the alternate symbols of the Acute, Circumflex, Grave, Tilde and Umlaut. The "Courier New (fixed font)" and "Times Roman (proportional font)" fonts will display the following charactes.

Acute Circumflex Grave Tilde Umlaut
Sym ASC EBC
Á C1 65
á E1 45
É C9 71
é E9 51
Í CD 75
í ED 55
Ó D3 EE
ó F3 CE
Ú DA FE
ú FA DE
Ý DD AD
ý FD 8D
     
     
Sym ASC EBC
 C2 62
â E2 42
Ê CA 72
ê EA 52
Î CE 76
î EE 56
Ô D4 EB
ô F4 CB
Û DB FB
û FB DB
     
     
     
     
Sym ASC EBC
À C0 64
à E0 44
È C8 74
è E8 54
Ì CC 78
ì EC 58
Ò D2 ED
ò F2 CD
Ù D9 FD
ù F9 DD
     
     
     
     
Sym ASC EBC
à C3 66
ã E3 46
     
     
     
     
Õ D5 EF
õ F5 CF
     
     
     
     
Ñ D1 69
ñ F1 49
Sym ASC EBC
Ä C4 63
ä E4 43
Ë CB 73
ë EB 53
Ï CF 77
ï EF 57
Ö D6 EC
ö F6 CC
Ü DC FC
ü FC DC
Ÿ 9F FF
ÿ FF DF
     
     

Alternate Codes, Currency and Additional Symbols
(Next) (Previous) (Table-of-Contents)

The following table shows the ASCII and EBCDIC values for currency symbols and more of the alternate symbols. The "Courier New (fixed font)" and "Times Roman (proportional font)" fonts will display the following characters.

Symbol ASCII EBCDIC Comment
$ 24 5B Dollar Sign
80 20 Euro Currency
¢ A2 4A US Cent Symbol
£ A3 B1 Pound
¥ A5 B2 Yen
¦ A6 6A Two-Piece Vertical Bar
ß DF 59 Strasse, Germany
Å C5 67 A-ring
å E5 47 a-ring
Ç C7 68 letter "C" with cedilla (upper case)
ç E7 48 letter "c" with cedilla (lower case)
Ø D8 80 O-slash
ø F8 70 o-slash
Æ C6 9C Diphthong
æ E6 9E Diphthong

Summary
(Next) (Previous) (Table-of-Contents)

The purpose of this document is to provide a quick reference for ASCII and EBCDIC translation. This document is made available on an "as-is" basis and may be downloaded, copied and modified for specific situations as long as the copyright information is not removed or changed. As always, it is the programmer's responsibility to thoroughly test all programs.

Copyrights, Trademarks and Disclaimers
(Next) (Previous) (Table-of-Contents)

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to Simotime Enterprises. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Enterprises.

SimoTime Enterprises makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any express or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Enterprises shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.

If you have any questions, suggestions or comments please call or send an e-mail to: helpdesk@simotime.com

Links to Similar Pages of Interest
(Next) (Previous) (Table-of-Contents)

Signed fields that are in a zone decimal format need special handling and should not be handled as text data. The Zoned Decimal Format, Description and Discussion document provides additional information for converting this type of numeric field or data string.

This link provides additional information about Packed Decimal or COMP-3 (i.e. COMPUTATIONAL-3) fields. The Packed-Decimal or COMP-3 Format, Description and Discussion document provides additional information about this type of numeric field or data string.

This link provides additional information about Binary or COMP (i.e. COMPUTATIONAL) fields. The Binary or COMP Format, Description and Discussion document provides additional information for this type of numeric field or data string.

The  self-study session for data file conversion  includes a discussion about file conversion with a focus on EBCDIC and ASCII content conversion. The session includes a hands-on exercise that does an actual conversion of a data file that includes packed and binary data. The exercise shows how to do file content conversion at the field level.

The  self-study session for comparing data files  uses a generated COBOL program to compare two data files. The session includes a hands-on exercise that does an actual data file comparison.

The  SimoZAPS Utility Program  has the capability of generating a COBOL program that will do the conversion of sequential and VSAM (KSDS) files between EBCDIC and ASCII contents. SimoZAPS can also read a sequential file in EBCDIC format and create an ASCII/CRLF file or VSAM KSDS file in ASCII format. The conversion tables may be viewed or modified to meet unique requirements.

The File Conversion, Volume 1  examples will show the source code required to read an EBCDIC sequential file that has been downloaded from a mainframe and create an ASCII sequential file for use on the application server or a local PC. This example also provides mainframe JCL. This conversion program may be executed on the mainframe and the sequential file containing ASCII data may be downloaded from the mainframe or accessed directly from an application server or PC. The COBOL source code was generated by the SimoZAPS utility.

The following is a list of conversion programs included in File Conversion, Volume 1.

Program Description
cble2a01 Convert from an EBCDIC-Sequential file to an ASCII-Sequential file. This example includes a mainframe JCL member.
zap00101 Convert from an EBCDIC-Sequential file to an ASCII-Text file.
zap00201 Convert from an EBCDIC-Sequential file to an ASCII-Indexed file (Sequential-Add).
zap00301 Convert from an EBCDIC-Sequential file to an ASCII-Sequential file.
zap00401 Convert from an ASCII-Text file to an EBCDIC-Indexed file (Sequential-Add).
zap00501 Convert from an ASCII-Text file to an EBCDIC-Indexed file (Random-Add).

The  File Conversion, Volume 2 examples include a number of programs that do data file conversion. The examples use COBOL programs and will run on an IBM Mainframe or a PC using Micro Focus Mainframe Express or Net Express. The COBOL source code was generated by the SimoZAPS utility.

Glossary of Terms
(Next) (Previous) (Table-of-Contents)

Check out  The SimoTime Glossary  for a list of terms and definitions used in the documents provided by SimoTime.

Comments or Suggestions
(Next) (Previous) (Table-of-Contents)

If you have any questions, suggestions or comments please call or send an e-mail to: helpdesk@simotime.com

About SimoTime Enterprises
(Next) (Previous) (Table-of-Contents)

Founded in 1987, SimoTime Enterprises is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. This includes the smallest thin client using the Internet and the very large mainframe systems. There is more to making the Internet work for your company's business than just having a nice looking WEB site. It is about combining the latest technologies and existing technologies with practical business experience. It's about the business of doing business and looking good in the process. Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com


Return-to-Top
Copyright © 1987-2010  SimoTime Enterprises  All Rights Reserved
When technology complements business
http://www.simotime.com
Version 09.11.05