IEEE 754 Float and Double Converter

Convert IEEE 754 values between decimal numbers and raw hex bits for float32 and float64/double. Useful for UART/CAN payload decoding, memory dump analysis, and firmware debugging.

Converter

Input

Enter a value.

Result

Decimal
Hex (BE)
Hex (LE)
Bytes (BE)
Bytes (LE)

Sign

Exponent

Fraction

IEEE 754 float and double conversion

IEEE 754 stores floating-point values as sign, exponent, and fraction fields. This converter decodes hex to float, encodes float to hex, and shows the byte order used for the raw bit pattern.

Hex to float and float to hex examples

Use these known IEEE 754 values as quick checks when debugging binary payloads or confirming that a float32 or float64 value was encoded with the expected byte order.

Value IEEE 754 HEX Type Meaning
1.03F800000float32Common normalized value
-1.0BF800000float32Negative normalized value
0.53F000000float32Fractional value
+Infinity7F800000float32Positive infinity
NaN7FC00000float32Quiet NaN example
1.03FF0000000000000float64Double precision 1.0

32-bit float vs 64-bit double

A 32-bit float uses 1 sign bit, 8 exponent bits, and 23 fraction bits. A 64-bit double uses 1 sign bit, 11 exponent bits, and 52 fraction bits, which gives it a wider range and more precision.

Endianness notes

Endianness controls how bytes are ordered in memory or on a wire. The mathematical IEEE 754 bit pattern is the same, but the byte sequence can be big-endian or little-endian depending on the protocol or CPU.

NaN, Infinity and subnormal values

IEEE 754 reserves exponent patterns for special values. An all-ones exponent with zero fraction is Infinity, an all-ones exponent with a nonzero fraction is NaN, and an all-zero exponent can represent zero or subnormal values.

FAQ

What is an IEEE 754 converter?

An IEEE 754 converter translates floating-point numbers between decimal values, raw hexadecimal bit patterns, bytes, and sign, exponent, and fraction fields.

How do I convert hex to float?

Choose float32 or float64, paste the hex bits, select the byte order, and read the decoded decimal value and fields.

What is the difference between float32 and float64?

float32 uses 32 bits and float64 uses 64 bits. float64 has more exponent and fraction bits, so it can represent a wider range with more precision.

Why does endianness matter for IEEE 754 values?

Endianness changes the byte order of the same bit pattern. If the byte order is interpreted incorrectly, the decoded floating-point value can be completely different.

Related tools

Hex to Float · HEX ⇄ ASCII ⇄ Binary · UART Packet Time · CRC Calculator