Encoding tools

Convert EBCDIC - Ascii and Ascii to EBCDIC

CP037
Paste EBCDIC as hex bytes, or type ASCII text. Built for ISO8583 / mainframe payment data.

EBCDIC → ASCII

hex in

Paste EBCDIC hex like E3F3F2F0F6F4, then press Convert.

ready

ASCII → EBCDIC

text in

Type ASCII text, then press Convert to get EBCDIC hex.

HEX to ASCII
—
  How it works

EBCDIC to ASCII conversion

EBCDIC (Extended Binary Coded Decimal Interchange Code) is used on IBM mainframes and many card-scheme / ISO8583 host messages. Each byte is an EBCDIC code point; this tool maps that byte to ASCII using code page CP037. Digits are F0–F9, uppercase letters start at C1, and space is 40.

JavaScript

// EBCDIC CP037 hex "E3F3F2F0" -> ASCII "T320"
function ebcdicHexToAscii(hex) {
  hex = hex.replace(/\s/g, '');
  var out = '';
  for (var i = 0; i < hex.length; i += 2) {
    var b = parseInt(hex.substr(i, 2), 16);
    out += EBCDIC_TO_ASCII[b] || '';
  }
  return out;
}

Java

String ebcdicHex = "E3F3F2F0F6F4";
byte[] ebcdic = javax.xml.bind.DatatypeConverter.parseHexBinary(ebcdicHex);
String ascii = new String(ebcdic, java.nio.charset.Charset.forName("IBM037"));

C / iconv

iconv_t cd = iconv_open("UTF-8", "IBM037");
iconv(cd, &inbuf, &inbytes, &outbuf, &outbytes);
  Reference

CP037 map

EBCDIC Binary ASCII
4001000000Space
4B01001011.
4C01001100<
4D01001101(
4E01001110+
5001010000&
5A01011010!
5B01011011$
5C01011100*
5D01011101)
5E01011110;
6001100000-
6101100001/
6B01101011,
6C01101100%
6D01101101_
6E01101110>
6F01101111?
7A01111010:
7B01111011#
7C01111100@
7D01111101'
7E01111110=
7F01111111"
8110000001a
8210000010b
8310000011c
8410000100d
8510000101e
8610000110f
8710000111g
8810001000h
8910001001i
9110010001j
9210010010k
9310010011l
9410010100m
9510010101n
9610010110o
9710010111p
9810011000q
9910011001r
A210100010s
A310100011t
A410100100u
A510100101v
A610100110w
A710100111x
A810101000y
A910101001z
C111000001A
C211000010B
C311000011C
C411000100D
C511000101E
C611000110F
C711000111G
C811001000H
C911001001I
D111010001J
D211010010K
D311010011L
D411010100M
D511010101N
D611010110O
D711010111P
D811011000Q
D911011001R
E211100010S
E311100011T
E411100100U
E511100101V
E611100110W
E711100111X
E811101000Y
E911101001Z
F0111100000
F1111100011
F2111100102
F3111100113
F4111101004
F5111101015
F6111101106
F7111101117
F8111110008
F9111110019
  Related

Recent Articles on Iso8583

Choose the product you need

ISO8583 Converter REST-api

Convert ISO8583 to rest-api JSON XML SQL &more

ISO8583 Interface Connector

Integrate ISO8583 card schemes and hosts

ISO20022 SWIFT MT MX Converter

Convert and integrate ISO20022 SWIFT MX with MT , ISO8583

ISO8583 Builder Parser Connector

Most simple solution to build and parse ISO8583 messages

ISO8583 Switch Router

ISO8583 or REST-api Switch Router Bin Amount

Card Payments Authorization

Pre-screen, pre-authorize and Authorize cards and ledger

POS Card Acquirer & Aggregator

Acquiring and Aggregating from POS and other devices

Cards Generator Issuing Host

Generate and export card data for cards issuing and test

ISO8583 Simulator

ISO8583 HISO98 HISO87 simulator

ISO20022 Simulator

ISO20022 & SWIFT simulator

POS Simulator

POS protocols simulator

Mobile Banking Simulator

Mobile Banking Testing Simulator

QR Payments Connector

EMV QR Payments Interface Connector

Micropayments Connector

Micropayments Acquiring Connector & Router

ISO8583 Alerts Notifications

Detect Anomalies, Alerts & Notifications

Clearing & Settlement

Generate Convert Import

Request a Quote

Get a free quote, Ask for details
Get help

Documentation

Read Documentation and Start guides

Online Tools

Online Tools Overview