Skip to content
Calculator Tools
Developer Tools

Decimal Converter

Convert a decimal number to binary, hexadecimal, octal or any base from 2 to 36.

Enter values

Results update as you type.

Result

In base 16

FF

Binary
11111111
Octal
377
Hexadecimal
FF
Decimal
255
Digits in the target base
2
Bits required
8

About the Decimal Converter

Convert a decimal number to binary, hexadecimal, octal or any base from 2 to 36.

Also known as: decimal to binary, decimal to hex, base converter, number base converter.

How to use this calculator

  1. Enter decimal number, convert to base.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

Repeatedly divide by the target base and read the remainders in reverse

Worked example

Using the values pre-filled in the calculator above:

  • Decimal number: 255
  • Convert to base = 16

the calculator returns:

  • In base 16: FF
  • Binary: 11111111
  • Octal: 377
  • Hexadecimal: FF