🔁 二进制位反转Reverse Binary Numbers
把二进制数的位顺序反转(如 1101 → 1011),可按 8/16/32 位补零后再反转,适合位反转(bit-reversal)、字节序和 CRC 调试,可同时显示十进制。Reverse the bit order of binary numbers (1101 → 1011), optionally padded to 8/16/32 bits first — handy for bit-reversal, endianness and CRC debugging — with decimal output.
使用说明与常见问题How-to & FAQ
「二进制位反转」是什么?What is the Reverse Binary Numbers tool?
把二进制数的位顺序反转(如 1101 → 1011),可按 8/16/32 位补零后再反转,适合位反转(bit-reversal)、字节序和 CRC 调试,可同时显示十进制。Reverse the bit order of binary numbers (1101 → 1011), optionally padded to 8/16/32 bits first — handy for bit-reversal, endianness and CRC debugging — with decimal output.
如何使用「二进制位反转」?How do I use the Reverse Binary Numbers tool?
在「二进制位反转」中,把内容粘贴或输入到上方输入框,按需设置「位宽」、「方式」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「1101」,得到「1011」。In the Reverse Binary Numbers: Paste or type into the input box, adjust "Width", "Mode"; the result appears below instantly — click "Copy result" to copy it. Example: "1101" → "1011".
为什么要先选位宽?Why choose a width first?
位反转的结果取决于位数:1 按原长度反转还是 1,按 8 位反转则是 10000000(128)。做 FFT 位反转或 CRC 的 refin/refout 时需要固定位宽。The result depends on the width: 1 reversed as-is stays 1, but as 8 bits it becomes 10000000 (128). FFT bit-reversal and CRC refin/refout use a fixed width.
可以带 0b 前缀或空格吗?Can I use a 0b prefix or spaces?
可以:每行开头的 0b 前缀会被忽略,数字之间的空格和下划线(如 1010 0001、1010_0001)也会自动去掉;空行会保留。Yes: a leading 0b on each line is ignored, and spaces or underscores between digits (1010 0001, 1010_0001) are removed; blank lines are kept.
数据会上传吗?Is my data uploaded?
不会,全部在浏览器本地处理。No — everything is processed locally in your browser.
「二进制位反转」免费吗?需要注册吗?Is the Reverse Binary Numbers free? Do I need an account?
「二进制位反转」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Reverse Binary Numbers is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.