二进制转换器,可将十进制快速转换为二进制,也可将二进制转换为十进制,并显示对应的十六进制值。
Use this binary converter to switch between decimal, binary, octal, and hexadecimal instantly. Enter a whole number in any base and the other number systems update at the same time.
This page is useful for decimal to binary, binary to decimal, binary to hex, hex to binary, and quick base conversion in programming, electronics, networking, and study.
初始数据
在任意字段中输入数值,其他进制会自动更新。
转换示例
\begin{align}
110_{2} &= 1\times2^{2}+1\times2^{1}+0\times2^{0}=6_{10} \\
\\
6_{10} &= 110_{2}:\\
\end{align}
6 / 2 = 3, 余数 0, (LSB - Least Significant Bit)
3 / 2 = 1, 余数 1
1 / 2 = 0, 余数 1, (MSB - Most Significant Bit)
3 / 2 = 1, 余数 1
1 / 2 = 0, 余数 1, (MSB - Most Significant Bit)
二进制对照表
| 小数(正数) | 二进制数字 |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 | 1010 |
| 小数(正数) | 二进制数字 |
|---|---|
| 11 | 1011 |
| 12 | 1100 |
| 13 | 1101 |
| 14 | 1110 |
| 15 | 1111 |
| 16 | 10000 |
| 32 | 100000 |
| 64 | 1000000 |
| 128 | 10000000 |
| 256 | 100000000 |