Convert Decimal (decimal) to Hexadecimal (hex) instantly. Decimal to hexadecimal conversion.
| Unit | Name | Value |
|---|---|---|
| binary | Binary (Base 2) | — |
| hex | Hexadecimal (Base 16) | — |
| octal | Octal (Base 8) | — |
Example: 255 (Decimal) = FF (Hexadecimal)
Method: Repeatedly divide by 16 and record remainders. E.g. 255÷16=15r15(F), 15÷16=0r15(F) → FF₁₆.
Decimal is base-10; 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
| Decimal (base 10) | Hexadecimal (base 16) | Notes |
|---|---|---|
| 0 | 0 | Zero |
| 1 | 1 | One |
| 2 | 2 | Two |
| 3 | 3 | |
| 4 | 4 | Four |
| 5 | 5 | |
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | Eight |
| 9 | 9 | |
| 10 | A | Ten |
| 11 | B | |
| 12 | C | |
| 13 | D | |
| 14 | E | |
| 15 | F | Max nibble (4-bit) |
| 16 | 10 | One hex digit |
| 32 | 20 | 2⁵ |
| 64 | 40 | 2⁶ |
| 128 | 80 | 2⁷ |
| 255 | FF | Max byte |
| 256 | 100 | 2⁸ |
| 512 | 200 | 2⁹ |
| 1024 | 400 | 1 KiB |
| 2048 | 800 | 2 KiB |
| 4096 | 1000 | 4 KiB |
| 32768 | 8000 | 32 KiB |
| 65535 | FFFF | Max 16-bit unsigned |
| 65536 | 10000 | 2¹⁶ |
| 1048576 | 100000 | 1 MiB (2²⁰) |
Divide by 16, note remainder as hex digit (10=A, 11=B... 15=F). Read bottom-to-top.
The max byte value 255 in hex is FF — memorize this pair.
Powers of 16: 1, 16, 256, 4096. Know these for quick mental conversion.
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 decimal (base-10) number system uses ten digits (0–9) and is the universal numeral system for human mathematics, commerce, and everyday life. It is almost certainly based on the ten fingers of the human hand — 'digit' comes from the Latin digitus meaning finger.
The decimal system with positional notation and zero was developed in India (5th–7th century CE) and transmitted to Europe via Arabic mathematicians — which is why it is also called the Hindu-Arabic numeral system. It replaced Roman numerals in European commerce by the 16th century.
Interesting fact: Not all cultures chose base-10. Babylonians used base-60 (preserved in our 60 seconds, 60 minutes, 360 degrees). The Mayans used base-20. The Yuki people of California used base-8, counting the spaces between fingers rather than the fingers themselves.
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).
Decimal to hex is needed when working with colors (#RRGGBB), memory addresses (0x...), and low-level programming. 255=FF, 256=100, 65535=FFFF. The '0x' prefix in code signals hex. Hex makes large binary values human-readable.
Use the converter above for any value. Results are exact — numeral base conversions involve no rounding or approximation.