HomeBinary TranslatorBinary to Hex
Bidirectional · Numbers

Binary to Hex Converter

Convert binary bytes to hexadecimal and back — useful for reading memory dumps, color codes and low-level data.

Each hex digit represents exactly 4 binary digits — one byte is always 2 hex characters.
FAQ

Binary to hex, explained.

Why does each hex digit equal exactly 4 binary digits?
Hexadecimal is base-16, and 2⁴ = 16 — so any 4-bit chunk of binary maps to exactly one of the 16 hex digits (0–9, A–F). That's why a byte (8 bits) is always written as 2 hex characters.
Is this the same as converting a web color code?
Web colors like #39FF8D are exactly this: three hex byte-pairs (red, green, blue). Paste any two of those pairs as binary here to see the underlying bits.
This converts numbers — how do I convert plain text to hex instead?
Use the Hex Translator, which maps each character of text to its hex byte value, not raw binary numbers.
What about converting straight to decimal?
See Binary to Decimal for the same input with base-10 output and a worked example.