Skip to content
100% local

EBCDIC converter

Convert text to and from EBCDIC mainframe code pages like CP037, CP500 and CP1140.

Input
Output

EBCDIC converter

EBCDIC is the single-byte character encoding IBM mainframes have used since the 1960s, and it still shows up whenever a modern system exchanges files with a mainframe, a print spool, a COBOL batch job or an old tape image. This tool converts plain text to EBCDIC and back, so you can read a mainframe dump or build one without installing anything.

Pick a direction, a code page and how each side is written. "Text to EBCDIC" turns typed characters into EBCDIC bytes, shown as hex digits, a decimal byte list or raw characters — hex is the usual choice for pasting elsewhere. "EBCDIC to text" reverses that: paste a hex dump, a byte list or raw EBCDIC characters, matching the input format, to get readable text back. Three code pages are available: CP037 (US/Canada), CP500 (International, which swaps a few punctuation positions with CP037) and CP1140 (CP037 plus the euro sign). Wrap output every N characters to match a fixed-width record, and choose whether an odd hex digit is padded with a leading zero or dropped.

EBCDIC's repertoire is limited: CP037 and CP500 cover ASCII plus the accented Western-European letters in Latin-1 (á, é, ü, ñ, ß and similar), but nothing beyond that — a Slovak č, a Polish ą or an emoji has no byte in any of these pages, and the tool reports exactly which character and position caused the problem rather than dropping it silently. Line endings, tabs and other control characters convert like any other byte.

Everything runs locally in your browser — nothing you paste is uploaded anywhere. Copy the result, download it as a .txt file, use "Send output to input" to decode what you just encoded, or clear the panel to start over.

FAQ

What is EBCDIC used for today?
Mainly IBM mainframes, COBOL applications, print spools and legacy data exchange — you'll meet it when a file from one of those systems needs converting to or from ordinary text.
Which code page should I pick?
CP037 is the common default for US/Canada systems. Use CP500 if the source system is European, and CP1140 if the data needs the euro sign.
Why does converting some characters fail?
Each EBCDIC code page defines a fixed set of characters. A letter with a caron or ogonek, or an emoji, has no byte assigned in CP037, CP500 or CP1140, so the tool reports the character and its position instead of guessing.
What does "pad odd hex input" do?
When decoding hex with an odd number of digits, turning this on adds a leading zero to complete the last byte; turning it off drops that extra digit instead.
Is my text uploaded anywhere?
No. The conversion runs entirely in your browser — nothing you type or paste is sent to a server.