Convert between binary, hexadecimal, decimal and octal number systems instantly.
A binary to hex converter is a free developer tool that converts numbers between binary (base 2), hexadecimal (base 16), decimal (base 10) and octal (base 8) number systems instantly. Enter a value in any base and the equivalent values in all other bases appear automatically.
Convert between number bases for low-level programming, bit manipulation and understanding memory addresses.
Convert hexadecimal colour codes to decimal RGB values for CSS and canvas operations.
Decode hexadecimal values in network packets, binary files and cryptographic output.
Practice and understand number system conversions for computer science courses and exams.
Binary is base 2 — numbers are represented using only 0 and 1. Each digit is a 'bit'. Computers use binary because electronic circuits have two states: on (1) and off (0).
Hexadecimal (hex) is base 16, using digits 0–9 and letters A–F. Hex is commonly used in programming as it compactly represents binary: one hex digit = 4 bits.
Multiply each binary digit by 2 raised to its position power and sum the results. Example: 1010 = (1×8) + (0×4) + (1×2) + (0×1) = 10.
Octal is base 8, using digits 0–7. It was historically used in computing but is less common today, though it still appears in Unix file permission codes.