?
Hex Calculator – Convert, Compute & Bitwise Tools

Hex Arithmetic

A
B

Base Converter

Type into *any* box and the others will update automatically.

Bitwise Tools

X
Y / n

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

Pro tip: toggle Uppercase for A–F and Byte grouping to split HEX into pairs like DE AD BE EF. All outputs are copyable.

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:

     

    A+B=CA + B = C 

    Example:

    1A3F+FF=1B3E1A3F + FF = 1B3E 

  • Subtraction:

     

    AB=CA – B = C 

    Example:

    1A3FFF=19401A3F – FF = 1940 

  • Multiplication:

     

    A×B=CA \times B = C 

    Example:

    2A×F=26A2A \times F = 26A 

  • Division (shows quotient and remainder):

     

    A÷B=Q(quotient),R(remainder)A \div B = Q \, \text{(quotient)}, \, R \, \text{(remainder)} 

    Example:

    1A3F÷10=1A3remainderF1A3F \div 10 = 1A3 \, \text{remainder} \, F 

2. Base Conversions

The calculator can instantly convert between:

  • Hex ⇄ Decimal

  • Hex ⇄ Binary

  • Hex ⇄ Octal

Example:

 

7B16=12310=11110112=1738

 

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:

F0F0 \, AND \, 0F0F = 0000

F0F0 \, OR \, 0F0F = FFFF

Math Calculators

How helpful was your experience here?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!