跳到主要内容

Base Converter

2100
0
250
0
225
0
212
1
26
0
23
0
21
1
20
1

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.

  1. Enter a number in any base's input field
  2. The other three bases update automatically
  3. 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

  1. Parse the input number in its original base
  2. Convert it to decimal (if it isn't already)
  3. 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