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)

Do arithmetic directly on hexadecimal (base 16) numbers — add, subtract, multiply, divide, and take the modulo of hex values, with results shown in binary, octal, decimal, and hex at once.

Hexadecimal Arithmetic in One Place

This hex calculator runs the five arithmetic operations directly on hexadecimal (base 16) numbers, so you never have to convert to decimal by hand. Hexadecimal uses the digits 0-9 plus the letters A-F for the values 10 to 15, and each hex digit maps to exactly four binary bits. Enter two hex values, pick an operator, and read the answer across every base at once.

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.

Where Hex Math Comes Up

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. Invalid characters are flagged instantly.

4

Calculate & Read Results

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

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

Features

Supported Operators

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, with live validation on invalid characters.

Examples & Copy

One-tap example expressions, a built-in operator reference panel, and a copy button on every result row.

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 a hexadecimal number?

Hexadecimal is a base-16 number system that uses 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.

How do you add hexadecimal numbers?

Add column by column from right to left, carrying 1 whenever a column total reaches 16 (instead of 10 as in decimal). For instance FF + 1 = 100 in hex, which is 256 in decimal. This calculator does the carrying for you.

How do you subtract or multiply in hex?

The same rules as decimal apply, but borrows and carries happen in units of 16. Enter both hex values, choose or ×, and the tool returns the exact result — for example A5 − 5A = 4B (75) and 10 × F = F0 (240).

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₁₀. Every result here already lists the decimal value alongside binary, octal, and hex.

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 shows up in color codes (#RRGGBB), memory addresses, MAC addresses, and low-level debugging.

Is hex input case-sensitive?

No. Input is case-insensitive, so a5 and A5 produce the same result. Type whichever style is more comfortable — the tool flags any character outside 0-9 and A-F.

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
Input is case-insensitive — a5 and A5 are the same
Supported operators: +, , ×, ÷, % (modulo)
Every result appears in BIN, OCT, DEC, and HEX at once
Press Enter to calculate; tap any result to copy it
Want to learn more? Read documentation →
1/6

Base Arithmetic Calculator

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