Floating Point Converter
Enter a decimal number and see its IEEE 754 single (32-bit) and double (64-bit) binary floating-point representation with labeled sign, exponent, and mantissa fields.
Try:
Single Precision (32-bit float)
1 sign · 8 exponent · 23 mantissa
Sign bit
Exponent (raw)
Exponent (unbiased)
Mantissa
Hex (big-endian)
Stored value
Double Precision (64-bit double)
1 sign · 11 exponent · 52 mantissa
Sign bit
Exponent (raw)
Exponent (unbiased)
Mantissa
Hex (big-endian)
Stored value
Bit Field Legend
Sign
Exponent
Mantissa
Summary
Enter a decimal number and see its IEEE 754 single (32-bit) and double (64-bit) binary floating-point representation with labeled sign, exponent, and mantissa fields.
How it works
- Enter any decimal number (integer or floating-point, including negatives).
- The tool extracts the sign bit: 0 for positive, 1 for negative.
- The value is normalized into the form 1.mantissa × 2^exponent.
- The biased exponent is stored (bias = 127 for 32-bit, 1023 for 64-bit).
- Mantissa bits are filled by repeatedly multiplying the fractional part by 2.
- Results are shown for both 32-bit and 64-bit IEEE 754 formats side by side.
Use cases
- Debug floating-point precision issues in low-level code.
- Study how IEEE 754 encodes real numbers for computer science courses.
- Verify the bit layout of floats when writing C/C++/Rust bit-manipulation code.
- Understand why 0.1 + 0.2 ≠ 0.3 in most programming languages.
- Cross-check floating-point results when porting code between platforms.
- Learn about subnormal numbers, infinities, and NaN representations.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu