| Binary | Octal | Decimal | Hex |
|---|
Convert a binary number to decimal, hexadecimal, and octal in one step. All four representations stay visible, making it easy to compare bit values, debug masks, inspect protocol fields, or check homework.
Binary uses only 0 and 1. Each position to the left of the radix point is a power of two, while positions to the right represent one-half, one-quarter, one-eighth, and smaller powers. The converter preserves that exact relationship for both integers and fractions.
Enter a positive or negative number with an optional radix point. Spaces and underscores may be used as visual separators, and the usual 0b prefix is accepted. Every output is calculated from an exact fraction, so long integers do not lose digits and terminating fractional values are not rounded through JavaScript floating-point numbers.
Use the four results above for numeric conversion. When the binary digits represent encoded character bytes rather than a number, open Binary to Text. To create binary character bytes from ordinary text, use Text to Binary.
Related number tools: Binary Converter · Hex Converter · Custom Base Converter · Binary to Hex · Hex to Decimal