Hex Calculator
Compute with hexadecimal like a pro: add, subtract, multiply, divide; convert across bases; and run bitwise ops (AND/OR/XOR/NOT) with instant validation. Works with big numbers using BigInt. Keyboard friendly and shareable.
Hex Arithmetic
/ Base Converter
Bitwise Tools
How it works
The calculator treats inputs as unsigned hexadecimal integers and performs exact math with JavaScript BigInt. Invalid characters are rejected (allowed: 0–9, A–F). Division returns the precise hex result plus quotient and remainder. Conversions and bitwise operations are all derived from the same core BigInt value to avoid rounding and size limits.
Example
A = 1A3F, B = FF, A + B = 1B3E; DEC = 6974; BIN = 0001 1011 0011 1110
Hex Calculator Formula Guide
The Hex Calculator helps you perform arithmetic and logical operations directly in hexadecimal (base-16). It is useful for programmers, electronics engineers, and computer science students who often deal with low-level data or binary systems.
1. Arithmetic Operations in Hex
The rules are the same as in decimal, but values are expressed in base-16 (digits 0–9 and A–F).
-
Addition:
Example:
-
Subtraction:
Example:
-
Multiplication:
Example:
-
Division (shows quotient and remainder):
Example:
2. Base Conversions
The calculator can instantly convert between:
-
Hex ⇄ Decimal
-
Hex ⇄ Binary
-
Hex ⇄ Octal
Example:
3. Bitwise Operations
Bitwise functions work at the binary level:
-
AND: keeps bit = 1 only if both are 1
-
OR: keeps bit = 1 if either is 1
-
XOR: keeps bit = 1 if different
-
NOT: flips all bits
-
SHL / SHR: shift bits left or right
Example:
⭐ Rate this