Binary, Hex & Decimal Converter

Convert numbers between binary, octal, decimal and hexadecimal.

Updated December 2026

  • Instant results
  • Step-by-step working
  • Private: runs in your browser

Enter your numbers

Updates as you type

Result

Based on: Number 255 · Its base Decimal (10)

Decimal255
Binary
1111 1111
Octal
377
Hexadecimal
FF
Bits needed
8

Results are estimates for general information. Check important figures before relying on them. Report a calculation error

Binary, Hex & Decimal Converter by CalculatorPulse ↗

Formula and how it works

value = Σ digit × baseᵖᵒˢⁱᵗⁱᵒⁿ

Assumptions

  • Whole numbers only.

Your working

  1. Each digit × 10^position, summed: 255

Worked example

Number255
Its baseDecimal (10)
  1. Each digit × 10^position, summed: 255

Decimal: 255

Press Try example to load these numbers.

About this calculator

Type a whole number and choose its base. You get the value in binary, octal, decimal and hexadecimal at once. Works with very large numbers.

How to use it

  1. Press Try example or type your own numbers.
  2. The result, breakdown and working update the moment you type.
  3. Save it to favorites, copy it, print it, or share a link with your numbers.

Understanding your result

Each hex digit equals four binary digits; each octal digit equals three.

Common mistakes to avoid

  • Using digits not allowed in the base, such as 2 in binary.

Frequently asked questions

Why do programmers use hexadecimal?

Each hex digit is exactly four binary digits, so long binary values become short and readable.

What is 255 in binary?

11111111.

What is the decimal for number 255?

255. Working: Each digit × 10^position, summed: 255.