Hexadecimal Converter

Convert hexadecimal numbers to decimal or decimal numbers to hexadecimal quickly and accurately with our free online Hexadecimal Converter.

Convert Hexadecimal and Decimal Numbers

Enter a hexadecimal number using 0–9 and A–F.

What Is a Hexadecimal Number?

Hexadecimal is a base-16 number system that uses sixteen symbols to represent values. It uses the digits 0 through 9 and the letters A through F.

The letters represent values from 10 to 15:

Hexadecimal Decimal Value
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10
B 11
C 12
D 13
E 14
F 15

How Hexadecimal to Decimal Conversion Works

Each position in a hexadecimal number represents a power of 16. Starting from the right, the positions represent 160, 161, 162, 163, and so on.

For example, hexadecimal 2F can be converted to decimal as follows:

Hex Digit Power of 16 Value
2 161 32
F 160 15

Therefore: 32 + 15 = 47. So hexadecimal 2F equals decimal 47.

How Decimal to Hexadecimal Conversion Works

To convert a positive decimal whole number to hexadecimal, repeatedly divide the number by 16 and record the remainders. Remainders from 10 through 15 are represented by A through F.

For example, decimal 47 converts to hexadecimal 2F.

Calculation Quotient Remainder
47 ÷ 16 2 15 (F)
2 ÷ 16 0 2

Reading the remainders from bottom to top gives 2F.

Common Hexadecimal and Decimal Examples

Hexadecimal Decimal
0 0
1 1
A 10
F 15
10 16
1A 26
2F 47
64 100
FF 255
3E8 1000

Where Hexadecimal Numbers Are Used

  • Programming and software development
  • Computer memory addresses
  • Digital electronics
  • Color codes such as HTML and CSS colors
  • Machine-level data representation
  • Debugging and computer science
  • Network and hardware identification

Frequently Asked Questions

What is hexadecimal?

Hexadecimal is a base-16 number system that uses the digits 0–9 and the letters A–F.

What is 2F in decimal?

Hexadecimal 2F is equal to decimal 47.

What is 255 in hexadecimal?

Decimal 255 is equal to hexadecimal FF.

Are lowercase hexadecimal letters accepted?

Yes. Hexadecimal values can be written using either uppercase or lowercase letters from A through F.

Can this converter handle large numbers?

The calculator uses JavaScript's BigInt capability for whole-number conversion and validates values before displaying the result.

Is this Hexadecimal Converter free?

Yes. CalclyWorld's Hexadecimal Converter is free to use directly in your browser without requiring an account.