Binary to Hexadecimal Converter
Convert binary (base 2) to hexadecimal (base 16) with 4-bit nibble grouping steps.
How to use it
- Enter binary bits to convert to hexadecimal.
Examples
| 11111111 | FF |
| 10101011 | AB |
Hexadecimal (base 16) exists mainly because it's a clean shorthand for binary: since 16 is 2⁴, every group of exactly 4 binary bits maps to exactly one hex digit (0-9, then A-F for 10-15). That makes hex the standard way programmers write memory addresses, color codes and byte values without wading through long strings of 1s and 0s.
To convert, split the binary number into groups of 4 bits starting from the right (pad the leftmost group with zeros if needed), then convert each group to its hex digit.
Worked example
11111111 splits into 1111 and 1111. Each nibble of four 1s equals 15, which is F in hex, giving FF — the highest single-byte hex value, and the reason 'FF' appears throughout CSS colors (#FFFFFF is white) and memory dumps.
10101011 splits into 1010 (=10=A) and 1011 (=11=B), giving AB.
Where this comes up
- Reading MAC addresses, memory addresses and hex color codes, all written in hexadecimal
- Debugging low-level code, firmware or network protocols where values are dumped in hex
- Computer science coursework covering number-base conversion
Last updated 18 August 2026