PasteZap
🌐 English
Free · No account

FREE · DEVELOPER TOOLS

IEEE 754 Float Converter.

See how a number is stored as a double, single, half-precision or bfloat16 float: sign, exponent and mantissa bits, the hex pattern and the exact stored value.

Limits & supported formats

Decimal input is first read as a double (about 17 significant digits). Everything is calculated in your browser; nothing you type is uploaded.

Loading the calculator…

Steps to use IEEE 754 Float Converter

Enter a decimal number or a bit pattern in hex and choose the format. The bit fields, the class (normal, subnormal, zero, infinity, NaN) and the rounding error appear instantly.

How IEEE 754 Float Converter processes your input

Rounding follows IEEE 754: round to nearest, ties to even, including subnormals and overflow to infinity. The exact decimal value is computed with big integers from the stored bits.

IEEE 754 Float Converter: worked example

0.1 as a single-precision float is 0x3DCCCCCD, whose exact value is 0.100000001490116119384765625.

See how a number is stored as a float

  1. Enter a decimal number, or a bit pattern in hex.
  2. Choose the format: double (64-bit), single (32-bit), half precision (16-bit) or bfloat16.
  3. Read the sign, exponent and mantissa bits, the hex pattern, the class of the value and the exact value that is really stored, with the rounding error.

Example: 0.1 as a single-precision float is 0x3DCCCCCD, whose exact value is 0.100000001490116119384765625. This is why 0.1 + 0.2 is not exactly 0.3 in most programming languages.

What the converter shows

  • The class tells you whether the value is normal, subnormal, zero, infinity or NaN (not a number).
  • Rounding follows IEEE 754: round to nearest, ties to even, including subnormal values and overflow to infinity.
  • The exact decimal value is computed with big integers from the stored bits, so nothing is hidden by display rounding.
  • Decimal input is first read as a double, which keeps about 17 significant digits. Everything runs in your browser. For integer bit operations, use the bitwise calculator; for checksums of bytes, the CRC-32 calculator.

Questions about IEEE 754 Float Converter

Why is 0.1 not exact in binary?

0.1 has no finite binary fraction, just as 1/3 has no finite decimal one. The float stores the nearest value it can represent.

What is bfloat16?

A 16-bit format with the same exponent range as single precision but fewer mantissa bits, widely used in machine learning.

What are subnormal numbers?

Very small values below the normal range. They lose precision gradually instead of jumping straight to zero.

Is IEEE 754 Float Converter free, and do I need an account?

Yes. This tool is free to use in your browser without an account. Processing takes place on your device.

What are the limits and what should I check?

Decimal input is first read as a double (about 17 significant digits). Everything is calculated in your browser; nothing you type is uploaded. Review the result before using it in your work.

Is my input sent to a server?

Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.