No Login Data Private Local Save

Hex to Float Converter - Online IEEE 754 Decoder

11
0
0
0

Hex to Float Converter

IEEE 754 Single & Double Precision Decoder with Endianness Control

0x
Enter 16 hex characters (0-9, A-F, a-f)
3.141592653589793
0x400921FB54442D18
Normalized
Bit Layout Visualization
S
Exponent
Mantissa
Sign: 0 Exponent: 11 bits Mantissa: 52 bits
IEEE 754 Breakdown
Sign Bit 0 (positive)
Exponent (raw) 0x400
Exponent (biased) 1024
Bias 1023
Actual Exponent 1
Mantissa (raw) 0x00921FB54442D18
Implicit Leading Bit 1 (normalized)
Classification Normalized Number
Computed Values
Decimal Value 3.141592653589793
Scientific Notation 3.141592653589793 × 10⁰
Binary (approx) 1.10010010000111111011011...
Previous Float
Next Float
ULP Gap
Quick Reference Values (click to load)
π single: 0x40490FDB 1.0: 0x3F800000 2.0: 0x40000000 0.5: 0x3F000000 -1.0: 0xBF800000 +∞: 0x7F800000 -∞: 0xFF800000 NaN: 0x7FC00000 +0: 0x00000000 -0: 0x80000000 π double: 0x400921FB... 1.0: 0x3FF00000... 2.0: 0x40000000... +∞: 0x7FF00000... NaN: 0x7FF80000...
Navigate Adjacent Floats
Step ±1 ULP
Frequently Asked Questions
What is IEEE 754?
IEEE 754 is the international standard for floating-point arithmetic used in virtually all modern computers and programming languages. It defines how floating-point numbers are stored and calculated, ensuring consistent behavior across different systems. The standard specifies formats for single precision (32-bit), double precision (64-bit), and extended precision, along with rules for rounding, special values (NaN, Infinity), and exception handling.
What's the difference between single and double precision?
Single precision (32-bit): 1 sign bit + 8 exponent bits + 23 mantissa bits. It provides about 7 significant decimal digits of precision and can represent values from roughly ±1.18×10⁻³⁸ to ±3.4×10³⁸.

Double precision (64-bit): 1 sign bit + 11 exponent bits + 52 mantissa bits. It provides about 15-17 significant decimal digits and ranges from ±2.23×10⁻³⁰⁸ to ±1.80×10³⁰⁸. Double is the default in JavaScript, Python, and most scientific computing.
What is endianness and why does it matter?
Endianness refers to the byte order in memory. Big Endian stores the most significant byte at the lowest memory address (used in network protocols and some embedded systems). Little Endian stores the least significant byte first (used by x86/x64 processors). When reading raw hex dumps from a debugger or binary file, knowing the endianness is crucial for correct interpretation of floating-point values.
What are NaN and Infinity in IEEE 754?
NaN (Not a Number) represents undefined results like 0/0 or √(-1). It has all exponent bits set to 1 and a non-zero mantissa. There are two types: quiet NaN (most significant mantissa bit = 1) and signaling NaN (MSB of mantissa = 0).

Infinity represents overflow (e.g., 1/0). It has all exponent bits = 1 and mantissa = 0. The sign bit determines positive or negative infinity.
Why can't floating-point represent 0.1 exactly?
Many decimal fractions (like 0.1) become repeating binary fractions, similar to how 1/3 = 0.333... in decimal. In binary, 0.1₁₀ = 0.0001100110011...₂ which is infinite. IEEE 754 must truncate this to fit the available mantissa bits, causing a tiny rounding error. This is why 0.1 + 0.2 !== 0.3 in most programming languages.
What are subnormal (denormalized) numbers?
Subnormal numbers fill the gap between zero and the smallest normalized number. When the exponent bits are all zero and the mantissa is non-zero, the implicit leading bit becomes 0 (instead of 1), and the actual exponent is fixed at 1−bias (e.g., −126 for single, −1022 for double). This allows gradual underflow, representing extremely small values at reduced precision, avoiding a sudden jump to zero.
What is the exponent bias?
The bias is a fixed offset added to the actual exponent to allow storing both positive and negative exponents as unsigned integers. For single precision, the bias is 127; for double precision, it's 1023. An exponent field of 0 represents the minimum (actual exponent = 1−bias for subnormals, or zero values), while the maximum (all 1s) is reserved for Infinity and NaN.