0b
0o
0x
Binary: 1010
Octal: 12
Decimal: 10
Hexadecimal: A
Convert numbers between Binary, Octal, Decimal and Hexadecimal in one place. Type in any base — ToolPit updates the others live, ideal for debugging permissions, color codes and bit math.
How to convert number bases
- Type a number into any of the four bases.
- ToolPit updates the other three immediately.
- Use the copy buttons to grab the value in the base you need.
- Toggle uppercase for hex output if your codebase requires it.
Frequently asked questions
Can it convert negative numbers?+
Yes. ToolPit supports signed decimals; the other bases show their two's-complement representation for negative values.
Why does my color code start with #?+
Hex color codes use base 16 with a leading #. Strip the # before converting — e.g. FF8800 → 16,744,448 in decimal.
What is the largest number it handles?+
Up to 2^53 - 1 (the safe JavaScript integer). For bigger values use BigInt in code.