FP16 Hex to Binary Converter
Convert a hexadecimal FP16 bit pattern into exact 16-bit binary and decode the IEEE 754 sign, 5-bit exponent and 10-bit fraction. The tool identifies normal values, subnormals, positive and negative zero, infinity and NaN.
FP16 Hex to Binary Converter
The FP16 Hex to Binary Converter converts a 16-bit hexadecimal floating-point bit pattern into exact binary and interprets the result according to the IEEE 754 binary16 format, commonly called half-precision floating point or FP16.
Unlike an ordinary 16-bit integer conversion, FP16 assigns different roles to the individual bits: one sign bit, five exponent bits and ten stored fraction bits.
What Is FP16?
FP16 is the IEEE 754 binary16 floating-point format. A value occupies 16 bits, or two bytes.
FP16 Bit Layout
| Field | Bits | Purpose |
|---|---|---|
| Sign | 1 | Positive or negative |
| Exponent | 5 | Scale using exponent bias 15 |
| Fraction | 10 | Stored significand fraction |
| Total | 16 | Complete FP16 pattern |
How to Convert FP16 Hex to Binary
Each hexadecimal digit maps directly to four binary bits. Four hexadecimal digits therefore produce exactly sixteen FP16 bits.
How an FP16 Normal Number Is Decoded
For a normal finite number, the exponent field is neither 00000 nor 11111. The exponent bias is 15 and the significand has an implicit leading 1.
Example: 3C00 Hex Equals 1.0
Example: C000 Hex Equals -2
Common FP16 Hex Values
| Hex | Binary | Classification | Value |
|---|---|---|---|
| 0000 | 0000000000000000 | Positive zero | +0 |
| 8000 | 1000000000000000 | Negative zero | -0 |
| 3C00 | 0011110000000000 | Normal | 1 |
| 4000 | 0100000000000000 | Normal | 2 |
| 4200 | 0100001000000000 | Normal | 3 |
| C000 | 1100000000000000 | Normal | -2 |
| 7BFF | 0111101111111111 | Normal | 65504 |
| 0400 | 0000010000000000 | Normal | 0.00006103515625 |
| 0001 | 0000000000000001 | Subnormal | 5.960464477539063e-8 |
| 7C00 | 0111110000000000 | Infinity | +Infinity |
| FC00 | 1111110000000000 | Infinity | -Infinity |
| 7E00 | 0111111000000000 | NaN | NaN |
FP16 Exponent Bias
For normal FP16 values, the five-bit exponent field is stored with a bias of 15.
FP16 Subnormal Numbers
When the exponent bits are all zero and the fraction field is non-zero, the pattern represents a subnormal value. Subnormal numbers do not use the implicit leading 1.
Hex 0001 is the smallest positive non-zero FP16 subnormal value.
Smallest Positive FP16 Subnormal
Smallest Positive Normal FP16 Value
Maximum Finite FP16 Value
7BFF is the largest positive finite FP16 number. FBFF is its negative counterpart.
FP16 Positive and Negative Zero
IEEE 754 floating point includes separate positive-zero and negative-zero bit patterns.
| Hex | Binary | Meaning |
|---|---|---|
| 0000 | 0000000000000000 | +0 |
| 8000 | 1000000000000000 | -0 |
FP16 Infinity
An exponent of 11111 combined with a zero fraction represents infinity. The sign bit determines positive or negative infinity.
FP16 NaN Values
An exponent field of 11111 combined with any non-zero fraction represents NaN, meaning “Not a Number.”
FP16 vs Generic 16-Bit Hex Conversion
Both tools may produce the same sixteen binary digits, but the interpretation is completely different.
| Input | Binary | Generic 16-Bit Meaning | FP16 Meaning |
|---|---|---|---|
| 3C00 | 0011110000000000 | Raw 16-bit pattern | 1.0 |
| C000 | 1100000000000000 | Raw 16-bit pattern | -2.0 |
| 7C00 | 0111110000000000 | Raw 16-bit pattern | +Infinity |
FP16 vs Int16
FP16 and Int16 both occupy exactly sixteen bits, but they interpret those bits using entirely different numerical systems.
Optional 0x Prefix
The converter accepts a programming-style 0x or 0X prefix.
Common Uses for FP16
- Machine-learning model weights and activations.
- GPU and accelerator computation.
- Graphics processing.
- Compact floating-point storage.
- Neural-network inference.
- Binary file inspection.
- Firmware and hardware debugging.
- IEEE 754 education.
- Floating-point reverse engineering.
- Low-level numerical format analysis.
Common FP16 Conversion Mistakes
- Treating the hexadecimal pattern as an ordinary unsigned integer.
- Treating bit 15 as an Int16 sign bit instead of an FP16 sign field.
- Forgetting the exponent bias of 15.
- Using an implicit leading 1 for subnormal numbers.
- Treating exponent 11111 as an ordinary exponent.
- Ignoring positive and negative zero.
- Treating NaN patterns as finite numeric values.
- Confusing FP16 with BF16 even though both use 16 total bits.
FP16 Hex to Binary Converter FAQs
What does FP16 mean?
How many bits are in FP16?
What is 3C00 in FP16?
What is 4000 in FP16?
What is C000 in FP16?
What is the maximum finite FP16 value?
What is the smallest positive normal FP16 value?
What is the smallest positive FP16 value?
What does 7C00 mean in FP16?
What does 7E00 mean in FP16?
Does FP16 have negative zero?
Is FP16 the same as BF16?
Convert FP16 Hex to Binary
Enter a raw FP16 hexadecimal bit pattern from 0000 through FFFF and select Decode FP16. The calculator converts all four hexadecimal digits to exactly sixteen binary bits, separates the sign, exponent and fraction fields, classifies the IEEE 754 value and displays its decoded floating-point meaning.