Binary, Hex & Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal.

How to use the Binary, Hex & Number Base Converter

  1. Enter or choose the number.
  2. Enter or choose the input base.
  3. Results update instantly as you type — press Calculate any time to refresh.

Formula

Decimal value = Σ digit × base^position.

About this calculator

Convert whole numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Programmers use these bases for memory addresses, colours, permissions and bitmasks. Very large numbers are supported.

Frequently asked questions

What is 255 in hex?

FF — the largest value of one byte.

Can I include prefixes like 0x?

Yes, 0x, 0b and 0o prefixes are ignored automatically.