跳到主要内容

Number Base Converter

開発者向け

Type a number in any base and see all four at once. Integers larger than 2^53 keep full precision.

正在加载工具…

使い方

3 ステップ
  1. 01

    Type a value and pick the base it is written in (BIN / OCT / DEC / HEX)

  2. 02

    Prefixes like 0x, 0o and 0b are accepted, as are underscores

  3. 03

    Copy any of the four results with one click

よくある質問

2 件の質問
Q1Do large numbers lose precision?

No. Conversion runs on string long division, never through floating point, so 9007199254740993 comes out digit for digit. Tools built on parseInt quietly change the last few digits.

Q2Can I enter negative numbers?

Yes, and you get a minus sign in the result. Note that two's-complement forms like 0xFFFFFFFF depend on the bit width, which the tool will not guess for you.

開発者向け