Web4College

Hex to Float Converter (IEEE 754)

Paste a hex value from a debugger, protocol capture, or register map, and decode it into its IEEE 754 floating-point decimal. Each bit field β€” sign, biased exponent, mantissa β€” is shown step-by-step so you can trace the conversion and catch byte-order problems before they reach production.

3.1415927410125732
Sign (1 bit)0 = positive, 1 = negative
0
Exponent (8 bits)
10000000
Mantissa (23 bits)
10010010000111111011011

Step-by-Step Conversion

  1. 1

    Turn hex into bits

    Each hex digit expands to exactly 4 binary bits.

    40490FDB β†’ 01000000010010010000111111011011

  2. 2

    Split the bits into 3 parts

    Bit 31 = sign, bits 30–23 = exponent (8 bits), bits 22–0 = mantissa (23 bits).

    Sign: 0

    Exponent: 10000000

    Mantissa: 10010010000111111011011

  3. 3

    Find the exponent (the power of 2)

    Convert exponent bits to decimal, then subtract the bias of 127.

    10000000 (binary) = 128 (decimal); 128 βˆ’ 127 = 1

    Actual exponent: 1

  4. 4

    Find the mantissa value (the 1.xxx part)

    Add the implicit leading 1 to the stored fraction bits.

    Mantissa value: 1.5707963705

  5. 5

    Put it together for the final number

    Combine all three fields: (βˆ’1)^sign Γ— 1.mantissa Γ— 2^(exponent βˆ’ 127).

    (βˆ’1)^0 Γ— 1.5707963705 Γ— 2^1

    = 3.1415927410125732

Visual Breakdown

See how each IEEE 754 field decodes step-by-step β€” from raw hex input through binary field extraction to the final decimal result.

40490FDB β†’ sign 0, exponent 10000000, fraction 10010010000111111011011 β†’ 3.1415927410125732

Common 32-bit values

HexFloatWhat It Represents
3F8000001.0Positive one
3F0000000.5One half
40490FDBβ‰ˆ 3.1415927Nearest 32-bit value to Ο€
42F6E979β‰ˆ 123.456Exponent 6, mantissa β‰ˆ 1.929
3DCCCCCDβ‰ˆ 0.1Nearest 32-bit approximation of 0.1
7F800000+InfinityPositive infinity
7FC00000NaNQuiet NaN (canonical)

Key Terms

TermLabelDetails
IEEE 754StandardFloating-point bit-layout standard

The specification that defines how sign, exponent, and mantissa bits are packed into 32-bit (single) and 64-bit (double) words, ensuring the same hex string decodes to the same float across every CPU, GPU, and language runtime β€” as long as byte order matches.

Biased ExponentExponent fieldStored exponent + 127
Mantissa (Significand)Fraction bitsThe precision-carrying bits
EndiannessByte orderWhich byte comes first in memory
Subnormal (Denormalized)Gradual underflowTiny values near zero without implicit 1
ULP (Unit in the Last Place)Precision gapSmallest representable step at a given magnitude
Quiet vs. Signaling NaNNaN variantsPropagates silently vs. raises exception

Frequently Asked Questions