15 in Hexadecimal
F is the single digit for fifteen.
Hex
Digits 0–9 and letters A–F count powers of sixteen. Decimal 42 becomes 2A in hexadecimal.
Convert numbers42 · Base 16
2A: 2 × 16 + 10 = 42.
Read from left to right. The rightmost place counts ones; each place to its left is worth 16 times as much.
42 ÷ 16 = 2, remainder 10. Start with 2 in the 16s place, then write the remainder in the lower places.
This sign is the digit 2. In the 16s place, it contributes 2 × 16 = 32.
The letter A is the digit 10. At the ones place, it contributes 10.
Check
2 × 16 + 10 = 42
NASA Space Place — Why is sixteen so sweet? · NASA Space Place — How do we talk to machines?
Each tile shows one digit and its value. These are the 16 digits used by this display. Combine them using the rules below.
Read from left to right. A, B, C, D, E, and F stand for 10, 11, 12, 13, 14, and 15. From the right, positions are worth 1, 16, 256, 4,096, and higher powers of sixteen.
F is the single digit for fifteen.
10: one sixteen and zero ones.
2A: 2 × 16 + 10 = 42.
FF: 15 × 16 + 15 = 255.
100: one 256, zero sixteens, and zero ones.
NASA’s example: 9999 in hexadecimal equals decimal 39,321.
Enter a nonnegative whole number in decimal, using at most 100 decimal digits. Output uses uppercase A–F and omits the optional 0x prefix and leading zeros. Signed, fractional, and fixed-width machine encodings are outside this converter.
Hexadecimal makes binary data compact enough to read easily: one hexadecimal digit represents four bits. Modern computing uses the digits 0–9 followed by A–F for the values ten through fifteen. The notation is used internationally to display computer data.
Read from left to right. A, B, C, D, E, and F stand for 10, 11, 12, 13, 14, and 15. From the right, positions are worth 1, 16, 256, 4,096, and higher powers of sixteen.
Enter a nonnegative whole number in decimal, using at most 100 decimal digits. Output uses uppercase A–F and omits the optional 0x prefix and leading zeros. Signed, fractional, and fixed-width machine encodings are outside this converter.
Compare systems