Binary to Decimal to Hexadecimal Converter

Can convert negatives and fractional parts too.

numbers/images/bin-dec-hex.js

Instructions

Just type in any box, and the conversion is done "live".

Accuracy is "unlimited" between binary and hexadecimal (and vice versa), and is up to 20 digits for decimals.

Binary Format

We now allow for several formats of binary data:

Number   As a standard number (default):   101.01 
0001   Leading/trailing zeros, to match hexadecimal:   0101.0100
signed 8-bit   twos-complement signed 8-bit   11111111
signed 16-bit   twos-complement signed 16-bit   (16 bits)
signed 32-bit   twos-complement signed 32-bit   (32 bits)

Other Bases

You can convert to other bases (such as base-3, base-4, octal and more) using Base Conversion