Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)

Perform arithmetic operations on hexadecimal (base 16) numbers. Add, subtract, multiply, divide hex values with results in multiple formats.

Hex Calculator

The Hex Calculator performs arithmetic operations on hexadecimal (base 16) numbers. Hexadecimal uses the digits 0-9 plus the letters A-F for the values 10 to 15. It is widely used in programming for colors, memory addresses, and compact data representation, because each hex digit maps to exactly four binary bits.

One digit, four bits. Since 16 = 2⁴, a single hex character stands in for four binary digits — so a full byte (8 bits) is written as exactly two hex characters, such as FF for 255.

Common Use Cases

Color Codes

Adjust and combine hex color values like #FF5733 when working with web and design palettes.

Memory Addresses

Add offsets to addresses such as 0x7FFF when debugging or reading low-level dumps.

Data & Debugging

Compute byte values, masks, and checksums where hex is the natural, compact notation.

How to Use the Hex Calculator

1

Enter the First Number

Type the first hexadecimal number using digits 0-9 and letters A-F. Input is case-insensitive, so a and A are both valid. The 0x prefix is added for you.

2

Choose an Operator

Select an arithmetic operator: addition (+), subtraction (), multiplication (×), division (÷), or modulo (%).

3

Enter the Second Number

Type the second hexadecimal value into the lower field, again using only 0-9 and A-F.

4

Calculate & Read Results

Click Calculate or press Enter. The result is shown in binary, octal, decimal, and hexadecimal at once, each with a one-click copy button.

Quick start: Tap a Try examples chip to load a ready-made hex expression, then change the operands to see how the answer shifts across all four bases.

Features

Supported Arithmetic Operations

The Hex tab supports the five core arithmetic operators. Each row below shows a worked hex example with its decimal equivalent.

OperatorNameExample (hex)Decimal
+AdditionFF + 1 = 100255 + 1 = 256
SubtractionA5 − 5A = 4B165 − 90 = 75
×Multiplication10 × F = F016 × 15 = 240
÷DivisionF0 ÷ 10 = F240 ÷ 16 = 15
%ModuloFF % 10 = F255 % 16 = 15

What the Tool Gives You

Results in Four Bases

Every answer appears at once in binary, octal, decimal, and hexadecimal — no manual conversion required.

Large-Number Support

BigInt arithmetic keeps even long hex values exact, such as DEAD + BEEF = 19D9C (105884).

Case-Insensitive Input

Lowercase and uppercase letters are treated the same, so ff equals FF.

Quick Examples

One-tap example expressions for common hex calculations, plus a built-in operator reference panel.

Need bitwise operations? AND, OR, XOR, and shifts act on raw bits and live on the Binary tab. The Hex tab focuses on the five arithmetic operators.

Frequently Asked Questions

What is hexadecimal?

Hexadecimal is a base-16 number system using 0-9 for the values 0–9 and A-F for 10–15. Each hex digit represents 4 binary bits. For example, FF equals 255 in decimal.

Why is hex used in programming?

Hex is a compact way to represent binary data. One byte (8 bits) is written as exactly 2 hex digits. It is used for colors (#RRGGBB), memory addresses, MAC addresses, and debugging.

How do I convert hex to decimal?

Multiply each digit by its place value (powers of 16) and add the results. For example: A5₁₆ = 10 × 16¹ + 5 × 16⁰ = 160 + 5 = 165₁₀.

Does input have to be uppercase?

No. Input is case-insensitive, so a5 and A5 produce the same result. Type whichever style is more comfortable.

Can it handle very large hex numbers?

Yes. The calculator uses BigInt arithmetic, so large hexadecimal values stay exact instead of being rounded like standard floating-point numbers.

0x
0x
BIN
OCT
DEC
HEX
Enter values to calculate
Try examples
Operator Name Example
+ Addition 1010 + 0101 = 1111
Subtraction 1010 − 0011 = 0111
× Multiplication 1010 × 0010 = 10100
÷ Division 1010 ÷ 0010 = 0101
% Modulo 1010 % 0011 = 0001
Enter hex numbers using digits 0-9 and letters A-F
Supports arithmetic operations: +, −, ×, ÷, %
Results shown in BIN, OCT, DEC, and HEX formats
Hex is widely used in programming for colors, memory addresses, and more
Want to learn more? Read documentation →
1/5

Base Arithmetic Calculator

Binary Calculator Hex Calculator (current page) Octal Calculator
Start typing to search...
Searching...
No results found
Try searching with different keywords