Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Free and private, right in your browser.

Type a number in binary, octal, decimal, or hex and see it instantly converted to the others, handy for reading memory addresses, debugging bitwise code, or converting color values and IP octets without doing the math by hand.

How to use it

  1. Enter a number in any base (binary, octal, decimal, or hex)
  2. The tool detects or lets you set the input base
  3. Read the converted values in the other bases instantly

Frequently asked questions

How do I convert a hex color code like #FF5733 to decimal?
Drop the # and enter FF5733 as hex input (or convert each pair separately, e.g. FF, 57, 33) to get the RGB decimal values 255, 87, 51.
Does it handle negative numbers or two's complement?
Yes for negative decimal input, the tool shows the two's complement binary representation, which is what you'll see in most programming languages and debuggers.
What's the largest number it supports before losing precision?
Standard conversions are safe up to 53-bit integers (JavaScript's safe integer limit, about 9 quadrillion); beyond that, very large hex or binary values may round.