Convert Binary (binary) to Hexadecimal (hex) instantly. Binary to hexadecimal conversion.
| Unit | Name | Value |
|---|---|---|
| decimal | Decimal (Base 10) | — |
| hex | Hexadecimal (Base 16) | — |
| octal | Octal (Base 8) | — |
Example: 11111111 (Binary) = FF (Hexadecimal)
Method: Group binary digits in sets of 4 from the right. Each group converts to one hex digit. E.g. 1010₂ = A₁₆.
Binary is base-2; Hexadecimal is base-16. Use the converter above for any value instantly.
Common values from 0 to 1,048,576 — powers of 2 and standard computing values
| Binary (base 2) | Hexadecimal (base 16) | Notes |
|---|---|---|
| 0 | 0 | Zero |
| 1 | 1 | One |
| 10 | 2 | Two |
| 11 | 3 | |
| 100 | 4 | Four |
| 101 | 5 | |
| 110 | 6 | |
| 111 | 7 | |
| 1000 | 8 | Eight |
| 1001 | 9 | |
| 1010 | A | Ten |
| 1011 | B | |
| 1100 | C | |
| 1101 | D | |
| 1110 | E | |
| 1111 | F | Max nibble (4-bit) |
| 10000 | 10 | One hex digit |
| 100000 | 20 | 2⁵ |
| 1000000 | 40 | 2⁶ |
| 10000000 | 80 | 2⁷ |
| 11111111 | FF | Max byte |
| 100000000 | 100 | 2⁸ |
| 1000000000 | 200 | 2⁹ |
| 10000000000 | 400 | 1 KiB |
| 100000000000 | 800 | 2 KiB |
| 1000000000000 | 1000 | 4 KiB |
| 1000000000000000 | 8000 | 32 KiB |
| 1111111111111111 | FFFF | Max 16-bit unsigned |
| 10000000000000000 | 10000 | 2¹⁶ |
| 100000000000000000000 | 100000 | 1 MiB (2²⁰) |
Pad left with zeros to make groups of 4. 101₂ → 0101₂ = 5₁₆.
16 combinations map to 0–9 and A–F. Know these by heart.
1 byte = 8 bits = 2 hex digits. Always exact — no rounding.
Converts between binary, hex, and decimal daily for debugging, bitmasking, and memory address analysis.
Learns number base conversions as a fundamental concept in computer architecture and digital logic courses.
Works with IP addresses, subnet masks, and MAC addresses in binary, decimal, and hex representations.
Programs microcontrollers using binary bit patterns and hex register values for hardware configuration.
Designs logic circuits using binary truth tables and checks hex values on oscilloscopes and analyzers.
Reads hex dumps, analyzes binary data, and decodes encoded strings during reverse engineering and forensics.
The binary (base-2) number system uses only two digits: 0 and 1. Every number is represented as a sum of powers of 2. It is the fundamental language of all digital computers, since electronic circuits naturally represent two states — on/off, high/low voltage, magnetized/demagnetized.
Binary was formalized by Gottfried Wilhelm Leibniz in 1703, inspired by the ancient Chinese I Ching hexagrams. The modern use of binary in computing traces to Claude Shannon's 1937 master's thesis, which showed that Boolean algebra could be implemented with electrical circuits — the foundation of all digital logic.
Interesting fact: A single binary digit is a 'bit'; 8 bits = 1 byte. A standard 64-bit computer processor works with numbers up to 2⁶⁴ − 1 ≈ 18.4 quintillion simultaneously. The DNA genetic code, though not binary, encodes information in base-4 (ACGT) — life's own digital system.
The hexadecimal (base-16) system uses digits 0–9 and letters A–F (where A=10, B=11, C=12, D=13, E=14, F=15). Hexadecimal became the standard shorthand for binary in computing because exactly 4 bits = 1 hex digit, making byte values compact: 1 byte (8 bits) = 2 hex digits (00–FF).
Hex is ubiquitous in programming: memory addresses (0x7FFF0000), color codes (#FF5733), MAC addresses (AA:BB:CC:DD:EE:FF), IPv6 addresses, and error codes all use hex. The prefix '0x' in code signifies hexadecimal. Every programmer encounters hex daily.
Interesting fact: HTML/CSS color #FFFFFF (white) = RGB(255, 255, 255) = binary 11111111 11111111 11111111. The hex system makes this immediately readable — each pair of hex digits is one color channel. Web color #FF0000 is pure red: maximum red (FF=255), zero green (00), zero blue (00).
Binary to hexadecimal is used constantly in programming: memory dumps, color codes, and network addresses all use hex. The key rule: group 4 binary bits → 1 hex digit. 8 bits → 2 hex digits (one byte). 11111111₂ = FF₁₆ — the most important pair to memorize.
Use the converter above for any value. Results are exact — numeral base conversions involve no rounding or approximation.