跳到内容

进制转换

在二、八、十、十六进制之间转换。


About this tool

在一处将数字在二进制、八进制、十进制和十六进制之间转换。编程、网络与底层调试的必备工具。

Why use it

  • 四种常用进制同时转换。
  • 省去心算换基。
  • 本地即时得出结果。

Common use cases

  • 将 hex 颜色或内存地址读成十进制。
  • 将二进制标志值转为十六进制。
  • 核对不同进制下的权限值。

Tips

  • 十六进制是书写长二进制的紧凑方式。
  • 前导零不改变数值,只影响显示。
使用方法
  1. 输入数字和进制。
  2. 转换。
常见问题
Which bases can I convert between?
Binary, octal, decimal and hexadecimal, in any direction.
Is anything uploaded?
No. The conversion is pure math done in your browser.
Can I convert hex colors or bytes?
Yes, hex-to-decimal is handy for color values and byte calculations.
Does it handle large numbers?
It handles typical integer sizes; extremely large values may lose precision.
What is base 16 used for?
Hexadecimal compactly represents bytes and is common in colors, memory and hashes.
Can I convert negative numbers?
Enter the value and choose the bases; standard integer conversion applies.