ToolPit
← All Tools

Number Base Converter

Convert between Binary, Decimal, Hexadecimal and Octal.

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

  1. Type a number into any of the four bases.
  2. ToolPit updates the other three immediately.
  3. Use the copy buttons to grab the value in the base you need.
  4. 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.