Convert hex to binary, binary to decimal, and between all number bases instantly. Free online converter — no signup needed.
Convert between Binary, Decimal, Hexadecimal, and Octal
Tip: Binary (base-2) uses 0-1, Octal (base-8) uses 0-7, Decimal (base-10) uses 0-9, and Hexadecimal (base-16) uses 0-9 and A-F.
Choose whether you're starting from Binary, Decimal, Hexadecimal, or Octal. The tool converts to all other bases simultaneously.
Enter your number and all conversions appear instantly. For hex input, use digits 0-9 and letters A-F (case insensitive).
Click Copy next to any result to copy it to your clipboard. All conversions are done locally in your browser — nothing is sent to a server.
Each hex digit maps to exactly 4 binary bits. Memorise this table and you can convert hex to binary by hand.
| Hex | Binary | Decimal | Hex | Binary | Decimal |
|---|---|---|---|---|---|
| 0 | 0000 | 0 | 8 | 1000 | 8 |
| 1 | 0001 | 1 | 9 | 1001 | 9 |
| 2 | 0010 | 2 | A | 1010 | 10 |
| 3 | 0011 | 3 | B | 1011 | 11 |
| 4 | 0100 | 4 | C | 1100 | 12 |
| 5 | 0101 | 5 | D | 1101 | 13 |
| 6 | 0110 | 6 | E | 1110 | 14 |
| 7 | 0111 | 7 | F | 1111 | 15 |
Max byte value — used in CSS colors (#FFFFFF)
Common in hex dumps and memory addresses
Lower nibble mask in bitwise operations
Max signed 8-bit integer
Min negative in two's complement (8-bit)
Alternating bit pattern — used in hardware testing
Hexadecimal (hex) is a base-16 number system that uses the digits 0–9 and letters A–F. It is the most compact way to represent binary data — one hex digit represents exactly 4 bits (a nibble), and two hex digits represent a full byte. This makes hex the standard notation in programming, debugging, and electronics wherever binary data needs to be human-readable.
Binary is base-2 — only 0s and 1s — and is the native language of every digital computer. CPUs process data in binary, and understanding the relationship between binary and hex is fundamental to low-level programming, networking, and security work.
Hex color codes like #FF5733 or #FFFFFF represent RGB values. Each pair of hex digits is one color channel (0–255). #FF = 255 = 11111111 in binary — full brightness.
Debuggers and disassemblers display memory addresses in hex (e.g. 0x7FFD4A30). Hex is far more readable than binary for large addresses.
chmod 755 uses octal notation. Each digit (7=111, 5=101) maps directly to read/write/execute bits — a direct octal-to-binary relationship.
MAC addresses (e.g. 00:1A:2B:3C:4D:5E), IP packets, and HTTP headers are all inspected in hex. Network engineers read hex dumps daily.
Opcodes in x86 assembly are written in hex (e.g. MOV EAX = B8). Reverse engineers convert between hex and binary to understand CPU instructions.
Hash outputs (MD5, SHA-256) are expressed in hex. A SHA-256 hash is 64 hex characters = 256 bits = 32 bytes of binary data.
Common questions about Binary & Hex Converter