Skip to content

Menu

IEEE 754 Converter

Visualize IEEE 754 float representation

Runs entirely in your browserEncodingFree, no sign-up
Loading tool

01What is IEEE 754 Converter?

Why does 0.1 + 0.2 not equal 0.3 in JavaScript? Because neither number fits exactly into binary floating point. This converter shows you the actual bits, so the rounding stops being a mystery. You type a value into Decimal Number and choose Single (32-bit) or Double (64-bit). The tool writes the number into a DataView with setFloat32 or setFloat64, then reads the raw bytes back. Those bytes follow the binary formats defined in IEEE 754, the floating-point standard used by JavaScript, C, Java and most CPUs. The bit layout appears with the sign, exponent and mantissa fields coloured separately. Hover any bit to see which field it belongs to and its position. Below that you get the stored value after rounding, the number's class, the big-endian hex bytes, the sign, the biased and actual exponent, the significand and the formula. Here is the classic case. Type 0.1 in single precision and the hex is 3D CC CC CD. The biased exponent is 123, which means 2^-4 after the bias of 127 is removed. The stored value reads 0.10000000149011612, a little more than you asked for. Switch to double and the bytes become 3F B9 99 99 99 99 99 9A. Special encodings follow the standard. Zero and subnormal numbers have no implied leading 1, and they use the fixed minimum exponent: -126 for single, -1022 for double. An all-ones exponent shows as Infinity or NaN rather than a fake formula. Negative zero keeps its sign bit, so -0 gives 80 00 00 00. Input goes through JavaScript's Number parsing. Plain decimals, scientific notation like 1e-45, Infinity, inf and NaN all work. Values too large for the chosen width overflow to Infinity, just as they would in your code. So 1e39 in single precision becomes 7F 80 00 00. A few limits. Because Number() does the parsing, 0x10 is read as 16 and a comma decimal like 1,5 is rejected. The Mantissa row shows only the first ten fraction bits, though the full pattern is in the bit layout. NaN always appears as the default quiet NaN your JavaScript engine produces, so you cannot type a custom NaN payload. Copy puts the whole breakdown on your clipboard as labelled text.

Programmers and computer science students who need to see the exact IEEE 754 bits, bytes and rounding behind a float or double. The tool runs entirely in your browser, so your data never leaves your device.

02How to use IEEE 754 Converter

  1. Choose Single (32-bit) or Double (64-bit).
  2. Type a value into Decimal Number, such as 0.1, -1.5 or 1e-45.
  3. Read the coloured bit layout and hover individual bits to see their field and position.
  4. Check Stored value, Class, Hex, Sign, Exponent, Mantissa and Formula below the bits.
  5. Click Copy to take the breakdown as text, or the reset button to clear the input.

03Worked examples

Input: 0.1 (single)
Result: Hex 3D CC CC CD, exponent 123 (2^-4), stored value 0.10000000149011612
0.1 has no exact binary form, so the stored single-precision value is slightly larger.
Input: 0.1 (double)
Result: Hex 3F B9 99 99 99 99 99 9A, exponent 1019 (2^-4), stored value 0.1
The stored double is still not exactly 0.1. JavaScript just prints the shortest string that maps back to it.
Input: -1.5 (single)
Result: Hex BF C0 00 00, sign 1, exponent 127 (2^0), significand 1.5
Input: 16777217 (single)
Result: Hex 4B 80 00 00, exponent 151 (2^24), stored value 16777216
Single precision has 24 bits of significand, so 2^24 + 1 rounds to 2^24.
Input: 1e-45 (single)
Result: Hex 00 00 00 01, class subnormal, exponent -126, stored value 1.401298464324817e-45
The smallest positive single-precision value. No implied leading 1.
Input: 1e39 (single)
Result: Hex 7F 80 00 00, class infinity
Too large for 32 bits, so it overflows to +Infinity: all exponent bits set, fraction zero.

04Common use cases

  • Showing a teammate why a float equality check like 0.1 + 0.2 === 0.3 fails
  • Checking the four bytes a C struct or binary protocol should hold for a given float
  • Seeing how much a sensor reading changes when it is stored as float32 instead of float64
  • Finding the largest integer where single precision still counts by ones (2^24)
  • Debugging WebGL or shader buffers that pack data as 32-bit floats
  • Working through exponent bias and subnormal questions for a computer architecture course

05Tips

  • Try 16777217 in single precision. It is stored as 16777216, because 24 bits of significand cannot hold 2^24 + 1.
  • Type 1e-45 in single precision to see the smallest positive subnormal, hex 00 00 00 01, with exponent fixed at -126.
  • The hex is big-endian. On x86 and most ARM machines the same bytes sit in memory in reverse order.
  • Compare 0.1 in both widths. Double shows 0.1 as the stored value only because JavaScript prints the shortest string that round-trips.
  • Type -0 to confirm the sign bit is set. The two zeros compare equal in code but have different bit patterns.

06Related concepts

Floating point, IEEE 754, Mantissa, Exponent bias, Precision, Subnormal numbers.

Frequently Asked Questions

What is IEEE 754 Converter?

IEEE 754 Converter is a free, browser-based developer tool on AIDToolStack. Visualize IEEE 754 float representation It requires no installation or sign-up and works entirely in your browser.

Is IEEE 754 Converter free to use?

Yes. No sign-up, no fees and no usage cap.

Does IEEE 754 Converter store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe