Binary Converter

Need to convert binary numbers into decimal, hexadecimal, or octal? Our free Binary Converter makes it quick and easy. Enter a binary number, choose the format you want to convert it to, and get the result instantly. You can also convert decimal, hexadecimal, or octal numbers back to binary. It is useful for students, programming, computer science, digital electronics, and everyday number conversions.

Enter a binary, decimal, hexadecimal, or octal number depending on the selected conversion.
Result:

How to Use the Binary Converter

Using the Binary Converter is simple. Enter your number, choose the conversion you need, and the tool will do the rest.

  1. Enter the number in the input box.
  2. Choose the conversion from the Convert dropdown.
  3. Click Convert.
  4. Your converted value will appear in the result box.

For example, enter 1010 and select Binary to Decimal. The result will be 10.

You can also go in the opposite direction. Enter 10, select Decimal to Binary, and the result will be 1010.

What Is Binary?

Binary is a number system based on 2. Unlike the decimal system, which uses ten digits from 0 to 9, binary uses only two digits:

0 and 1

Every binary number is made up of these two digits.

For example:

1010₂ = 10₁₀

The small numbers used above indicate the base of each number. The first number is written in Base 2, while the second is written in Base 10.

How Does Binary Work?

Each position in a binary number represents a power of 2.

For example, the binary number 1011 can be broken down like this:

1 × 8 + 0 × 4 + 1 × 2 + 1 × 1

So:

1011₂ = 11₁₀

The same idea works for longer binary numbers. Each position has a value that doubles as you move from right to left.

Binary Place Values

Here are some common binary place values:

PositionValue
2⁰1
2¹2
2²4
2³8
2⁴16
2⁵32
2⁶64
2⁷128
2⁸256

For example, 11001 can be calculated as:

16 + 8 + 1 = 25

Therefore:

11001₂ = 25₁₀

Binary to Decimal Conversion

To convert binary to decimal, each binary digit is multiplied by its corresponding power of 2.

For example:

1010₂

can be calculated as:

1 × 8 + 0 × 4 + 1 × 2 + 0 × 1

That gives:

10

So:

1010₂ = 10₁₀

The converter performs this calculation automatically.

Decimal to Binary Conversion

Decimal numbers can also be converted into binary.

For example:

10₁₀ = 1010₂

Another example is:

25₁₀ = 11001₂

This is useful when working with computer systems, programming, digital electronics, and computer science exercises.

Binary to Hexadecimal

Hexadecimal is a Base 16 number system that uses:

0–9 and A–F

Binary and hexadecimal work well together because every hexadecimal digit represents four binary digits.

For example:

1111₂ = F₁₆

and:

11111111₂ = FF₁₆

So the converter can quickly change a binary number into its hexadecimal equivalent.

Hexadecimal to Binary

You can also convert hexadecimal numbers back into binary.

For example:

A₁₆ = 1010₂

and:

FF₁₆ = 11111111₂

Each hexadecimal digit can be represented by four binary digits.

Some common examples are:

HexadecimalBinary
00000
10001
50101
A1010
F1111

Binary to Octal

Octal is a Base 8 number system that uses digits from 0 to 7.

Binary can be converted to octal by grouping binary digits into groups of three.

For example:

1010₂

can be grouped as:

001 010

The groups represent:

1 and 2

Therefore:

1010₂ = 12₈

The converter handles this conversion automatically.

Octal to Binary

Octal numbers can also be converted into binary.

For example:

12₈ = 1010₂

Another example:

77₈ = 111111₂

This conversion is sometimes useful when working with older computing systems, programming, or number-system exercises.

Binary Conversion Examples

Here are some common conversions:

BinaryDecimalHexadecimalOctal
0000
1111
10222
101555
101010A12
111115F17
10000161020
11111111255FF377

These are different ways of writing the same numerical values.

Why Is Binary Important?

Binary is especially important in computing because digital systems work with two basic states. Computer data, instructions, and many electronic operations can ultimately be represented using combinations of 0 and 1.

You may come across binary when studying:

  • Computer science
  • Programming
  • Digital electronics
  • Computer hardware
  • Networking
  • Data representation
  • Information technology
  • Mathematics

Binary in Computers

Computers process information using electronic circuits that can represent different states. Binary provides a simple way to represent those states using 0 and 1.

A single binary digit is called a bit.

Eight bits make up a byte.

For example:

01000001

is an 8-bit binary value commonly associated with the letter A in ASCII.

What Is a Bit?

A bit is the smallest basic unit of digital information. It can have one of two values:

0 or 1

Multiple bits can be combined to represent numbers, characters, instructions, and other types of digital data.

For example:

1010

contains four binary digits, or four bits.

Binary and Decimal Difference

The main difference between binary and decimal is the number of symbols used.

Decimal uses:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Binary uses:

0, 1

For example, the decimal number 10 is written as 1010 in binary.

Both represent the same value, but they use different number systems.

Why Use a Binary Converter?

Converting binary numbers manually can become time-consuming when the numbers get longer.

A binary converter gives you a quick way to check conversions between binary, decimal, hexadecimal, and octal.

It can be useful for:

  • Checking homework
  • Learning number systems
  • Programming exercises
  • Computer science
  • Digital electronics
  • Understanding binary data
  • Quickly checking manual calculations

Frequently Asked Questions

What is binary?

Binary is a Base 2 number system that uses only 0 and 1.

What is 10 in binary?

The decimal number 10 is 1010 in binary.

What is 5 in binary?

The decimal number 5 is 101 in binary.

What is 255 in binary?

The decimal number 255 is 11111111 in binary.

What is FF in binary?

The hexadecimal value FF is 11111111 in binary.

Can this converter convert decimal to binary?

Yes. Select Decimal to Binary, enter a decimal whole number, and click Convert.

Can I convert hexadecimal to binary?

Yes. Select Hexadecimal to Binary and enter a hexadecimal value using digits 0–9 and letters A–F.

Can I convert octal to binary?

Yes. Select Octal to Binary and enter a number using digits from 0 to 7.

Does the converter support negative numbers?

Yes. The converter can convert negative whole numbers as well as positive whole numbers.

Can I convert very large binary numbers?

Yes. The converter uses BigInt for its calculations, allowing it to work with very large integer values without the usual JavaScript integer limitation.

Related Number Converters

You may also find these tools useful:

Scroll to Top