Hex to Binary Converter

Convert hex to binary, binary to decimal, and between all number bases instantly. Free online converter — no signup needed.

Binary & Hex Converter

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.

How to Convert Hex to Binary

1. Select your input base

Choose whether you're starting from Binary, Decimal, Hexadecimal, or Octal. The tool converts to all other bases simultaneously.

2. Type your number

Enter your number and all conversions appear instantly. For hex input, use digits 0-9 and letters A-F (case insensitive).

3. Copy the result

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.

Hex to Binary Quick Reference Table

Each hex digit maps to exactly 4 binary bits. Memorise this table and you can convert hex to binary by hand.

HexBinaryDecimalHexBinaryDecimal
000000810008
100011910019
200102A101010
300113B101111
401004C110012
501015D110113
601106E111014
701117F111115

Common Conversion Examples

HEX: FFBIN: 11111111DEC: 255

Max byte value — used in CSS colors (#FFFFFF)

HEX: 1ABIN: 00011010DEC: 26

Common in hex dumps and memory addresses

HEX: 0FBIN: 00001111DEC: 15

Lower nibble mask in bitwise operations

HEX: 7FBIN: 01111111DEC: 127

Max signed 8-bit integer

HEX: 80BIN: 10000000DEC: 128

Min negative in two's complement (8-bit)

HEX: A5BIN: 10100101DEC: 165

Alternating bit pattern — used in hardware testing

What is Hexadecimal and When Do You Use It?

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.

CSS & Web Colors

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.

Memory Addresses

Debuggers and disassemblers display memory addresses in hex (e.g. 0x7FFD4A30). Hex is far more readable than binary for large addresses.

Unix File Permissions

chmod 755 uses octal notation. Each digit (7=111, 5=101) maps directly to read/write/execute bits — a direct octal-to-binary relationship.

Networking & Protocols

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.

Assembly & Machine Code

Opcodes in x86 assembly are written in hex (e.g. MOV EAX = B8). Reverse engineers convert between hex and binary to understand CPU instructions.

Cryptography & Hashing

Hash outputs (MD5, SHA-256) are expressed in hex. A SHA-256 hash is 64 hex characters = 256 bits = 32 bytes of binary data.

Frequently Asked Questions

Common questions about Binary & Hex Converter