Binary, Hex, Octal and Decimal Converter

Convert numbers between binary, octal, decimal and hexadecimal, even very large ones, with the number of bits. Enter your values; the result updates as you type, with the method shown below.

About this calculator

Numbers can be written in different bases: decimal (10), binary (2), octal (8) and hexadecimal (16). This converter turns a number from one base into all the others.

Type the number and choose its base.

When to use it

  • Programming and debugging.
  • Networking (IP and subnet masks).
  • Computer science lessons.
  • Reading colour codes like #FF8800.

How to read the result

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

Hexadecimal uses digits 0–9 and letters A–F for 10–15.

Mistakes to avoid

  • Typing a digit that does not exist in the base (2 in binary).
  • Confusing the letter O with zero.
  • Forgetting that hex letters are not case-sensitive.

Formula

Value = Σ digit × base^position

Worked example

255 = 1111 1111 in binary = 377 in octal = FF in hexadecimal.

Frequently asked questions

Why hexadecimal?

One hex digit is 4 bits, so it is a compact way to write binary.

Are big numbers supported?

Yes, without limit.

What is binary?

Base 2, using only 0 and 1.

Why hexadecimal?

Each hex digit is exactly 4 bits.

Does it handle fractions?

No, whole numbers only.

Related calculators

Results are estimates for information only. Check important figures with a professional.