Hex calculator

Type numbers in hexadecimal (0–9, A–F), or pick decimal input to convert a decimal number. Results are shown in binary, decimal and hex, exactly, at any size.

Letters A–F are hex digits; for example FF3A.

Your answer

Hex2026
Decimal8,230
Binary10000000100110

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. Each hex digit is worth 16 times the digit to its right. The numbers are converted to exact integers, combined, and converted back.

Method and assumptions

In base 16, the digits from the right are worth 1, 16, 256, … To convert a decimal number, divide by 16 repeatedly and read the remainders from last to first. Negative results are shown with a minus sign rather than in two’s complement.

Questions

What is FF3A in decimal?

65,338.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators