Binary Converter
Conversion Result:
How to Use the Binary Converter:
- Enter Binary Number:
- In the text box labeled “Enter Binary Number”, type in a valid binary number.
- A binary number consists only of
0s and 1s. For example, you can enter 1101 or 101010.
- Select Conversion Type:
- Below the text input, you’ll see a dropdown labeled “Select Conversion Type”.
- From this dropdown, choose one of the following conversion options:
- Binary to Decimal: Converts the binary number to its decimal equivalent.
- Binary to Hexadecimal: Converts the binary number to a hexadecimal value.
- Binary to Octal: Converts the binary number to its octal representation.
- Convert:
- After entering your binary number and selecting a conversion type, click the “Convert” button.
- The result will be displayed below, under “Conversion Result”.
- The result will show the converted value in the format you selected (decimal, hexadecimal, or octal).
- Clear:
- If you want to clear the input and result to start a new conversion, click the “Clear” button.
- This will reset the input fields and clear the result area.
Example Usage:
Example 1: Convert Binary to Decimal
- Input:
1101
- Conversion Type: Binary to Decimal
- Result:
13 (since 1101 in binary equals 13 in decimal)
Example 2: Convert Binary to Hexadecimal
- Input:
101010
- Conversion Type: Binary to Hexadecimal
- Result:
2A (since 101010 in binary equals 2A in hexadecimal)
Example 3: Convert Binary to Octal
- Input:
110011
- Conversion Type: Binary to Octal
- Result:
63 (since 110011 in binary equals 63 in octal)