🔢 BCD 码转十六进制BCD to Hexadecimal Converter
把 8421 BCD 码(每 4 位一组表示一个十进制数字)转换成十六进制数,每行一个,可同时显示十进制值;会检查 1010–1111 等无效分组。Convert 8421 BCD (each group of 4 bits is one decimal digit) to hexadecimal, one number per line, with optional decimal values; invalid groups such as 1010–1111 are flagged.
使用说明与常见问题How-to & FAQ
「BCD 码转十六进制」是什么?What is the BCD to Hexadecimal Converter tool?
把 8421 BCD 码(每 4 位一组表示一个十进制数字)转换成十六进制数,每行一个,可同时显示十进制值;会检查 1010–1111 等无效分组。Convert 8421 BCD (each group of 4 bits is one decimal digit) to hexadecimal, one number per line, with optional decimal values; invalid groups such as 1010–1111 are flagged.
如何使用「BCD 码转十六进制」?How do I use the BCD to Hexadecimal Converter tool?
在「BCD 码转十六进制」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「0010 0101 0101」,得到「FF」。In the BCD to Hexadecimal Converter: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it. Example: "0010 0101 0101" → "FF".
BCD 码是什么?What is BCD?
BCD(8421 码)把每一位十进制数字分别用 4 位二进制表示:255 → 0010 0101 0101。每组只能是 0000–1001(0–9),1010–1111 无效。BCD (8421) writes each decimal digit as 4 bits: 255 → 0010 0101 0101. Each group must be 0000–1001 (0–9); 1010–1111 is invalid.
能处理多长的数?How long can the numbers be?
每行一个数,用 BigInt 精确计算,长度不受 2^53 限制。空格和下划线被当作分组符号忽略,输入可加 0b 前缀;0x、0o 不接受。One number per line, computed exactly with BigInt, so there is no 2^53 limit. Spaces and underscores are ignored as grouping, and the input may start with 0b; 0x and 0o are not accepted.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「BCD 码转十六进制」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The BCD to Hexadecimal Converter runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「BCD 码转十六进制」免费吗?需要注册吗?Is the BCD to Hexadecimal Converter free? Do I need an account?
「BCD 码转十六进制」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The BCD to Hexadecimal Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.