Hex Converter
Convert between decimal and hexadecimal instantly. Essential for web designers, programmers, and anyone working with colors, memory addresses, or machine code.
255 (decimal) = FF (hex)
What Is Hexadecimal?
Hexadecimal (hex, base-16) is a positional numeral system with 16 distinct symbols: the digits 0–9 and the letters A–F, where A represents 10, B represents 11, up to F representing 15. Each hex digit maps exactly to 4 binary bits, making it a compact and human-readable shorthand for binary data.
Hex is ubiquitous in computing: CSS color codes (#FF5733), IPv6 addresses, Unicode code points, memory dump outputs, hash values, and assembly language all rely on hexadecimal notation. Mastering hex-to-decimal conversion is an essential skill for front-end developers, system programmers, and cybersecurity professionals.
Hex Reference Table (0–15)
| Decimal | Hex | Binary |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| 2 | 2 | 0010 |
| 3 | 3 | 0011 |
| 4 | 4 | 0100 |
| 5 | 5 | 0101 |
| 6 | 6 | 0110 |
| 7 | 7 | 0111 |
| 8 | 8 | 1000 |
| 9 | 9 | 1001 |
| 10 | A | 1010 |
| 11 | B | 1011 |
| 12 | C | 1100 |
| 13 | D | 1101 |
| 14 | E | 1110 |
| 15 | F | 1111 |
Frequently Asked Questions
What is hexadecimal?▼
Hexadecimal (base-16) uses 16 symbols: 0–9 and A–F. Each hex digit represents exactly 4 binary bits, making it a compact shorthand widely used in computing, web colors, memory addresses, and machine code.
How do you convert decimal to hexadecimal?▼
Divide the decimal number by 16 repeatedly, recording the remainder. Convert remainders 10–15 to A–F, then read from bottom to top. Example: 255 decimal = FF hex.
Why is hexadecimal used in web colors?▼
Web colors use #RRGGBB format where each pair is a hex value for red, green, and blue (0–255 each). Two hex digits cover the full 0–255 range concisely.
What is the difference between hex and binary?▼
Binary (base-2) uses only 0 and 1 — the actual language of digital circuits. Hex (base-16) is a more compact representation: one hex digit equals four binary digits, so it is easier for humans to read and write.
