Number Base Converter

Convert a decimal number to binary, octal and hexadecimal.

Result

Binary (base 2)

11111111

Octal (base 8)

377

Hexadecimal (base 16)

FF

How it works

Repeatedly divide by the target base

Computers store numbers in binary; programmers also use octal and hexadecimal as shorter forms. Enter a decimal number to see all three.

Advertisement

Frequently asked questions

What is 255 in hexadecimal?

255 in decimal is FF in hexadecimal and 11111111 in binary.

Why use hexadecimal?

It is compact: one hex digit equals exactly four binary digits, handy for colors and memory addresses.

Advertisement

Related calculators