Use this free hex calculator to convert hex to decimal and binary, or add, subtract, multiply and divide hex numbers. Every result is shown three ways, instantly.
Hex Calculator
Convert and calculate in base 16 — hex, decimal and binary answers side by side for colour codes, bytes and memory addresses.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Hex Result
Calculated locally in your browser
—
Name
—
First hex value
—
Second hex value
—
Operation
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Hexadecimal is base 16, using digits 0 to 9 and letters A to F for ten to fifteen. To convert hex to decimal, multiply each digit by its power of sixteen and add: FF equals 15 times 16 plus 15, which is 255 in decimal, one full byte.
- Hex FF = 255 decimal = 11111111 binary
- One hex digit = exactly 4 binary bits
- Hex 100 = 256 decimal, not 100
Hex digits and common byte values
Reference values for this calculator.
| Hex | Decimal | Binary |
|---|---|---|
| A | 10 | 1010 |
| F | 15 | 1111 |
| 10 | 16 | 10000 |
| FF | 255 | 11111111 |
| 100 | 256 | 100000000 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Ideas enhancement: beyond conversion, the tool adds, subtracts, multiplies and divides directly in hex and shows hex, decimal and binary side by side, so colour codes, addresses and byte values can be checked in one run.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
FF converted to decimal
Hex FF and 0, operation to-decimal
| Calculation | Steps |
|---|---|
| FF in hex = 255 in decimal (place values: each hex digit is worth 16x the next). | Result = 255 (decimal). |
Result
Example 2
Hex A plus hex 5
Hex A and 5, operation add
| Calculation | Steps |
|---|---|
| A (10) + 5 (5) = 15 decimal = F hex. | Result = 15 (decimal). |
Result
Example 3
Hex 10 times hex 10
Hex 10 and 10, operation multiply
| Calculation | Steps |
|---|---|
| 10 (16) x 10 (16) = 256 decimal = 100 hex. | Result = 256 (decimal). |
Result
How to use this calculator
Step 1
Enter the first value using hex digits 0-9 and A-F (no 0x prefix needed).
Step 2
Choose the operation: convert to decimal, or add, subtract, multiply or divide.
Step 3
Enter the second hex value for arithmetic operations.
Step 4
Read the answer in hex, decimal and binary together.
Frequently asked questions
What digits does hexadecimal use?
Sixteen symbols: 0-9 then A, B, C, D, E, F standing for 10 to 15. One hex digit holds exactly four binary bits, which is why programmers use it as compact binary shorthand.
How do I convert hex FF to decimal?
F is 15, so FF = 15 x 16 + 15 = 255 — the largest value one byte can hold, and the brightest level of one colour channel in a web colour like #FF8000.
Why does hex 10 equal decimal 16?
Because the second digit sits in the sixteens place: 1 x 16 + 0 = 16. Hex numbers grow by sixteens, not tens, so hex 100 is 256, not 100.
Does division give a remainder?
Yes — hex division here is integer division, and the steps show the hex remainder, matching how address and offset arithmetic is usually done.
Can I enter lowercase hex or a 0x prefix?
Lowercase a-f works (it is uppercased automatically). Leave out the 0x prefix; only the digits themselves should be entered.
About this calculator
The Hex Calculator converts hexadecimal values to decimal and binary and performs addition, subtraction, multiplication and integer division directly on hex inputs. Every result is shown in all three bases at once, which is how hex is actually used in practice.
Hexadecimal compresses binary: because 16 is 2^4, each hex digit stands for exactly four bits, so a byte is always two hex digits and a 32-bit address is eight. That alignment — not any mathematical magic — is why hex appears in colour codes, memory dumps and low-level programming.
Place values run in powers of 16 from the right: units, 16, 256, 4096. Letters carry values A=10, B=11, C=12, D=13, E=14, F=15. Arithmetic converts both operands through these place values, operates, then re-expresses the answer in base 16.
Common mistakes are reading hex 10 as ten (it is sixteen), typing a 0x prefix into the digit field, using the letter O instead of zero, and expecting decimal-style division remainders — hex division here reports the remainder in hex as well.
Use it for web colour codes (#FF8000), memory addresses and offsets, byte and register values, MAC and hex-dump data, and computer-science coursework on number bases.
How to calculate it yourself
Step 1
Write the hex number and label each digit's place: units, 16s, 256s, 4096s from the right.
Step 2
Multiply each digit (A=10 to F=15) by its place value and add the products to get decimal.
Step 3
For arithmetic, convert both operands, calculate, then convert back by repeated division by 16.
Step 4
Check the binary column: each hex digit is exactly four binary bits.
Real-life examples
Checking a colour code
A designer wants the decimal red-channel value of the hex colour FF8000, whose red byte is FF, before entering it into a tool that only accepts 0-255.
FF in hex = 255 in decimal (place values: each hex digit is worth 16x the next).
Result = 255 (decimal).
Adding memory offsets
A programmer adds a base address of hex 1000 and an offset of hex 2A0 while debugging a memory dump and wants the combined address in hex.
1000 (4096) + 2A0 (672) = 4768 decimal = 12A0 hex.
Result = 4768 (decimal).
Ideas & use cases
- Colour work: convert each byte of a hex colour to decimal to check channel levels against an RGB picker.
- Address maths: add an offset to a base address and read the hex result without leaving base 16.
- Study check: convert a binary string four bits at a time and compare with the binary column shown here.
Limitations & sources
- Whole numbers only (no hex fractions or negative results display), and very long values are limited by double-precision integers, so results above 2^53 may lose exactness.
Sources: Base-16 place-value arithmetic: standard number-systems references; calculator.net hex calculator behaviour cross-checked
