Skip to content

🔢 Number Base Converter

Instantly convert binary, octal, decimal, and hexadecimal numbers. Supports 0x / 0b / 0o prefixes, bit-length, and signed two's complement.

✅ 100% free, no signup, runs entirely in your browser

Bit representation

8-bit signed
8-bit unsigned
16-bit signed
16-bit unsigned
32-bit signed
32-bit unsigned

🔗 Related Tools

📖 How to Use

  1. 1
    Enter a number in any field
    Enter a number in any of the DEC, HEX, BIN, or OCT fields. Prefixes 0x, 0b, and 0o are supported.
  2. 2
    See instant conversion in other bases
    The other three representations update automatically as you type.
  3. 3
    Check bit representation
    The bit panel below shows 8/16/32-bit signed and unsigned twos-complement representations.

❓ FAQ

Can I enter negative numbers?
Yes. Enter a negative number in the decimal field with a minus sign. The bit panel shows the twos-complement representation.
Can it handle very large numbers?
Yes — the tool uses JavaScript BigInt, so it handles arbitrary-precision integers.
Can I use separators like commas or underscores?
Yes. Commas, underscores, and spaces are automatically stripped before parsing.