21 in Hexadecimal — 21₁₀ = 0x15

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 → HEX

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÷ 16QuotientRemainderHex digit ↑
21÷ 16155
1÷ 16011

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

0x
1

= 1

× 16¹

5

= 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

NEARBY VALUES

Created with❤️byeaglecalculator.com

HOW TO CONVERT

  1. 1

    Hexadecimal (base 16) uses digits 0-9 and letters A-F, where A=10, B=11, C=12, D=13, E=14, F=15.

  2. 2

    21 / 16 = 1 remainder 5 (5) 1 / 16 = 0 remainder 1 (1) Read hex digits bottom to top: 15

  3. 3

    The result is 15, written as 0x15 in programming notation or 15₁₆ in mathematical notation.

  4. 4

    Verify: 1 x 16^1 + 5 x 16^0 = 21. ✓

WORKED EXAMPLE

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

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE NUMBER THEORY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.