Hongmu Notes

📐 IEEE 754 hexadecimal conversion

Bidirectional conversion of decimal floating point numbers to 4-byte hex (IEEE 754 single precision).

IEEE 754 hexadecimal conversion

Instructions for use

  • Enter a floating point number in the decimal box, and the hexadecimal box will automatically give the result, and vice versa.
  • Hexadecimal can be written with spaces or continuously. If there are less than 8 digits, zeros will be added automatically.
  • Values are only converted locally and will not be uploaded to the server.

What can this tool do?

  • Convert decimal floating point numbers to 32-bit hexadecimal and vice versa (IEEE 754 single precision)
  • Hexadecimal can be written with spaces or continuously. If there are insufficient digits, zeros will be automatically added.
  • Supports negative numbers and decimals, and the results can be copied with one click
  • The entire process is calculated locally in the browser, and the values are not uploaded.

Actual measurement effect

decimalHexadecimal (single precision)
1.53F C0 00 00
-2.25C0 10 00 00
000 00 00 00

The input boxes on both sides can drive each other: change decimal to hexadecimal, change hexadecimal to get decimal.

Usage tips

  • Hexadecimal is understood as 8 bits (4 bytes), and any shortage will be automatically filled with zeros on the left
  • Values that exceed the single-precision representation range will prompt that conversion cannot be performed. Please confirm your input.
  • This page does not apply when double precision (8 bytes) is required

All keywords and tutorials 12

❓ FAQ

What precision is supported
Convert to and from 32-bit single precision (4 bytes): convert decimal floating point numbers to 8-bit hexadecimal, for example, 1.5 corresponds to 3FC00000.
Do hexadecimal numbers require spaces?
No need. It can be written with spaces or continuously. The tool will remove separators and automatically fill in zeros when there are insufficient digits.
Are both negative numbers and decimals supported?
Support. Signed decimals can be entered directly, for example -2.25 corresponds to C0100000; integers will be automatically completed to 32 digits.
Will the data be uploaded?
No. The conversion is done locally in the browser, and the entered value does not go through the server or be written to local storage.