在二进制、八进制、十进制和十六进制之间转换数字。编辑任意字段,其他字段会即时更新。大数值精确无误,不会四舍五入。
如何使用 进制转换
在四个字段中的任意一个输入数字。
输入时其他进制会即时更新。
切换大写十六进制,并一键复制任意值。
This number base converter switches whole numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Every field is editable, so you can type into any base and read the equivalent in the others instantly.
A number base is just how many distinct digits a system uses before it rolls over to the next position. Decimal uses ten (0 to 9), binary uses two (0 and 1), and hexadecimal uses sixteen, adding a to f for the values ten to fifteen, which is why a single hex digit neatly represents four binary bits.
Conversions use arbitrary-precision integers (BigInt), so even very long values stay exact, without the rounding errors that affect ordinary floating-point numbers once they get large.
Bases come up all over low-level work: hexadecimal for colors, bytes and memory addresses, binary for flags and network masks, and octal for Unix file permissions. Reading the same value across bases makes debugging and bit-twiddling much easier.
A leading minus sign is supported for negatives, spaces are ignored so you can group digits for readability, and an option shows hexadecimal in upper or lower case.
It converts integers only; fractional base conversion is a separate problem and is intentionally left out so the results stay exact. Everything runs in your browser.
常见问题
二进制(2 进制)、八进制(8 进制)、十进制(10 进制)和十六进制(16 进制)。你可以编辑其中任意一个,其余会随之更新。
处理。它使用任意精度整数(BigInt),因此即使非常长的值也能精确转换,不会出现普通浮点数那样的舍入误差。
可以,支持前导减号。空格会被忽略,因此你可以分组数字以便阅读。
不支持,它转换整数。分数进制转换是另一个问题,为保证结果精确而特意省略。
嵌入此工具
将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。
<iframe src="https://monu.tools/embed/zh/number-base-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相关工具