Decimal to Hexadecimal Calculator:
Converting a decimal number to hexadecimal is a useful technique in computing and digital electronics, especially when working with memory addresses, colors in web design, and low-level programming. The hexadecimal system is base-16, using digits 0–9 and letters A–F to represent values.
Decimal is the standard base-10 number system we use in everyday life. It includes digits from 0 to 9. Each digit’s position represents a power of 10. For example, 245 in decimal means: (2×10²) + (4×10¹) + (5×10⁰).
The hexadecimal (or hex) system is base-16. It includes digits from 0 to 9 and letters A to F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. It is widely used in programming, color codes (e.g., #FF5733), and memory representation in computers.
To convert a whole number (integer) from decimal to hexadecimal:
Reading from bottom to top, 345 in decimal = 159 in hexadecimal.
To convert a fractional decimal (e.g., 0.625) to hexadecimal:
So, 0.625 in decimal = 0.A in hexadecimal.
So, 0.3 in decimal ≈ 0.4CCCC… (repeating) in hexadecimal.
To convert a decimal number with both integer and fraction (e.g., 345.625):
Use our free Decimal to Hexadecimal Calculator above to instantly convert any number—integer or fractional—and view detailed steps showing how it's done.