IEEE 754 Float Converter

Decimal to bits

Enter a decimal number and a precision to see its IEEE 754 bit pattern, split into sign, exponent and mantissa.

Bits to decimal

Paste a full bit pattern (32 or 64 characters of 0s and 1s) to reinterpret it as a float.

How it works

Single precision (32-bit) uses 1 sign bit, 8 exponent bits and 23 mantissa bits; double precision (64-bit) uses 1, 11 and 52. Both are encoded here with the platform's own DataView — the same bit-level float representation your browser or Node.js actually uses — rather than hand-rolled sign/exponent/mantissa arithmetic, so every edge case (subnormals, ±0, ±Infinity, NaN) matches the real thing exactly.

Single precision cannot represent every decimal exactly — converting 3.14 to 32 bits and back yields a value extremely close to, but not bit-for-bit identical to, 3.14. That rounding is real and is shown rather than hidden: the "read back as" note under the result is the actual value those bits decode to.