Hex Calculator

Convert between decimal and hexadecimal number representations.

Calculate

Enter your values below.

Result

Result
0

Formula used

Hexadecimal is a base-16 system using digits 0-9 and letters A-F for values 10-15.

Example: 255 in decimal = FF in hexadecimal.

How to use this calculator

  1. Enter Decimal number, Hex number.
  2. Choose Direction.
  3. Press Calculate to see your result instantly.

Frequently asked questions

What is hexadecimal used for?

Representing binary data compactly — common in color codes, memory addresses, and byte values.

Can I include the '0x' prefix?

Yes, it's automatically stripped if present.

Is hex case-sensitive here?

No, both uppercase and lowercase letters are accepted.

How large a number can I convert?

Any value JavaScript can represent as a safe integer.