Decimal to Hex — Convert Instantly or Do It By Hand
- Browser tool converts decimal to hex instantly as you type
- Manual method: divide by 16 repeatedly, read remainders bottom-to-top
- Remainders 10-15 become letters A through F
- Verify any manual result in the tool instantly
Table of Contents
To convert decimal to hex, use the free converter below — type any decimal number and the hexadecimal result appears immediately. To do it without a calculator, use the division-by-16 method: divide the decimal number by 16, record the remainder, then divide the quotient again. Repeat until the quotient is zero. Reading the remainders from bottom to top gives the hex value.
How to Convert Decimal to Hex Manually
The division-by-16 method works for any decimal integer:
Example: Convert decimal 1023 to hex
- 1023 ÷ 16 = 63 remainder 15 → F
- 63 ÷ 16 = 3 remainder 15 → F
- 3 ÷ 16 = 0 remainder 3 → 3
- Read remainders bottom-to-top: 3FF
Remember that remainders above 9 map to letters: 10=A, 11=B, 12=C, 13=D, 14=E, 15=F.
| Remainder | Hex Digit |
|---|---|
| 0–9 | 0–9 |
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
Worked Examples
Walk through these examples, then verify each in the tool:
Example 1: Decimal 255 to hex
- 255 ÷ 16 = 15 remainder 15 → F
- 15 ÷ 16 = 0 remainder 15 → F
- Result: FF
Example 2: Decimal 4096 to hex
- 4096 ÷ 16 = 256 remainder 0 → 0
- 256 ÷ 16 = 16 remainder 0 → 0
- 16 ÷ 16 = 1 remainder 0 → 0
- 1 ÷ 16 = 0 remainder 1 → 1
- Result: 1000
Example 3: Decimal 65535 to hex
- 65535 ÷ 16 = 4095 remainder 15 → F
- 4095 ÷ 16 = 255 remainder 15 → F
- 255 ÷ 16 = 15 remainder 15 → F
- 15 ÷ 16 = 0 remainder 15 → F
- Result: FFFF
Quick Reference — Common Decimal to Hex Values
| Decimal | Hex | Notes |
|---|---|---|
| 10 | A | Single hex digit |
| 15 | F | Max single digit |
| 16 | 10 | First 2-digit hex |
| 32 | 20 | Space in ASCII |
| 127 | 7F | Max signed byte |
| 255 | FF | Max byte value |
| 256 | 100 | First 3-digit hex |
| 1024 | 400 | 1 KB |
| 4096 | 1000 | 4 KB page |
| 65535 | FFFF | Max 16-bit value |
Converting Hex to Decimal — The Reverse
To convert hex back to decimal, multiply each digit by its place value (powers of 16) and sum:
Example: Hex 2AF to decimal
- F (15) × 16⁰ = 15 × 1 = 15
- A (10) × 16¹ = 10 × 16 = 160
- 2 × 16² = 2 × 256 = 512
- Sum: 15 + 160 + 512 = 687
For any value, the Number Base Converter handles both directions — select Decimal to convert to hex, select Hexadecimal to convert back.
Convert Decimal to Hex Instantly
Type any decimal number and get the hexadecimal result — plus binary and octal in the same view, no calculator needed.
Convert Numbers FreeFrequently Asked Questions
What is decimal 255 in hexadecimal?
Decimal 255 = hex FF. This is the maximum value that fits in one byte (8 bits). It appears constantly in programming — as the max byte value, in color codes (255 = full intensity in RGB), and as a bitmask.
How do you convert a decimal fraction to hex?
This tool converts integers only. For fractional decimal-to-hex conversion (like converting 0.5 to hex), the manual method involves multiplying the fractional part by 16 repeatedly. Most practical programming scenarios only require integer conversion.
What is the hex value of 10 in decimal?
Decimal 10 = hex A. Single-digit hex values only go up to F (15 in decimal). Decimal 16 = hex 10 — the first two-digit hex value, which can be confusing at first glance.

