Convert binary (base 2) numbers to hexadecimal (base 16) instantly, with digit validation, a worked place-value example and a reference table.
Step 1 — value: expand the binary number by place values to get its decimal value. Step 2 — re-base: divide that value by 16 again and again, collecting remainders, and read them in reverse.
Step 1: 1×25 = 32 + 0×24 = 0 + 1×23 = 8 + 1×22 = 4 + 0×21 = 0 + 1×20 = 1 → total 45 (decimal). 101101 is the 6-bit pattern for 45.
Step 2: 45 written in base 16 is 2D.
Result: 101101 (binary) = 2D (hexadecimal).
Binary is the language of computers: every file, photo and program is stored as binary digits (bits). Eight bits make a byte.
Hexadecimal groups binary digits in fours and is everywhere in computing: colours (#FF5733), MAC addresses, memory addresses and hex editors.
| Binary | Hexadecimal |
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 8 |
| 1001 | 9 |
| 1010 | A |
| 1011 | B |
| 1100 | C |
| 1101 | D |
| 1110 | E |
| 1111 | F |
| 10000 | 10 |
| 100000 | 20 |
| 1000000 | 40 |
| 1100100 | 64 |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 1111101000 | 3E8 |
First find the decimal value using place values (each digit is worth its face value times the base raised to its position), then divide by 16 repeatedly, reading the remainders upwards. The worked example on this page shows both steps for 101101.
101101 in binary is 2D in hexadecimal. 101101 is the 6-bit pattern for 45.
Only these 2: 01. Any other digit makes the number invalid in this base, and the converter above will tell you.
Binary is the language of computers: every file, photo and program is stored as binary digits (bits). Eight bits make a byte.
Use the hexadecimal to binary converter — the process is the same, in the other direction.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.