Hexadecimal Calculator

Convert between hexadecimal, decimal, and binary numbers.

Calculator

Enter a Number

Enter a hexadecimal number (e.g., 1A)

Select the type of conversion you want to perform

Concept

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.

Hexadecimal Digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Steps

Conversion Methods

Here are the methods for converting between number systems:

  1. 1
    Hexadecimal to Decimal: Multiply each digit by its corresponding power of 16 and sum the results
  2. 2
    Decimal to Hexadecimal: Divide by 16 repeatedly and use the remainders
  3. 3
    Hexadecimal to Binary: Convert each hex digit to its 4-bit binary equivalent
  4. 4
    Binary to Hexadecimal: Group binary digits into sets of 4 and convert each group

For example, to convert 1A from hexadecimal to decimal:

Example Calculation:
1A = (1 × 16¹) + (10 × 16⁰) = 16 + 10 = 26
Examples

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

Tools

Mathematics Calculators

Need other tools?

Can't find the calculator you need? Contact us to suggest other mathematical calculators.