Binary, decimal, hex converter
Convert a number between binary, octal, decimal and hexadecimal.
How it works
Each base has its own digits: 0–1 in binary, 0–7 in octal, 0–9 and A–F in hex (A = 10 … F = 15).
Results are for guidance only and do not replace professional advice.
Worked example
With the default values:
- Number255
- Written inDecimal (base 10)
you get:
- Binary1111 1111
- Decimal255
- Hexadecimal0xFF
- Octal377
Frequently asked questions
How does the “Binary, decimal, hex converter” tool work?
Each base has its own digits: 0–1 in binary, 0–7 in octal, 0–9 and A–F in hex (A = 10 … F = 15).
What do I need to enter?
Just fill in: number, written in. The result updates as you type.
Can you give an example?
Number: 255; Written in: Decimal (base 10) → Binary: 1111 1111; Decimal: 255.
Is this calculator free, and is my data private?
Yes. HOD Calc is completely free with no sign-up. The calculation runs in your browser: nothing you type is sent or stored.