Number Base Converter
This online tool converts numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) in real time.
- Enter a number in any base's input field
- The other three bases update automatically
- Switch to a different input field at any time — everything stays in sync
The tool also displays step-by-step conversion details, helping you understand the underlying math.
What Is Base Conversion?
Base conversion is a fundamental concept in computer science and mathematics — transforming a number from one numeral system to another. The four most common systems are:
- Binary — the native language of computers
- Octal and hexadecimal — compact shorthands for binary
- Decimal — the everyday number system
How Conversion Works
- Parse the input number in its original base
- Convert it to decimal (if it isn't already)
- Convert from decimal to the target base
For the integer part, this uses repeated division:
- Divide by the target base
- Record the remainder at each step
- Read the remainders in reverse order to get the result