How to Convert Binary to Hexadecimal
Enter an integer using 0 and 1. The converter reads it in base 2 and writes the same value in base 16. Copy the output or reverse the direction to verify it. Whitespace grouping does not change the value.
How Binary and Hexadecimal Represent Values
In binary, each place is a power of 2; in hex, each place is a power of 16. Starting at the right, multiply each digit by its place value and add the results. Conversion changes notation, not magnitude.
Binary to Hexadecimal Conversion Examples
For example, 101010 in binary equals 2A in hex, and both equal decimal 42. Work through the positional sum on a small example before converting a long identifier. Leading zeros affect display width but not the integer value.
Common Uses and Edge Cases
The tool accepts signed integers and uses exact integer arithmetic. It does not interpret a negative value as a fixed-width two’s-complement bit pattern. Fractions and scientific notation are not supported. Use the text translators for encoded bytes rather than treating a whole message as one number.
More examples and technical details
How to Convert Binary to Hexadecimal
Converting binary to hexadecimal by hand is straightforward once you know the routine. The converter above does it instantly, but working through the steps yourself is the fastest way to understand what is actually happening to the digits.
- Starting from the right, split the binary number into groups of 4 digits. Pad the leftmost group with leading zeros if it is short.
- Write the place values 8, 4, 2, 1 underneath each group.
- In every group, add the place values wherever the bit is 1.
- Convert each group total into a single hexadecimal digit.
- Write the hexadecimal digits in the same left to right order as the groups.
Worked example: 10101010
Result: (10101010)² = (AA)¹⁶
The Binary System
Binary is the base 2 numeral system. It uses only two symbols, 0 and 1, and each digit is called a bit. Every digital circuit ever built relies on it, because a transistor has two reliable states, on and off, which map directly onto 1 and 0. Place values double as you move left: 1, 2, 4, 8, 16, 32 and so on. Eight bits make one byte, which can hold 256 distinct values, enough for every character in the original ASCII set.
Binary uses the digits 0 and 1.
The Hexadecimal System
Hexadecimal is the base 16 system. It uses the digits 0 through 9 and then the letters A through F to stand for the values 10 through 15. Its key property is that one hex digit represents exactly four binary digits, a nibble, so a single byte is always two hex characters. That compactness is why hex shows up everywhere in computing: HTML colour codes such as FFFFFF for white and 000000 for black, memory addresses, MAC addresses, hash digests, and byte level debugging output.
Hexadecimal uses the digits 0 through 9 and A through F.
Binary to Hexadecimal Conversion Examples
Binary to Hexadecimal Conversion Chart
A full reference table for the values 1 to 256. Use it to check a conversion quickly or to look up a common value without typing anything.
| Binary | Hexadecimal |
|---|---|
| 00000001 | 1 |
| 00000010 | 2 |
| 00000011 | 3 |
| 00000100 | 4 |
| 00000101 | 5 |
| 00000110 | 6 |
| 00000111 | 7 |
| 00001000 | 8 |
| 00001001 | 9 |
| 00001010 | A |
| 00001011 | B |
| 00001100 | C |
| 00001101 | D |
| 00001110 | E |
| 00001111 | F |
| 00010000 | 10 |
| 00010001 | 11 |
| 00010010 | 12 |
| 00010011 | 13 |
| 00010100 | 14 |
| 00010101 | 15 |
| 00010110 | 16 |
| 00010111 | 17 |
| 00011000 | 18 |
| 00011001 | 19 |
| 00011010 | 1A |
| 00011011 | 1B |
| 00011100 | 1C |
| 00011101 | 1D |
| 00011110 | 1E |
| 00011111 | 1F |
| 00100000 | 20 |
| 00100001 | 21 |
| 00100010 | 22 |
| 00100011 | 23 |
| 00100100 | 24 |
| 00100101 | 25 |
| 00100110 | 26 |
| 00100111 | 27 |
| 00101000 | 28 |
| 00101001 | 29 |
| 00101010 | 2A |
| 00101011 | 2B |
| 00101100 | 2C |
| 00101101 | 2D |
| 00101110 | 2E |
| 00101111 | 2F |
| 00110000 | 30 |
| 00110001 | 31 |
| 00110010 | 32 |
| 00110011 | 33 |
| 00110100 | 34 |
| 00110101 | 35 |
| 00110110 | 36 |
| 00110111 | 37 |
| 00111000 | 38 |
| 00111001 | 39 |
| 00111010 | 3A |
| 00111011 | 3B |
| 00111100 | 3C |
| 00111101 | 3D |
| 00111110 | 3E |
| 00111111 | 3F |
| 01000000 | 40 |
| Binary | Hexadecimal |
|---|---|
| 01000001 | 41 |
| 01000010 | 42 |
| 01000011 | 43 |
| 01000100 | 44 |
| 01000101 | 45 |
| 01000110 | 46 |
| 01000111 | 47 |
| 01001000 | 48 |
| 01001001 | 49 |
| 01001010 | 4A |
| 01001011 | 4B |
| 01001100 | 4C |
| 01001101 | 4D |
| 01001110 | 4E |
| 01001111 | 4F |
| 01010000 | 50 |
| 01010001 | 51 |
| 01010010 | 52 |
| 01010011 | 53 |
| 01010100 | 54 |
| 01010101 | 55 |
| 01010110 | 56 |
| 01010111 | 57 |
| 01011000 | 58 |
| 01011001 | 59 |
| 01011010 | 5A |
| 01011011 | 5B |
| 01011100 | 5C |
| 01011101 | 5D |
| 01011110 | 5E |
| 01011111 | 5F |
| 01100000 | 60 |
| 01100001 | 61 |
| 01100010 | 62 |
| 01100011 | 63 |
| 01100100 | 64 |
| 01100101 | 65 |
| 01100110 | 66 |
| 01100111 | 67 |
| 01101000 | 68 |
| 01101001 | 69 |
| 01101010 | 6A |
| 01101011 | 6B |
| 01101100 | 6C |
| 01101101 | 6D |
| 01101110 | 6E |
| 01101111 | 6F |
| 01110000 | 70 |
| 01110001 | 71 |
| 01110010 | 72 |
| 01110011 | 73 |
| 01110100 | 74 |
| 01110101 | 75 |
| 01110110 | 76 |
| 01110111 | 77 |
| 01111000 | 78 |
| 01111001 | 79 |
| 01111010 | 7A |
| 01111011 | 7B |
| 01111100 | 7C |
| 01111101 | 7D |
| 01111110 | 7E |
| 01111111 | 7F |
| 10000000 | 80 |
| Binary | Hexadecimal |
|---|---|
| 10000001 | 81 |
| 10000010 | 82 |
| 10000011 | 83 |
| 10000100 | 84 |
| 10000101 | 85 |
| 10000110 | 86 |
| 10000111 | 87 |
| 10001000 | 88 |
| 10001001 | 89 |
| 10001010 | 8A |
| 10001011 | 8B |
| 10001100 | 8C |
| 10001101 | 8D |
| 10001110 | 8E |
| 10001111 | 8F |
| 10010000 | 90 |
| 10010001 | 91 |
| 10010010 | 92 |
| 10010011 | 93 |
| 10010100 | 94 |
| 10010101 | 95 |
| 10010110 | 96 |
| 10010111 | 97 |
| 10011000 | 98 |
| 10011001 | 99 |
| 10011010 | 9A |
| 10011011 | 9B |
| 10011100 | 9C |
| 10011101 | 9D |
| 10011110 | 9E |
| 10011111 | 9F |
| 10100000 | A0 |
| 10100001 | A1 |
| 10100010 | A2 |
| 10100011 | A3 |
| 10100100 | A4 |
| 10100101 | A5 |
| 10100110 | A6 |
| 10100111 | A7 |
| 10101000 | A8 |
| 10101001 | A9 |
| 10101010 | AA |
| 10101011 | AB |
| 10101100 | AC |
| 10101101 | AD |
| 10101110 | AE |
| 10101111 | AF |
| 10110000 | B0 |
| 10110001 | B1 |
| 10110010 | B2 |
| 10110011 | B3 |
| 10110100 | B4 |
| 10110101 | B5 |
| 10110110 | B6 |
| 10110111 | B7 |
| 10111000 | B8 |
| 10111001 | B9 |
| 10111010 | BA |
| 10111011 | BB |
| 10111100 | BC |
| 10111101 | BD |
| 10111110 | BE |
| 10111111 | BF |
| 11000000 | C0 |
| Binary | Hexadecimal |
|---|---|
| 11000001 | C1 |
| 11000010 | C2 |
| 11000011 | C3 |
| 11000100 | C4 |
| 11000101 | C5 |
| 11000110 | C6 |
| 11000111 | C7 |
| 11001000 | C8 |
| 11001001 | C9 |
| 11001010 | CA |
| 11001011 | CB |
| 11001100 | CC |
| 11001101 | CD |
| 11001110 | CE |
| 11001111 | CF |
| 11010000 | D0 |
| 11010001 | D1 |
| 11010010 | D2 |
| 11010011 | D3 |
| 11010100 | D4 |
| 11010101 | D5 |
| 11010110 | D6 |
| 11010111 | D7 |
| 11011000 | D8 |
| 11011001 | D9 |
| 11011010 | DA |
| 11011011 | DB |
| 11011100 | DC |
| 11011101 | DD |
| 11011110 | DE |
| 11011111 | DF |
| 11100000 | E0 |
| 11100001 | E1 |
| 11100010 | E2 |
| 11100011 | E3 |
| 11100100 | E4 |
| 11100101 | E5 |
| 11100110 | E6 |
| 11100111 | E7 |
| 11101000 | E8 |
| 11101001 | E9 |
| 11101010 | EA |
| 11101011 | EB |
| 11101100 | EC |
| 11101101 | ED |
| 11101110 | EE |
| 11101111 | EF |
| 11110000 | F0 |
| 11110001 | F1 |
| 11110010 | F2 |
| 11110011 | F3 |
| 11110100 | F4 |
| 11110101 | F5 |
| 11110110 | F6 |
| 11110111 | F7 |
| 11111000 | F8 |
| 11111001 | F9 |
| 11111010 | FA |
| 11111011 | FB |
| 11111100 | FC |
| 11111101 | FD |
| 11111110 | FE |
| 11111111 | FF |
| 100000000 | 100 |
Need a different pair of bases? Browse every number converter tool including binary, octal, decimal, and hexadecimal in both directions.
Frequently asked questions
How do I convert binary to hexadecimal?
Read the input as base 2 and express its value in base 16; enter it here for an automatic result.
Can this converter handle negative or large values?
Yes. Signed and large integers use exact BigInt arithmetic, subject to practical browser resource limits. Fractions are not supported.
How can I verify the hexadecimal result?
Convert hex back to binary and compare the numeric value; leading zeros may be normalized.
Is the conversion processed in my browser?
Yes. No number is sent to a conversion server.