Convert base-16 (hex) numbers to standard base-10 decimal instantly.
Hexadecimal is a base-16 number system using digits 0–9 and letters A–F (where A=10, B=11, C=12, D=13, E=14, F=15). Each digit's position represents a power of 16, starting from 16⁰ on the right. To convert, multiply every digit by 16 raised to its position index, then sum the results. For example, hex 1A3 equals 1×16² + 10×16¹ + 3×16⁰ = 256 + 160 + 3 = 419 in decimal.
Write each hex digit and assign it a position from right to left, starting at 0. Convert letters A–F to 10–15, then multiply each digit by 16 raised to its position. Add all results together. For example, 2F = 2×16¹ + 15×16⁰ = 32 + 15 = 47.
0xFF in hexadecimal equals 255 in decimal. F represents 15, so the calculation is 15×16¹ + 15×16⁰ = 240 + 15 = 255. This is why 255 is the maximum value of an 8-bit unsigned integer, commonly seen in RGB color codes.
Base-16 needs 16 unique symbols, but we only have ten digits (0–9). The letters A, B, C, D, E, and F represent the values 10, 11, 12, 13, 14, and 15 respectively. Hex is widely used in computing because one hex digit maps perfectly to four binary bits.