Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

EBCDIC converter

Convert text to EBCDIC hex and back, in seven code pages.Use this when you need to turn text into EBCDIC hex, or EBCDIC hex back into text, for a given code page.

Checked against IBM rulesON THIS DEVICE · NOTHING UPLOADEDCounting requests…
How to use this tool

What it does

Converts text to EBCDIC hex and hex back to text, in the code page you choose, with a full code chart.

How to use it

  1. Choose the code page.
  2. Type text to see its EBCDIC hex, or paste hex to see the text.
  3. Check each character against its byte, or use the code chart.

What it cannot do

  • You choose the code page; it cannot detect it.
  • Only the code pages it lists are offered, and no double-byte ones.

This tool opens with an example already filled in.

A code page is the table that says which byte stands for which character. The same bytes read differently under different code pages, and this tool cannot detect which one a file used: pick the one the file was written in (037 is common in the US, 1047 on z/OS Unix and Open Systems, 1140 is 037 with the euro sign).

Character ▸ byte

● CODE CHART · lit = used in your text

Row = first hex digit, column = second. Dim cells are control characters. Hover a cell for its Unicode value.

ACCURACY · CHECKED AGAINST IBM RULES

Uses the standard IBM code page tables for 037, 500, 273, 285, 1140, 1148 and 1047. A code page is the byte-to-character table a file was written with; the tool cannot detect it, so choose the right one. Bytes with no printable character show as a dot and cannot be turned back into the same bytes from the text.

What it checks

  • ConfirmedText to EBCDIC hex and EBCDIC hex back to text in seven code pages (037, 1140, 1047, 500, 1148, 273, 285).
  • ConfirmedThe full code chart for the page you pick, so any byte can be looked up.
  • ConfirmedBoth 037 and 1047 are offered, so you can compare them: they differ at 15 and 25 and at the bytes 5F, AD, B0, BA, BB and BD.

What it does not check

  • Depends on your systemIt cannot detect which code page a file uses; you choose it.
  • UnsupportedCode pages other than the seven listed, and double-byte (DBCS) code pages, are not offered.
  • Depends on your systemHow your terminal emulator or file transfer translates characters on its way to your screen.

Source

  • EBCDIC code pages 037, 500, 273, 285, 1140, 1148 (Python standard codecs, IBM tables) and 1047 (the ebcdic package), as recorded in docs/FACTS.md

Checked against IBM rules. Status labels: Confirmed Depends on your system Unsupported (a rule with an official source; depends on your catalog, security, installation defaults or compiler options; not parsed and shown instead of guessing).

Input limits and example

  • Text and hex boxes: 200,000 characters each.

EXAMPLE INPUT

HELLO, WORLD 123  (code page 037)  ->  C8C5D3D3D66B40E6D6D9D3C44040F1F2F3

Check it yourself in one minute

  1. Open your browser's developer tools: in Chrome or Edge press F12 or right-click and choose Inspect; in Firefox press Ctrl+Shift+E for the Network Monitor; in Safari first turn on Show features for web developers under Settings, Advanced. Then open the Network tab.
  2. Keep the log across page loads (Chrome: Preserve log; Firefox: Persist Logs), then use the tool: paste your text or open a file and press the button.
  3. Look at the list. You will see only this page and its own files, loaded when the page opened. Nothing new appears when you use the tool.
  4. Still unsure? Switch Wi-Fi off and try again. The tool still works.

What the badge counts: requests the browser logged after this page finished loading, other than the site's own files. It reads the browser's own record and makes no request of its own. If your browser cannot give that record, the badge says so. The badge is a convenience; the developer tools are the proof.

The rule that enforces it

Every page carries this Content Security Policy. The browser itself refuses any request outside it; connect-src 'none' blocks fetch, XHR and WebSocket.

default-src 'none';
script-src 'self';
style-src 'self';
img-src 'self' data:;
font-src 'self';
connect-src 'none';
object-src 'none';
form-action 'none';
base-uri 'none';
manifest-src 'self';
worker-src 'self'