PrivTab

进制转换器

在二进制、十六进制和十进制之间转换

在浏览器中运行 · 无需上传

此工具及本页说明目前仍为英文。功能完全相同:一切都在你的浏览器中运行。

  • 任何内容都不会离开你的设备
  • 服务器不限制文件大小
  • 无需注册,无水印
  • 免费

How to convert between number bases

  1. Type the number and choose the base it is written in.
  2. Read it in binary, octal, decimal and hexadecimal (and one more base of your choice).
  3. Copy the results.

Good to know

  • Numbers of any length are converted exactly; they are not rounded like in most calculators.
  • Prefixes such as 0x (hex), 0b (binary) and 0o (octal) are understood, and spaces or underscores are ignored.
  • Two's complement shows how a negative number is stored in 8, 16, 32 and 64 bits.
  • Bases above 10 use letters after 9: a = 10, b = 11, up to z = 35.

常见问题

Why does −1 show as 11111111?

Computers store negative numbers in two's complement: −1 in 8 bits is all ones (255 if read as unsigned).

Is anything sent anywhere?

No. The calculation happens in your browser as you type; nothing is sent anywhere.