Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Same situation
Truth Table GeneratorBoolean Algebra Simplifier
More tools
Decimal to Hex ConverterBinary CalculatorOctal CalculatorBinary to Gray Code ConverterBitwise Calculator
Home Page > Math > Number System Converters

HEX Calculator

Work with hexadecimal arithmetic and bitwise logic in MiniWebtool’s HEX Calculator. It supports operations such as addition, multiplication, AND, XOR, and shifts, showing steps and corresponding hexadecimal, decimal, and binary values.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
HEX CalculatorTry it now — free ▼
Hex addition wraps at 16, and each wrap is a carry: A7 + 9E = 145

Enter two hex numbers and pick an operation below to get the result in hex, decimal and binary, with the steps.

0x
0x
Arithmetic
Bitwise

Embed HEX Calculator Widget

Select a valid choice. 1 is not one of the available choices.

About HEX Calculator

Welcome to the Hex Calculator, a comprehensive free online tool for performing hexadecimal arithmetic and bitwise operations. Whether you are a programmer debugging code, a student learning number systems, or an engineer working with low-level data, this calculator provides detailed step-by-step solutions and results in multiple number bases.

At a Glance

HEX Calculator performs arithmetic and bitwise operations on hexadecimal numbers. Each result appears in hexadecimal, decimal and binary, with a step-by-step breakdown.

HEX Calculator: features at a glance
FeatureWhat you getGood for
ArithmeticAddition, subtraction, multiplication, integer division (quotient only) and modulo for the remainder.Working with memory offsets and address math
Bitwise logicAND, OR and XOR, with diagrams of the operation bit by bit.Masking, setting and toggling bits in flags
Bit shiftsLeft shift and right shift, where the second number is the count of bits to shift.Multiplying or dividing by powers of 2
Hex inputAccepts digits 0-9 and letters A-F in upper or lower case, up to 32 characters. Bitwise operations are optimized for values up to 64 bits.Large values such as 64-bit addresses
Three-base resultsShows the answer in hexadecimal, decimal and binary, with a copy button for each result.Checking a result in the base you need
Step-by-step solutionLists the calculation steps behind each result.Students learning how hex arithmetic works

What is Hexadecimal?

Hexadecimal (often abbreviated as "hex") is a base-16 numeral system that uses 16 distinct symbols: the digits 0-9 represent values zero through nine, and the letters A-F (or a-f) represent values ten through fifteen. This makes hexadecimal ideal for representing binary data in a compact, human-readable format.

HEX Calculator: What is Hexadecimal? — part 1 of 4
Hex01234
Dec01234
Bin00000001001000110100
HEX Calculator: What is Hexadecimal? — part 2 of 4
Hex56789
Dec56789
Bin01010110011110001001
HEX Calculator: What is Hexadecimal? — part 3 of 4
HexABCDE
Dec1011121314
Bin10101011110011011110
HEX Calculator: What is Hexadecimal? — part 4 of 4
HexF
Dec15
Bin1111

Why Use Hexadecimal?

Supported Operations

Arithmetic Operations

Bitwise Operations

How to Use This Calculator

  1. Enter first hex number: Type your first hexadecimal number using digits 0-9 and letters A-F. The calculator accepts uppercase or lowercase letters.
  2. Select operation: Choose your operation: arithmetic (+, -, *, /, %) or bitwise (AND, OR, XOR, <<, >>). Click on operation buttons or use the dropdown.
  3. Enter second hex number: Input your second hexadecimal number. For shift operations, this is the number of bits to shift.
  4. Calculate and view results: Click Calculate to see results in hexadecimal, decimal, and binary formats, along with step-by-step solution breakdown.

Understanding Bitwise Operations

Bitwise operations work on the binary representation of numbers, manipulating individual bits. They are fundamental in programming for tasks like flags, permissions, and low-level optimization.

Bitwise AND Example

0xF0 AND 0x0F = 0x00 (11110000 AND 00001111 = 00000000)

AND returns 1 only when both corresponding bits are 1. This is commonly used for "masking" to extract specific bits.

Bitwise OR Example

0xF0 OR 0x0F = 0xFF (11110000 OR 00001111 = 11111111)

OR returns 1 when at least one corresponding bit is 1. Used for combining flags or setting specific bits.

Bitwise XOR Example

0xAA XOR 0x55 = 0xFF (10101010 XOR 01010101 = 11111111)

XOR returns 1 when the corresponding bits are different. Useful for toggling bits and simple encryption.

Frequently Asked Questions

What is hexadecimal and why is it used?

Hexadecimal (base-16) is a numbering system that uses 16 symbols: 0-9 and A-F (where A=10, B=11, C=12, D=13, E=14, F=15). It is widely used in computing because it provides a compact representation of binary data - each hex digit represents exactly 4 binary bits, making it easier to read memory addresses, color codes, and machine code.

How do I add hexadecimal numbers?

To add hexadecimal numbers: 1) Convert each hex digit to its decimal equivalent, 2) Add the numbers column by column from right to left, 3) If a sum exceeds 15, carry 1 to the next column, 4) Convert results back to hex. For example, A + 7 = 17 in decimal = 11 in hex (write 1, carry 1).

What are bitwise operations in hexadecimal?

Bitwise operations work on the binary representation of hex numbers. AND (&) returns 1 only if both bits are 1. OR (|) returns 1 if either bit is 1. XOR (^) returns 1 if bits are different. These operations are essential for masking, flag manipulation, and low-level programming tasks.

How do bit shift operations work?

Left shift (<<) moves all bits to the left by the specified number of positions, filling with zeros on the right. This effectively multiplies by 2 for each shift. Right shift (>>) moves bits to the right, dividing by 2 for each shift. For example, 0x10 << 2 = 0x40 (16 * 4 = 64).

What is the maximum hex value this calculator supports?

This calculator supports hex numbers up to 32 characters long, which can represent values up to 2^128. This covers virtually all practical use cases including 64-bit addresses, cryptographic values, and large integer calculations. Bitwise operations are optimized for values up to 64 bits.

Related Resources

Reference this content, page, or tool as:

"HEX Calculator" at https://MiniWebtool.com/hex-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Jan 10, 2026

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Number System Converters:

Math SolverWhat would you like to solve?

Math Solver

Try
Browse expression examples

Choose an example to fill the input, edit its numbers, then Solve. log uses base 10; use ln for the natural logarithm.

Numbers & factors

Fractions & division

Powers, roots & logs

Algebra & equations

Calculus

Geometry & trigonometry

Top & Updated:

Hex to Decimal ConverterHEX ConverterOctal to Hex ConverterView all →
Home Page > Math > Number System Converters > HEX Calculator