Base Converter - Convert between Binary, Decimal, Hexadecimal, and Custom Base

Input Value:

Source Base:

Target Base:

Converted Values

Binary:

Decimal:

Hexadecimal:

Custom Base (16):

A base converter, also known as a radix converter, is a tool that allows you to convert numbers from one base to another. The most common bases are binary (base 2), decimal (base 10), and hexadecimal (base 16). However, base converters can also be used to convert to and from other bases, such as octal (base 8), duodecimal (base 12), and vigesimal (base 20).

Base conversion is useful in a variety of fields, including computer science, mathematics, and engineering. For example, binary numbers are used to represent data in computers, while hexadecimal numbers are often used in electronic circuits and computer programming.

How to convert between binary, decimal, and hexadecimal

To use a base converter, simply enter the number that you want to convert in the input field and select the from and to bases. The base converter will then calculate the converted number and display it in the output field.

Examples of base conversion

Binary to decimal: Convert the binary number 101101 to decimal

101101 = 1 * 2^5 + 0 * 2^4 + 1 * 2^3 + 1 * 2^2 + 0 * 2^1 + 1 * 2^0 = 45

Decimal to hexadecimal: Convert the decimal number 100 to hexadecimal.

100 / 16 = 6 R 4
6 / 16 = 0 R 6

Therefore, the hexadecimal equivalent of 100 is 64.

Hexadecimal to binary: Convert the hexadecimal number 64 to binary.

6 * 16^1 + 4 * 16^0 = 96 + 4 = 100

Therefore, the binary equivalent of 64 is 100000.

Base converters are a valuable tool for anyone who works with numbers. If you need to convert numbers between different number systems, or if you want to learn more about number systems, then I encourage you to use a base converter.