Binary to Hexadecimal Converter
Type a binary number of any length to see it in hexadecimal, with every step of the working.
Binary to hexadecimal table
| Binary | Hexadecimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 111 | 7 |
| 1000 | 8 |
| 1010 | A |
| 1111 | F |
| 10000 | 10 |
| 100000 | 20 |
| 1000000 | 40 |
| 1100100 | 64 |
| 1111111 | 7F |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 1111101000 | 3E8 |
| 10000000000 | 400 |
Worked examples
10 in hexadecimal
1010 (binary)
A (hexadecimal)
Decimal value 10.
255 in hexadecimal
11111111 (binary)
FF (hexadecimal)
Decimal value 255.
2026 in hexadecimal
11111101010 (binary)
7EA (hexadecimal)
Decimal value 2026.
About Binary to Hexadecimal Converter
This converter turns binary numbers into hexadecimal and shows how. To convert binary to hexadecimal, split the bits into groups of 4 from the right and replace each group with one hexadecimal digit. For example, 1010 in binary is A in hexadecimal, and 11111101010 is 7EA.
Binary is the language of computers: every value in memory is a pattern of bits, each one a 0 or a 1. Hexadecimal packs four bits into each digit, which is why programmers use it for colours, memory addresses and raw data: it is far shorter than binary and converts to it directly. Numbers of any length are converted exactly, because the tool works with whole numbers digit by digit instead of rounding.
How to use Binary to Hexadecimal Converter
- Type or paste a binary number into the first box. Spaces, underscores and prefixes such as 0x are ignored.
- Read the hexadecimal result straight away in the second box, grouped for easier reading if you leave the box ticked.
- Look at the working table to see each step of the method.
- Copy the result, or use the swap button to convert hexadecimal back to binary.
Common uses
- Reading or setting bit flags and permissions in software
- Working out subnet masks and IP address ranges
- Computer science and GCSE or A level homework
- Checking how a number is stored in memory
Frequently asked questions
How do I convert binary to hexadecimal by hand?
Split the bits into groups of 4 from the right and replace each group with one hexadecimal digit. The working table on this page shows exactly these steps for the number you type.
What is 11111111 in hexadecimal?
11111111 in binary is FF in hexadecimal. In decimal it is 255, the largest number that fits in one byte.
What is 11111101010 in hexadecimal?
11111101010 in binary is 7EA in hexadecimal.
Can it convert very large numbers?
Yes. Whole numbers with up to 4,096 digits are converted exactly. The working table shows the first rows when a number is very long.
Does it handle fractions or negative numbers?
Negative whole numbers are converted with their minus sign kept. Fractions are not supported, because many fractions that end in one base repeat for ever in another.