IEEE-754 Float32 Converter
This page converts between:
Decimal
(your input as JavaScript
Number
)
IEEE-754 single precision
(
float32
) bit pattern
Hex
(8 hex digits)
It also shows rounding error:
input (double)
−
stored float32 value
.
Decimal input
Decimal → Float32
0.1
-13.625
NaN
Infinity
Hex (8 digits, optional 0x)
Hex → Bits
Copy Hex
Bits (32 chars, optional spaces)
Bits → Value
Copy Bits
Interactive bit editor (Float32)
sign (1)
exponent (8)
fraction (23)
Click a bit to toggle. Updates decimal + hex.
Decoded fields
Sign bit
—
Exponent bits
—
Exponent (biased)
—
Exponent (unbiased)
—
Fraction bits
—
Classification
—
Float32 value
—
Input (double)
—
Rounding error
—
Hex (32-bit)
—
Unsigned int
—
Error shown is
(double input) - (float32 stored)
. For NaN, error is not meaningful.