IEEE 754 Float to Hex

See how a decimal number is stored as a 32-bit or 64-bit float.

IEEE 754 Float to Hex

What it does

Shows how a decimal number is stored as a 32-bit or 64-bit floating point value (IEEE 754). Useful when reading binary data or wondering why 0.1 is not exact. You see the hex bytes, the sign, exponent and fraction bits, and the value actually stored.

How to use the IEEE 754 Float to Hex

  1. Choose the Precision: 32-bit float or 64-bit double.
  2. Type a decimal number to see its bits and hex, or a 0x… hex value to decode it.
  3. Compare the stored value with your number to see the rounding error.

Related tools

More in Numbers

IEEE 754 Float to Hex questions

How do I use the IEEE 754 Float to Hex?

Enter the values in the fields of the tool and read the result below them.