DEVELOPER TOOLS / CONVERTERS

HEX ↔ Float / Double

Processed locally in your browser

Interpret IEEE 754 bytes, inspect the bits, and convert decimal values back to hex.

Input

01 / CONFIGURE

Enter 4 bytes for Float or 8 for Double. Spaces and 0x prefixes are accepted.

Result

How to use this tool

Quick start

  1. Choose the conversion direction and 32-bit Float or 64-bit Double.
  2. Select the byte order used by your device or file.
  3. Enter hexadecimal bytes or a decimal number. Results update as you type.

A practical example

41 C8 00 00 is 25.0 as a big-endian Float. The same value in little-endian order is 00 00 C8 41.

This tool reinterprets IEEE 754 bit patterns; it does not treat the hex input as an integer to cast. The bit layout is always shown most significant bit first.

Float has 23 fraction bits; Double has 52. Decimal input may be rounded to the nearest representable value. NaN, Infinity, -Infinity and signed zero are supported. Byte order reverses all bytes; device-specific word swapping is not applied.
DataView and byte order ↗