IBM mainframe · CP037 · 8-bit
Convert between ASCII and EBCDIC (CP037 / IBM-037), the 8-bit character encoding used on IBM mainframes. Non-ASCII-compatible bit layout means text must be explicitly transcoded when moving between platforms.
ASCII text → EBCDIC (hex) box — the EBCDIC encoding appears instantly in EBCDIC hex as space-separated two-digit hex bytes.Copy result to copy the encoded bytes to your clipboard.EBCDIC hex → ASCII text box and the decoded text appears below it.Clear on either box to reset it and start over.EBCDIC hex as one byte — for example C1 is A and F1 is 1 under CP037.IBM z/OS logs, memory dumps, and data files hold EBCDIC bytes. Paste the hex here to see the plain text they represent.
Moving records between a mainframe and a modern system requires an explicit ASCII ↔ EBCDIC conversion — this does it byte by byte.
See why EBCDIC and ASCII are incompatible: letters sit at 0xC1–0xC9 and digits at 0xF0–0xF9, not the ASCII positions.
Mainframe records use fixed-width fields. Check the raw EBCDIC byte values behind each field to verify boundaries and content.
Confirm that spaces, punctuation, and symbols map to the expected EBCDIC bytes before feeding data into a mainframe job.
All conversion runs in your browser. Nothing is uploaded, logged, or sent to a server — safe for sensitive records.
EBCDIC (Extended Binary Coded Decimal Interchange Code) is an 8-bit character encoding developed by IBM for its mainframes. Unlike ASCII, its bit layout is not ASCII-compatible, so text must be explicitly transcoded when moving between platforms.
Both are 8-bit, but they place characters at different code points. In CP037, letters A–I are at 0xC1–0xC9, J–R at 0xD1–0xD9, S–Z at 0xE2–0xE9, and digits at 0xF0–0xF9.
The transcode applies CP037 (IBM-037), the standard US/Canada EBCDIC code page. The header also lists CP273 (Germany) and CP285 (UK) as related mainframe code pages, but the byte-for-byte mapping used here is CP037.
Each EBCDIC character becomes one byte, shown as two hex digits. Spaces separate the bytes so you can read the value of each character at a glance, e.g. C1 C2 C3 for ABC.
Encoding is byte-oriented and built for CP037, which only defines printable characters in the ASCII range. Bytes above 0x7F are written as-is and may be mapped back through the CP037 table on decode, so keep input to standard ASCII text for reliable results.
Never. All conversion happens locally in JavaScript. Your input is not sent to, stored on, or logged by any server.