Hex to Binary Byte Converter
Convert one hexadecimal byte into its exact 8-bit binary representation. Enter two hexadecimal digits such as FF, A5, 2C or 0x80 and see the high nibble, low nibble, decimal value and all eight bits.
Hex to Binary Byte Converter
The Hex to Binary Byte Converter converts exactly one hexadecimal byte into its complete eight-bit binary representation. Enter two hexadecimal digits from 00 through FF and the calculator returns all eight binary bits while preserving any leading zeros required by the byte.
Because one hexadecimal digit represents four bits, two hexadecimal digits represent exactly eight bits. That makes a two-digit hexadecimal value a natural compact notation for one byte.
How to Convert a Hex Byte to Binary
A hexadecimal byte consists of two hexadecimal digits. Convert each digit to its four-bit binary nibble and then place the two nibbles together.
Unlike an ordinary binary integer conversion, no leading zeros should be removed because this calculator represents a fixed-width eight-bit byte.
Why Two Hex Digits Equal One Byte
One hexadecimal digit has sixteen possible values. Four binary bits also have sixteen possible combinations, so one hexadecimal digit represents four bits.
This relationship is why bytes are commonly displayed using pairs of hexadecimal digits in programming, memory dumps, networking and debugging tools.
High Nibble and Low Nibble of a Hex Byte
An eight-bit byte can be divided into two four-bit halves. The first half is called the high nibble, and the second half is called the low nibble.
The high nibble contains bits 7 through 4, while the low nibble contains bits 3 through 0.
Hex Byte to Binary Table
The following examples show common hexadecimal byte values and their exact eight-bit binary equivalents.
| Hex Byte | High Nibble | Low Nibble | 8-Bit Binary | Unsigned Decimal |
|---|---|---|---|---|
| 00 | 0000 | 0000 | 00000000 | 0 |
| 01 | 0000 | 0001 | 00000001 | 1 |
| 0F | 0000 | 1111 | 00001111 | 15 |
| 10 | 0001 | 0000 | 00010000 | 16 |
| 20 | 0010 | 0000 | 00100000 | 32 |
| 2C | 0010 | 1100 | 00101100 | 44 |
| 3F | 0011 | 1111 | 00111111 | 63 |
| 40 | 0100 | 0000 | 01000000 | 64 |
| 7F | 0111 | 1111 | 01111111 | 127 |
| 80 | 1000 | 0000 | 10000000 | 128 |
| A5 | 1010 | 0101 | 10100101 | 165 |
| AA | 1010 | 1010 | 10101010 | 170 |
| F0 | 1111 | 0000 | 11110000 | 240 |
| FF | 1111 | 1111 | 11111111 | 255 |
Example: Convert 2C Hex to an 8-Bit Binary Byte
The hexadecimal byte 2C consists of the high nibble 2 and the low nibble C.
The byte also represents unsigned decimal 44.
Example: Convert 0F Hex to Binary
The leading hexadecimal zero is important because the input represents an entire byte rather than an unrestricted mathematical integer.
Although the mathematical binary integer could be written as 1111, the correct eight-bit byte representation is 00001111.
Example: Convert FF Hex to Binary
FF is the largest possible unsigned hexadecimal byte. Each F maps to four binary ones.
Why Leading Zeros Matter in an 8-Bit Byte
An eight-bit byte must contain eight bit positions even when the numerical value could be represented with fewer binary digits.
The leading zeros indicate that bits 7 through 1 are clear. Removing them may preserve the mathematical value, but it no longer visibly represents the complete byte width.
8-Bit Byte Positions and Values
Each bit in a byte has a power-of-two positional weight. From the most significant bit to the least significant bit, those weights are 128 through 1.
Adding the weights of all positions containing a 1 gives the byte’s unsigned decimal value.
Example: Understanding A5 as Eight Bits
This confirms that hexadecimal A5, binary 10100101 and unsigned decimal 165 all represent the same numerical byte value.
Unsigned Hex Byte Range
An eight-bit byte contains 256 possible bit patterns. When interpreted as an unsigned value, the range is 0 through 255.
This calculator displays the unsigned decimal equivalent as a convenient reference. It does not reinterpret the byte as a signed two’s-complement integer.
Hex Byte vs Signed 8-Bit Integer
The same eight physical bits can have different numerical meanings depending on how a system interprets them. This calculator focuses on the raw byte and its unsigned value.
Hex Byte vs Hex Nibble
A nibble converter handles one hexadecimal digit and returns four bits. A byte converter handles two hexadecimal digits and returns eight bits.
| Unit | Hex Digits | Binary Bits | Example |
|---|---|---|---|
| Nibble | 1 | 4 | A → 1010 |
| Byte | 2 | 8 | A5 → 10100101 |
Where Hexadecimal Bytes Are Used
Two-digit hexadecimal notation is one of the most common ways to display raw byte values because it is much shorter than writing all eight binary bits.
- Memory dumps and hex editors.
- Binary file analysis.
- Network packet inspection.
- Firmware and embedded systems.
- Machine-code and opcode inspection.
- Hardware register values.
- Byte arrays in programming.
- Character encodings.
- Bit masks and flags.
- Debugging low-level data.
Common Hex Byte Conversion Mistakes
- Removing leading zeros from an eight-bit result.
- Entering only one hexadecimal digit when a full byte is required.
- Entering more than two hexadecimal digits.
- Reversing the high and low nibbles.
- Reversing the individual bits inside each nibble.
- Confusing the raw byte with a signed integer interpretation.
- Treating the 0x notation prefix as part of the byte.
- Using hexadecimal characters outside 0–9 and A–F.
Hex to Binary Byte Converter FAQs
How many hex digits are in one byte?
How many binary bits are in a byte?
What is A5 hex in binary?
What is FF hex as an 8-bit binary byte?
What is 01 hex in 8-bit binary?
What is 0F hex in binary?
What is 80 hex in binary?
What is the high nibble of a byte?
What is the low nibble of a byte?
Does this converter accept a 0x prefix?
Does the converter accept lowercase hex digits?
Is FF equal to -1 or 255?
Convert a Hex Byte to Exactly 8 Binary Bits
Enter two hexadecimal digits above and select Convert Byte. The calculator preserves the complete eight-bit width, separates the high and low nibbles, displays each bit from bit 7 through bit 0, and provides the corresponding unsigned decimal byte value.