Skip to main content

IEEE 754 Float Converter

Convert between decimal and IEEE 754 bit patterns at 32-bit single and 64-bit double precision. Accepts decimal, 0x hex or raw binary, then splits the pattern into sign, exponent and mantissa with colour coding, alongside hex, the exact decimal value and the neighbouring representable values. Handles ±0, infinity, NaN and subnormals.

Runs in your browser Real-time
Input

The format is detected automatically: 0x prefix means hex, a 0/1 string of exactly the bit width means binary, everything else is decimal. Decimal input also shows the neighbouring representable values, which is where precision limits become visible.

Layout
1
Sign bit

One bit: 0 is positive, 1 is negative. That is why +0 and -0 are different bit patterns yet compare equal.

2
Exponent

8 bits for single, 11 for double, stored with a bias (127 / 1023). All zeros means subnormal or zero; all ones means infinity or NaN.

3
Mantissa

23 or 52 bits holding the fraction, with an implicit leading 1 (except for subnormals). This is why 0.1 is inexact: in binary it is a repeating fraction.

Bit pattern
Sign Exponent Mantissa

About this tool

Convert between decimal and IEEE 754 bit patterns at 32-bit single and 64-bit double precision. Accepts decimal, 0x hex or raw binary, then splits the pattern into sign, exponent and mantissa with colour coding, alongside hex, the exact decimal value and the neighbouring representable values. Handles ±0, infinity, NaN and subnormals.

How to use

  1. Fill in the input box above, or click "Fill sample" to try it instantly
  2. Adjust the options as needed — results update as you type
  3. Click "Run" to get the result, then copy or export it in one click

Tips

  • Runs entirely in your browser — your data never leaves the device
  • Completely free, no registration, no usage limits
  • Most tools compute in real time as you type