Skip to content
Technology

Binary, Decimal and Hex Converter

Convert a whole number between decimal, binary, hexadecimal and octal formats, useful for programming and networking tasks.

Your results

Selected baseHexadecimal: FF
Binary11111111
Hexadecimal0xFF
Octal377

Calculation breakdown

Binary
decimal converted to base 2
Hexadecimal
decimal converted to base 16
Octal
decimal converted to base 8

Worked example

The decimal number 255 is 11111111 in binary, FF in hexadecimal, and 377 in octal.

Assumptions

  • Accepts non-negative whole numbers only.
  • Accurate for values up to 2^53 − 1, the safe integer limit in JavaScript.

How this calculator works

Enter a decimal number and choose an output base to instantly see it in binary, hexadecimal and octal — a quick reference tool for programming, networking and electronics work.

Frequently asked questions

What is hexadecimal used for?

Hexadecimal (base 16) is commonly used to represent memory addresses, colour codes and MAC/IP-related values compactly.

Can I convert negative numbers?

This converter works with non-negative whole numbers; negative and fractional values are outside its scope.

What is the largest number supported?

Values are handled as standard JavaScript numbers, safely accurate up to 2^53 − 1.

Related calculators

← Back to all calculators