进制转换器
在浏览器中处理或呈现进制转换。
使用步骤
如何使用
- Enter a whole number and choose its input and output bases.
- Use a standard prefix when helpful, such as 0b for binary or 0x for hexadecimal.
- Convert, then copy or download the exact result.
Exact values, practical bases
Bases 2 through 36 are supported with digits 0–9 and letters A–Z. Conversion uses arbitrary-precision integers rather than floating point, so large values are not rounded.
Prefixes and signs
Binary, octal, and hexadecimal prefixes 0b, 0o, and 0x are accepted when they match the selected input base. An optional leading plus or minus sign is preserved in the result; separators, decimals, and scientific notation are rejected.
Private browser processing
Parsing, conversion, copying, and download preparation happen locally in your browser. The page does not upload or store your input.
常见问题
你可能还想知道
How large can an integer be?
There is no small fixed digit limit; the browser’s available memory is the practical limit. BigInt keeps conversion exact for very large integers.
Which prefixes are accepted?
Use 0b for base 2, 0o for base 8, and 0x for base 16. The prefix must match the selected input base.
Can I convert decimals or fractions?
No. This tool is for integers only. Decimal points, exponents, and fractional values are rejected.
Does this upload my number?
No. Conversion runs entirely in your browser.