跳到主要内容

进制转换

UpBox优盒工具箱,免费在线进制转换工具,支持二进制、八进制、十进制、十六进制与 2–36 任意进制互转,大整数精确计算,可分组显示并一键复制。

无需注册 · 数据不上传No sign-up · nothing uploaded

输入Input

位宽0

支持 0x / 0b / 0o 前缀;大整数按 BigInt 精确计算,不会丢精度

转换结果Results

二进制 —
八进制 —
十进制 —
十六进制 —
其他进制 —
输入数值后自动转换
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器

工具介绍

一个数值同时给出四种常用进制,还能指定 2–36 之间的任意进制。二进制按 4 位、十六进制按 4 位、十进制按 3 位分组,长数字也能一眼读出来。 One value yields the four common bases plus any base from 2 to 36. Digits group by 4 for binary and hex and by 3 for decimal, so long numbers stay readable.

大整数用 BigInt 计算,超过 2^53 也不会丢精度;负数与 0x / 0b / 0o 前缀都能识别,输入里的空格和下划线会自动忽略。 Big integers use BigInt, so values above 2^53 keep full precision; negatives and 0x / 0b / 0o prefixes are recognized, and spaces or underscores are ignored.

  • 任意进制 2–36Any base 2–36
  • 大整数精确BigInt precision
  • 分组显示Digit grouping
  • 前缀识别Prefix support
  • 一键复制One-click copy

使用说明

  1. 选择当前进制。Choose the input base.
  2. 输入数值,可带前缀。Enter the value, prefixes allowed.
  3. 查看四种进制与自定义进制结果。Read the four bases plus your custom base.
  4. 点复制按钮取用结果。Use the copy button for any row.

常见问题

支持小数吗?Are decimals supported?
只处理整数;需要小数请先按定点数放大成整数再换算。Integers only; scale a fractional value into an integer first.
数值有上限吗?Is there a size limit?
没有硬上限,使用 BigInt 精确计算,但位数极多时浏览器会变慢。No hard limit thanks to BigInt, though extremely long values may slow the browser.
为什么二进制有空格?Why are there spaces in binary?
那是分组显示,复制时会自动去掉空格,得到连续数字。That is digit grouping; copying strips the spaces automatically.
负数是补码吗?Are negatives two’s complement?
不是,负数按符号位加绝对值显示;补码请用“位宽”自行判断边界。No, negatives show a minus sign plus magnitude; use the bit length to reason about two’s complement.
广告位

此处为广告位,可放置你的推广素材

支持图片、文字或 HTML 代码,替换本区块内容即可投放

浏览其他分类