Hex Calculator

Use this free hex calculator for base-16 addition, subtraction, multiplication, division with remainders, hex-to-decimal conversion, decimal-to-hex conversion, hex-to-binary conversion, optional 0x prefixes, copy, and current-tab history.

Illustration for Hex Calculator showing add, subtract, multiply, divide, and convert hex numbers, then check decimal and binary output.
Hex Calculator artwork matches the live tool workflow: add, subtract, multiply, divide, and convert hex numbers, then check decimal and binary output. Use it with the calculator, examples, and result notes.View in the smoke-kawaii gallery
Hex arithmeticDecimal conversionBinary outputRemainders
A3 + 1FC2
Decimal answer
194
Binary answer
11000010
Input values
163 and 31

Steps

  1. A3 is 163 in decimal.
  2. 1F is 31 in decimal.
  3. Add the decimal values: 163 + 31 = 194.
  4. Convert the answer back to hex: C2.

Quick conversions

422A
Hex to binary10 1010

Recent answers

Recent hex answers will appear here.

Input tips

Use 0-9 and A-F. Optional 0x prefixes, spaces, and underscores are accepted.

Division shows a quotient and remainder when the hex values do not divide evenly.

How to use the Hex Calculator

  1. Enter the first hex number using 0-9 and A-F.
  2. Choose add, subtract, multiply, or divide.
  3. Enter the second hex number, then press Calculate hex.
  4. Review the hex answer, decimal answer, binary answer, steps, conversions, and recent answers.

What people use it for

Check hexadecimal addition, subtraction, multiplication, and division problems with decimal steps.

Convert hex values such as 2A, FF, or 0xFF into decimal numbers.

Convert whole decimal numbers into uppercase hexadecimal output.

Compare hex, decimal, and binary answers while studying number systems or coding examples.

Read byte-sized values such as FF = 255 and see the matching binary bits.

Check simple signed whole-number hex math without assuming fixed-width two's complement behavior.

Quick examples

Hex addition

A3 + 1F

C2 hex, 194 decimal, 1100 0010 binary

Hex subtraction

FF - 2A

D5 hex, 213 decimal

Hex multiplication

1A x 3

4E hex, because 26 x 3 = 78 decimal

Hex division

2F / A

4 remainder 7, because 47 / 10 leaves 7

Hex to decimal

0xFF

255 decimal

Decimal to hex

42

2A hex

Need the guide or a nearby tool?

Need a slower walkthrough, a related calculator, or the full library? These links keep you close to the task you started.

Frequently asked questions

Quick answers about base-16 digits, 0x inputs, arithmetic, conversion, remainders, and privacy.

What is a hexadecimal number?

A hexadecimal number is written in base 16. It uses digits 0-9 plus letters A-F, where A is 10, B is 11, C is 12, D is 13, E is 14, and F is 15.

What can I use the Hex Calculator for?

Use it to add, subtract, multiply, divide, and convert whole hexadecimal numbers. The calculator also shows decimal and binary versions of the answer so you can check the same value in three bases.

What do the main Hex Calculator inputs mean?

The main inputs are the numbers, operation, mode, or known values the calculator needs. Keep units consistent, enter percentages the way the page label shows, and use the examples as a quick check before trusting the answer.

How should I read the Hex Calculator answer?

Read the headline answer, then check the supporting lines and examples to understand how the calculator got there. If one input changes, rerun the tool and compare the new answer instead of guessing.

How is A3 converted to decimal?

A3 means 10 x 16 plus 3. That gives 160 + 3 = 163 in decimal. The calculator uses that same place-value idea before converting the answer back to hex.

Can I enter 0x before a hex number?

Yes. Optional 0x prefixes are accepted, so 0xFF and FF both work. Spaces and underscores are also ignored for readability.

How does hex division work in this calculator?

Hex division returns a whole-number quotient. If the division is not even, the calculator also shows the remainder in hex, decimal, and binary. For example, 2F / A is 4 remainder 7.

Does the calculator convert decimal to hex?

Yes. The quick conversions panel converts whole decimal numbers into hex and converts hex numbers back into decimal and binary.

Why does one hex digit equal four binary bits?

One hex digit can show 16 possible values, from 0 through F. Four binary bits can also show 16 values, from 0000 through 1111, so each hex digit maps neatly to a four-bit group.

Why does FF equal 255?

FF means 15 x 16 plus 15. That is 240 + 15 = 255, which is why FF often appears as the largest value in one byte.

Can this calculator handle lowercase hex letters?

Yes. You can enter uppercase or lowercase letters A-F. Results are shown in uppercase for cleaner reading.

Can I use it for color-code checks?

You can use it to check individual hex byte values, such as FF = 255 or 80 = 128. It is not a full color picker, so remove the # symbol and check each pair when you are reading CSS-style color codes.

Does it handle negative hex numbers?

Yes for simple signed whole-number math, such as -A + 2. It does not model fixed-width overflow or two's complement storage unless you manually interpret the result for a specific bit width.

What should I double-check before trusting a hex result?

Check that the input uses only 0-9 and A-F, that any 0x prefix is intentional, that decimal values are entered in the decimal conversion field, and that you are not expecting fixed-width byte overflow.

Is my hex calculation history private?

Yes. Recent hex answers stay only in the current browser tab while you use the page. They are not sent to a server.

Related tools

Scientific CalculatorA free scientific calculator for trig, inverse trig, logs, roots, powers, constants, and DEG/RAD mode.
Exponent CalculatorCalculate powers, zero and negative exponents, simple fraction exponents, and scientific notation.