Binary, Hex & Decimal Converter
Convert numbers between binary, octal, decimal and hexadecimal.
- 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)
Decimal
- 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
- Each digit × 10^position, summed: 255
Worked example
| Number | 255 |
| Its base | Decimal (10) |
- 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
- Press Try example or type your own numbers.
- The result, breakdown and working update the moment you type.
- 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.