EBCDIC 转换器
将 EBCDIC 十六进制转换为 ASCII 文本,或将 ASCII 转换为 EBCDIC——专为 IBM 大型机数据设计的免费在线工具。
EBCDIC (Extended Binary Coded Decimal Interchange Code) is IBM's proprietary character encoding, used on mainframe and midrange systems since the 1960s. Unlike ASCII, which maps characters to a logical sequence, EBCDIC's character assignments reflect the physical encoding of the IBM punch card. If you work with mainframe data exports, legacy financial systems, or IBM AS/400 integrations, you will encounter EBCDIC-encoded files that look like garbage until converted.
This tool converts EBCDIC hex sequences to readable ASCII text and encodes ASCII text to EBCDIC hex. It is indispensable for developers integrating with legacy IBM systems, data engineers migrating mainframe records to modern databases, and anyone debugging an FTP transfer from a z/OS system where the character encoding was not auto-converted.
如何在线将 EBCDIC 转换为 ASCII
- 1
粘贴 EBCDIC 十六进制或 ASCII 文本
粘贴 EBCDIC 十六进制转储以解码为 ASCII,或输入 ASCII 文本以转换为 EBCDIC 十六进制。
- 2
即时转换
工具使用 IBM 代码页 037(美国英语 EBCDIC)映射字节。无法映射的字节将标记其位置。
- 3
复制结果
复制转换后的 ASCII 文本或 EBCDIC 十六进制输出,用于大型机工作流程。
How EBCDIC Encoding Works
EBCDIC assigns 8-bit code points to characters but uses a completely different mapping than ASCII. The letter 'A' is `0xC1` in EBCDIC but `0x41` in ASCII; a lowercase 'a' is `0x81` in EBCDIC but `0x61` in ASCII. The alphabetic characters are not even contiguous — there are gaps in the EBCDIC sequence between 'I' and 'J' and between 'R' and 'S' — which famously breaks C programs that assume `'Z' - 'A' == 25`.
There are many EBCDIC variants (IBM Code Page 037, 500, 1047, and others) with different assignments for bracket characters and national currency symbols. The correct conversion table depends on the specific IBM system and region. This tool uses EBCDIC 037 (the US English variant most commonly used in North American mainframe data exports) as the default code page.
为什么使用 FileCrank EBCDIC 转换器?
- ✓ 将 EBCDIC 十六进制转换为可读 ASCII,反之亦然。
- ✓ 使用 IBM 代码页 037(标准 z/OS EBCDIC)。
- ✓ 标记无法映射的字节及其位置信息。
- ✓ 完全在浏览器中运行——不向任何服务器发送数据。
功能与规格
常见问题
什么是 EBCDIC,它在哪里使用?
EBCDIC 是 IBM 在 20 世纪 60 年代为其大型机系统开发的字符编码。它的字节值分配与 ASCII 不同。EBCDIC 目前仍在银行、保险和大型企业环境中的 IBM z/OS 大型机和 IBM i(AS/400)系统上使用。
为什么 EBCDIC 输出在文本编辑器中看起来像乱码?
因为 EBCDIC 分配的字节值与 ASCII 不同。EBCDIC 中的 0xC1 字节是字母 A,但在 ASCII 中它是扩展拉丁字符。用 ASCII 或 UTF-8 解码器读取 EBCDIC 数据会产生乱码。
此工具支持哪种 EBCDIC 代码页?
此工具使用 IBM 代码页 037(美国英语 EBCDIC),这是 z/OS 系统的默认代码页。特定的地区代码页(273、500、1047 等)对于特殊字符可能有所不同。
我可以用此工具解码 EBCDIC 压缩十进制或二进制整数字段吗?
不能——此工具仅转换字符数据。压缩十进制(COMP-3)字段和二进制整数(COMP、COMP-4)字段需要单独的转换逻辑,无法通过字符集映射解码。
EBCDIC Converter vs. iconv vs. dd
The `iconv` command-line tool with the `EBCDIC-US` or `IBM037` encoding handles EBCDIC conversion well on systems where those code pages are installed, but availability varies and the command syntax is non-obvious. The Unix `dd` utility with `conv=ascii` does a basic EBCDIC-to-ASCII conversion but uses a fixed translation table with no code page selection. A browser-based converter is faster for quick inspection of a hex dump and works without any installed tools or knowledge of iconv code page names.
相关工具
FileCrank EBCDIC 转换器使用 IBM 代码页 037 在 EBCDIC 十六进制和 ASCII 文本之间转换,完全在浏览器中运行。
Advertisement