21 in hexadecimal is 0x15. 21 requires 2 hex digits: 15. The page shows the step-by-step division method, a hex digit table, and conversions to binary (10101), octal (25), and a greyscale colour swatch....
21 IN HEXADECIMAL (BASE 16)
15
21₁₀ = 0x15 = 15₁₆
Hex (base 16)
15
With prefix
0x15
Binary (base 2)
10101
Octal (base 8)
25
Single digit hex?
No
Hex digit type
Numeral
Even or odd?
Odd
Divisible by 16?
No
STEP-BY-STEP — REPEATED DIVISION BY 16
| Dividend | ÷ 16 | Quotient | Remainder | Hex digit ↑ |
|---|---|---|---|---|
| 21 | ÷ 16 | 1 | 5 | 5 |
| 1 | ÷ 16 | 0 | 1 | 1 |
Read hex digits bottom to top: 15 = 15
FUN FACT
21 in hex is 15. 21 = 1×16 + 5 = 15₁₆. 21 decimal uses the digits 1 and 5 in hex.
HEX REPRESENTATION
= 1
× 16¹
= 5
× 16⁰
CSS COLOUR (greyscale #151515)
#151515
rgb(21, 21, 21) — dark grey
BASE CONVERSIONS
Decimal (base 10)
Standard counting system
21
Hex (base 16)
Colours, memory addresses, encoding
0x15
Binary (base 2)
Digital computing
10101
Octal (base 8)
Unix file permissions
25
DECIMAL 0–30 IN HEXADECIMAL
Hexadecimal (base 16) uses digits 0-9 and letters A-F, where A=10, B=11, C=12, D=13, E=14, F=15.
21 / 16 = 1 remainder 5 (5) 1 / 16 = 0 remainder 1 (1) Read hex digits bottom to top: 15
The result is 15, written as 0x15 in programming notation or 15₁₆ in mathematical notation.
Verify: 1 x 16^1 + 5 x 16^0 = 21. ✓
21 to hex: 21 / 16 = 1 remainder 5 (5) 1 / 16 = 0 remainder 1 (1) Read hex digits bottom to top: 15 21₁₀ = 0x15 = 15₁₆ Binary: 10101 Octal: 25
Hexadecimal Converter
Calculate instantly →
2 in Binary
Calculate instantly →
4 in Binary
Calculate instantly →
Random Number Generator
Calculate instantly →
8 in Binary
Calculate instantly →
16 in Binary
Calculate instantly →
10 in Binary
Calculate instantly →
1 in Binary
Calculate instantly →
255 in Binary
Calculate instantly →
3 in Binary
Calculate instantly →
6 in Binary
Calculate instantly →
9 in Binary
Calculate instantly →
11 in Binary
Calculate instantly →
14 in Binary
Calculate instantly →
128 in Binary
Calculate instantly →
0 in Binary
Calculate instantly →
5 in Binary
Calculate instantly →
7 in Binary
Calculate instantly →
12 in Binary
Calculate instantly →
Binary Converter
Calculate instantly →
Last updated: April 29, 2026 · Verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.