Overview
Introduction
EBCDIC is IBM's mainframe-era text encoding, byte-for-byte incompatible with ASCII despite representing the same characters.
This tool shows exactly which bits a piece of text becomes under EBCDIC's CP037 code page, reusing the identical byte table this site's ASCII-category EBCDIC converters already use.
What Is EBCDIC to Binary Converter?
A converter that maps printable ASCII text to its IBM EBCDIC (CP037) byte values and displays each byte as 8-bit binary.
It shares its underlying character table with the ASCII to EBCDIC Converter, so the two tools' outputs represent the exact same bytes in different formats (binary here, hex there).
How EBCDIC to Binary Converter Works
Each character of the input is validated as printable ASCII (32-126), matching the CP037 table's coverage, then looked up in a table of 95 explicit [character, hex byte] mappings shared with the ascii category.
The resulting hex byte is parsed and reformatted with `.toString(2).padStart(8, "0")` into an 8-bit binary string; all bytes are joined with spaces in input order.
When To Use EBCDIC to Binary Converter
Use it when working with legacy mainframe systems, COBOL data files, or z/OS interfaces that store text as EBCDIC and you need to see the exact bit pattern.
It's also useful for teaching how the same text produces completely different byte values under ASCII versus EBCDIC.
Often used alongside Binary to EBCDIC Converter and ASCII to EBCDIC Converter.
Features
Advantages
- Reuses the exact, verified CP037 table already used by this site's ASCII-category EBCDIC converters, so results are consistent across the whole site.
- Reports the exact character and position responsible for any unsupported (control) character.
- Simple, fully client-side, instant conversion.
Limitations
- Only covers printable ASCII (32-126); control characters like tab, newline, or carriage return aren't representable in this table and are rejected.
- Only supports CP037 — other EBCDIC code pages (e.g. CP500, CP1047) use different byte assignments for some characters and aren't covered.
Examples
Best Practices & Notes
Best Practices
- Stick to printable ASCII input — if you need control characters, this converter isn't the right tool since CP037's control-code layout isn't covered.
- Feed the output straight into the Binary to EBCDIC Converter to confirm a clean round trip back to the original text.
Developer Notes
Imports `ASCII_TO_CP037` directly from the ascii category's `ascii-to-ebcdic-converter.ts` lib file (a single source of truth for the byte table) rather than duplicating it, then reuses `validateStrictAscii` from the same category for input checking before converting each looked-up hex byte to binary.
EBCDIC to Binary Converter Use Cases
- Preparing text for systems that expect EBCDIC-encoded binary data
- Teaching or demonstrating how ASCII and EBCDIC diverge at the byte level
- Cross-checking a hand-computed EBCDIC binary conversion
Common Mistakes
- Assuming EBCDIC letters are contiguous like ASCII — CP037 has gaps between letter ranges (e.g. after I comes a jump to J at D1, not C9+1).
- Including control characters (tabs, newlines) in the input, which this table doesn't cover and will be rejected.
Tips
- Compare this tool's output with the ASCII to EBCDIC Converter's hex output for the same input — they represent identical bytes.
- Try digits like "0" through "9" to see EBCDIC's distinctive F0-F9 numeric range.