Hexadecimal Calculator
Convert between hexadecimal, decimal, and binary numbers.
Enter a Number
Table of Contents
Hexadecimal Number System
The hexadecimal (hex) number system is a base-16 number system that uses 16 distinct symbols: 0-9 and A-F. Each position in a hexadecimal number represents a power of 16.
Conversion Methods
Here are the methods for converting between number systems:
-
1Hexadecimal to Decimal: Multiply each digit by its corresponding power of 16 and sum the results
-
2Decimal to Hexadecimal: Divide by 16 repeatedly and use the remainders
-
3Hexadecimal to Binary: Convert each hex digit to its 4-bit binary equivalent
-
4Binary to Hexadecimal: Group binary digits into sets of 4 and convert each group
For example, to convert 1A from hexadecimal to decimal:
Hexadecimal - Practical Examples
Example 1 Color Codes
Hexadecimal is commonly used to represent colors in web design.
#FF0000 = Red, #00FF00 = Green, #0000FF = Blue
Example 2 Memory Addresses
Hexadecimal is used to represent memory addresses in computer systems.
0x7FFF = 32767 in decimal
Example 3 MAC Addresses
Network interface MAC addresses are represented in hexadecimal.
00:1A:2B:3C:4D:5E