Hex Calculator

Use this free hex calculator for base-16 addition, subtraction, multiplication, division with remainders, bitwise AND, OR, and XOR, plus hex, decimal, and binary conversions.

Use the Hex Calculator

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.

AND, OR, and XOR accept zero or positive values. They do not apply a fixed 8-bit, 16-bit, or 32-bit width.

Illustration for Hex Calculator showing hexadecimal arithmetic, bitwise AND, OR, and XOR, plus decimal and binary conversions.
Hex Calculator artwork matches the live workflow: calculate base-16 arithmetic and bitwise operations, then check the result in hex, decimal, and binary.View in the smoke-kawaii gallery
Hex arithmeticDecimal conversionBinary outputRemainders

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.

Check bit masks with non-negative hexadecimal AND, OR, and XOR operations.

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

Bitwise AND

F0 AND CC

C0 hex, because only shared 1 bits remain

Bitwise XOR

AA XOR FF

55 hex, because different input bits become 1

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, run bitwise AND, OR, or XOR, and convert whole hexadecimal numbers. It also shows decimal and binary versions of the answer.

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 do hex AND, OR, and XOR work?

The calculator compares the binary bits behind each non-negative hex value. AND keeps shared 1 bits, OR keeps a 1 from either input, and XOR keeps a 1 where the two input bits differ.

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?

Arithmetic accepts simple signed whole numbers, such as -A + 2. Bitwise operations require zero or positive inputs because the calculator does not assume an 8-bit, 16-bit, 32-bit, or 64-bit two's-complement 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.