
An IEEE 754 converter shows how a computer actually stores a floating-point number. Enter a decimal value like 3.14159 and the tool encodes it into the exact bit pattern defined by the IEEE 754 standard, splitting the result into its three parts: the sign bit, the exponent field, and the mantissa (also called the fraction or significand). It works in both directions, so you can also paste a 32-bit or 64-bit binary string, or its hexadecimal equivalent, and decode it back into the number it represents.
Floating-point numbers are not stored the way we write them. A value is kept as a sign, a power of two, and a fractional significand, following the scheme in IEEE 754-2019. That design is why 0.1 plus 0.2 does not equal exactly 0.3, why some decimals round when stored, and why very large and very small magnitudes are possible in the same 32 or 64 bits. Seeing the sign, exponent, and mantissa laid out makes these behaviours concrete instead of mysterious, which is invaluable when you are debugging a numeric bug, writing a serializer, studying computer architecture, or comparing single and double precision.
This tool runs 100% in your browser and uses the same ArrayBuffer and DataView primitives the JavaScript engine uses internally, so the bit patterns match what your CPU would produce, down to the rounding. Single precision (binary32) uses 1 sign bit, 8 exponent bits, and 23 mantissa bits; double precision (binary64) uses 1 sign bit, 11 exponent bits, and 52 mantissa bits. The special cases are handled too: positive and negative zero, subnormal numbers, infinity, and NaN are each identified. Nothing you enter is uploaded, and the tool keeps working offline once loaded.
Choose single (32-bit, binary32) or double (64-bit, binary64). Double is the default for most languages, so pick it unless you are targeting float specifically.
Select Decimal to encode a number, or Hex or Binary to decode an existing bit pattern back into a value. Special inputs like Infinity, -Infinity, and NaN are accepted in decimal mode.
Type a decimal number such as 3.14159 or 6.022e23, or paste the exact number of hex digits or bits the precision requires. The conversion updates as soon as you convert.
See the sign, exponent, and mantissa split out, along with the full bits, hex, biased and unbiased exponent, and the exact stored value. Copy any field you need.
Convert to binary32 (1 + 8 + 23 bits) or binary64 (1 + 11 + 52 bits), the two formats used by float and double in nearly every language.
Encode a decimal number into bits, or decode a binary or hexadecimal bit pattern back into the value it represents, without switching tools.
The result is broken into its three fields, with both the biased exponent stored in the bits and the unbiased power-of-two it actually applies.
Positive and negative zero, subnormal numbers, infinity, and NaN are each identified so you can see exactly which case a bit pattern falls into.
Full ASCII and extended Latin-1 table with decimal, hex, octal, binary, HTML entity, and character name for every code 0–255, plus a text-to-ASCII-code encoder.
Add, subtract, multiply, and divide binary numbers, or run AND, OR, XOR, NOT, and bit shifts, with every result shown in binary, octal, decimal, and hex. 100% client-side.
Translate text to binary and binary to text, plus hexadecimal, decimal, and octal, with full UTF-8 support
Translate text to Morse code and Morse code to text using the International (ITU) standard, with audio playback and full punctuation support
0 comments
No comments yet. Be the first to share your thoughts!