Binary/Decimal/Hex/Octal Converter

Simplify the process of converting numbers between binary, decimal, hexadecimal, and octal formats with our versatile Number Base Converter. This tool allows you to effortlessly convert any number from one base to another. Simply input the number and select the desired base conversion, and our converter will instantly generate the corresponding value in the selected base.

 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2
10
16
8

Related

What is Binary/Decimal/Hex/Octal Converter

Sure! Here's a brief explanation of each number system and how to convert between them:

1. Binary (Base-2):

• Binary is a number system composed of only two digits: 0 and 1.
• Each digit in a binary number represents a power of 2, starting from the rightmost digit.
• Converting from binary to decimal: Multiply each digit by the corresponding power of 2 and sum them up.
• Converting from decimal to binary: Divide the decimal number by 2 repeatedly until the quotient becomes 0, then read the remainders backward.
2. Decimal (Base-10):

• Decimal is the most commonly used number system.
• It uses ten digits: 0 to 9.
• Each digit in a decimal number represents a power of 10, starting from the rightmost digit.
• Converting from decimal to binary: Divide the decimal number by 2 repeatedly until the quotient becomes 0, then read the remainders backward.
• Converting from decimal to hex: Divide the decimal number by 16 repeatedly until the quotient becomes 0, then read the remainders backward.
• Converting from decimal to octal: Divide the decimal number by 8 repeatedly until the quotient becomes 0, then read the remainders backward.

• Hexadecimal is a number system that uses sixteen digits: 0 to 9 and A to F.
• The letters A to F represent values 10 to 15.
• Each digit in a hexadecimal number represents a power of 16, starting from the rightmost digit.
• Converting from hexadecimal to decimal: Multiply each digit by the corresponding power of 16 and sum them up.
• Converting from hexadecimal to binary: Convert each hexadecimal digit to its four-bit binary equivalent.
• Converting from hexadecimal to octal: Convert each hexadecimal digit to its three-bit binary equivalent, then group the binary digits into sets of three and convert them to octal.
4. Octal (Base-8):

• Octal is a number system that uses eight digits: 0 to 7.
• Each digit in an octal number represents a power of 8, starting from the rightmost digit.
• Converting from octal to decimal: Multiply each digit by the corresponding power of 8 and sum them up.
• Converting from octal to binary: Convert each octal digit to its three-bit binary equivalent.

If you want to perform conversions between these number systems, there are many online converters available that can handle binary, decimal, hexadecimal, and octal numbers. Simply search for "binary decimal hex octal converter" to find a suitable tool.

Hex / decimal / octal / binary conversion table

Hex Decimal Octal Binary
0 0 0 0
1 1 1 1
2 2 2 10
3 3 3 11
4 4 4 100
5 5 5 101
6 6 6 110
7 7 7 111
8 8 10 1000
9 9 11 1001
A 10 12 1010
B 11 13 1011
C 12 14 1100
D 13 15 1101
E 14 16 1110
F 15 17 1111
10 16 20 10000
20 32 40 100000
40 64 100 1000000
80 128 200 10000000
100 256 400 100000000
200 512 1000 1000000000
400 1024 2000 10000000000