MakeMyCalc
Conversion

Hex / Decimal / Binary Converter

Type a number in any base — binary, octal, decimal, or hexadecimal — and get the other three representations instantly.


Converted

Binary (base 2)

101010

grouped: 00101010

Octal (base 8)

52

Decimal (base 10)source

42

Hexadecimal (base 16)

2A

How to use the number base converter

Computers read binary, network engineers read hex, humans read decimal. Moving between them by hand is error-prone once numbers get beyond a byte or two — this converter does it for you, with strict validation so you always see where an invalid digit sits.

  1. Pick the source base of the number you have: binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16).
  2. Type your number into the matching input. Case does not matter for hex — both FF and ff work.
  3. Read the other three bases as they update. Negative numbers are supported; fractional numbers are not (computer arithmetic for fractions belongs in its own tool).
  4. The binary output also shows a byte-grouped view for readability when the value fits in 32 bits.

Quick reference

  • Binary uses digits 0–1.
  • Octal uses 0–7. It compresses three binary digits into one.
  • Decimal is the everyday 0–9.
  • Hex uses 0–9 and A–F, compressing four binary digits per hex digit. That is why MAC addresses, colors, and memory addresses use it — a 32-bit address fits in 8 hex characters.

Related tools — try a neighbour