Hex to Float Converter

Decode IEEE-754 float values from hex for firmware payloads, memory dumps, and protocol analysis.

Open converter

Use the full IEEE-754 tool for float32/float64, endian switching, and field-level decoding.

Open IEEE-754 Converter

Example hex values

3F800000 → 1.0 (float32)

BF800000 → -1.0 (float32)

3F000000 → 0.5 (float32)

40000000 → 2.0 (float32)

00000000 → 0.0 (float32)

7F800000 → +Infinity (float32)

3FF0000000000000 → 1.0 (float64)

C000000000000000 → -2.0 (float64)

Why endian matters

Byte order changes how hex bytes map to IEEE-754 bits. Always match protocol endianness.

How to convert hex to float

Split the hex into sign (1 bit), exponent (8 bits for float32 / 11 bits for float64), and fraction bits. Decode the exponent with its bias, then combine sign, exponent, and fraction into the decimal value - or just paste the hex into the converter above for an instant result.

How to convert float to hex

Break the decimal value into sign, exponent, and fraction according to IEEE-754, then pack those fields into a 32-bit or 64-bit word and read it out as hex. The converter above does this encoding automatically for any decimal input.

FAQ

How do I convert hex to float?

Paste the hex bits into the converter, choose float32 or float64, and select byte order. The tool decodes the sign, exponent, and fraction fields and shows the decimal value instantly.

How do I convert float to hex?

Enter the decimal number into the converter's decimal input and it encodes the value into IEEE-754 hex bits for float32 or float64, matching the byte order you select.

Why does the same hex give a different value for float32 vs float64?

float32 and float64 use different bit widths for the exponent and fraction fields, so the same raw hex bits are interpreted completely differently depending on which precision you choose.