TOOLGRID
首页图片工具PDF 工具视频工具音频工具
更多
开发工具Web 与 SEO分类文本工具计算器关于
菜单
首页图片工具PDF 工具视频工具音频工具开发工具Web 与 SEO分类文本工具计算器关于
TOOLGRID

需要某项具体功能时,完整工具箱始终可用。

© 2026 TOOLGRID。保留所有权利。

工具

图片工具PDF 工具视频工具音频工具

资源

分类隐私政策

站点

关于条款联系
  1. 首页
  2. 开发辅助
  3. Base Converter

Base Converter

Convert signed integers between bases 2, 8, 10, 16, 32, and 36 without precision loss.

Pasted code or structured data→Base Converter result浏览器本地处理

Loading tool…

格式与处理方式

工具代码会在浏览器中处理所选文件和输入内容,不会将其提交给 TOOLGRID 的处理接口。

输入
Pasted code or structured data
输出
Base Converter result
运行引擎
Browser APIs
浏览器内运行这个工具能做什么

Parse a signed whole number in base 2, 8, 10, 16, 32, or 36 and convert it to another supported base. The implementation uses BigInt for exact integer conversion, accepts underscore separators, and shows the decimal value beside the selected output.

It covers binary flags, octal values, decimal IDs, hexadecimal bytes, and compact base-32 or base-36 identifiers without routing through a floating-point Number.

Prefixes such as 0x and decimal fractions are not parsed; choose the source base explicitly and enter only the signed integer digits for that base.

代表性任务

这个工具可以完成什么

Inspect binary and hexadecimal values

Translate masks, protocol constants, color values, or byte-oriented identifiers into decimal or another debugging notation.

Convert large integer identifiers

Move an integer between decimal and a compact base-32 or base-36 representation without losing digits to floating-point rounding.

Verify octal and permission math

Convert an octal integer to binary or decimal when checking low-level flags, examples, or documentation.

使用边界

依赖结果前需要检查什么

  • Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
  • Review the generated result before replacing or publishing an original file.
MDN Web APIs

如何使用

  1. 1

    Choose the source base that matches the input notation.

  2. 2

    Enter a signed integer using only digits valid for that base; underscores may be used as visual separators.

  3. 3

    Choose base 2, 8, 10, 16, 32, or 36 as the target and review both converted and decimal outputs.

  4. 4

    Copy the result without adding a prefix unless the destination format explicitly requires one.

使用场景
Inspect binary and hexadecimal values

Translate masks, protocol constants, color values, or byte-oriented identifiers into decimal or another debugging notation.

Convert large integer identifiers

Move an integer between decimal and a compact base-32 or base-36 representation without losing digits to floating-point rounding.

Verify octal and permission math

Convert an octal integer to binary or decimal when checking low-level flags, examples, or documentation.

使用技巧
Select the base instead of typing a prefix

Enter ff with source base 16, not 0xff. Prefix characters are treated as digits and will make the value invalid in bases where they do not belong.

Use underscores only as separators

Inputs such as 1111_0000 or 1_000_000 are accepted. An underscore must sit between two digit groups; leading, trailing, or repeated underscores are rejected.

Keep fractions out of integer conversion

The converter accepts whole numbers only. A radix point and repeating fractional expansions require a separate rational-number conversion method.

常见问题

Does it support negative numbers?

Yes. Signed integer values are supported.

Which bases are supported?

Binary (2), octal (8), decimal (10), hexadecimal (16), base 32, and base 36 are available as both source and target bases.

Can I convert very large integers?

Yes. Conversion uses BigInt rather than floating-point Number, so integers are not limited to 2^53 - 1. Browser memory and practical input size are the remaining limits.

Can I include 0x, 0b, or 0o prefixes?

No. Choose the source base explicitly and enter the digits without a notation prefix, such as ff for hexadecimal or 1010 for binary.

Are fractional values supported?

No. This converter is intentionally exact for signed integers. Values containing a decimal or radix point are rejected.

继续当前流程

下一步常用工具

如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。

Base64 编码解码转换工具 · 本地→Payload Decoder开发辅助 · 本地→Unit Converter单位换算 · 本地→