⌘Technology calculator

Number Base Converter

Convert a decimal number to binary, octal, and hexadecimal.

Enter decimal number and get binary (base 2) and octal (base 8) instantly.

InDecimal numberOutBinary (base 2)OutOctal (base 8)OutHexadecimal (base 16)
1 input3 resultsFree no signupPrivate in your browser

Number Base Converter

Fill in the value and the answer updates as you type.

Live
1 Your numbers
2 Your result

How the Number Base Converter works

Repeatedly divide the number by the target base and read the remainders in reverse. Example: 255 is 11111111 in binary, 377 in octal, and FF in hexadecimal. Only non-negative whole numbers are supported.

Inputs and results

The Number Base Converter takes 1 input and gives 3 results.

What you enter

  • Decimal number — starts at 255.

What you get

  • Binary (base 2)
  • Octal (base 8)
  • Hexadecimal (base 16)

Example: Number Base Converter with the starting values

With decimal number 255, the calculator returns:

Example results
Binary (base 2)11111111
Octal (base 8)377
Hexadecimal (base 16)FF

Change any value above and the results update straight away.

Number Base Converter FAQ

How do I use the Number Base Converter?

Enter decimal number in the fields, then read binary (base 2), octal (base 8) and hexadecimal (base 16) in the result panel. The answer updates as you type, and you can press Calculate or Enter to refresh it. Use “Copy link” to share your exact numbers with someone else.

What does the Number Base Converter calculate?

Convert a decimal number to binary, octal, and hexadecimal. It returns binary (base 2), octal (base 8) and hexadecimal (base 16) from the 1 value you provide.

What values does the Number Base Converter start with?

It opens with decimal number 255 so you can see a working result straight away. Replace them with your own numbers, or press Reset to return to these starting values.

Is the Number Base Converter free and private?

Yes. It is free, needs no account, and runs in your browser, so nothing you type is sent to or stored on our servers. See the Privacy Policy for details.

Can I rely on the Number Base Converter for important decisions?

Treat the result as a well-rounded estimate. Real situations often have details a general calculator cannot know, so confirm important decisions with a qualified professional. See the Disclaimer for more.