Binary / Decimal / Hex Converter
Enter a number and select its format. The calculator will convert it to all three number systems automatically.
How Number Base Conversion Works?
Numbers can be represented in different numeral systems. This tool converts your input from the selected source system into binary, decimal, and hexadecimal.
Formula:
Binary → Decimal: parseInt(value, 2) Decimal → Binary: number.toString(2) Hex → Decimal: parseInt(value, 16) Decimal → Hex: number.toString(16)
Binary → Decimal: parseInt(value, 2) Decimal → Binary: number.toString(2) Hex → Decimal: parseInt(value, 16) Decimal → Hex: number.toString(16)
- Enter the value you want to convert.
- Select whether it's in Binary, Decimal, or Hex.
- The calculator converts it to all three number systems.
FAQ
Does this detect input automatically?
No. You choose the source type for accuracy.
Are invalid inputs blocked?
Yes. The calculator validates based on the source you choose.
Does it support lowercase hex?
Yes, both lowercase and uppercase are accepted.