Hex Calculator
NewCalculators
Calculate with signed hexadecimal integers and inspect exact decimal, binary, and octal results. Includes arithmetic, bitwise operators, and bounded bit shifts without floating-point rounding.
Enable JavaScript to activate these controls and process your input in the browser.
How to Use Hex Calculator
Use the controls above, then check the example and limitations below.
Select a base
Choose hexadecimal, decimal, binary, or octal for both operands.
Enter integers
Use signed digits, optionally with the matching 0x, 0b, or 0o prefix.
Inspect each base
Select an operator and read or copy the exact result in four bases.
What is Hex Calculator & How Does It Work?
Hexadecimal represents each group of four binary bits with one digit from 0 through F. Use this calculator to inspect integer arithmetic and bit masks in bases 2, 8, 10, and 16. Both operands use the selected input base, and each result is shown in all four bases.
The calculation uses BigInt, so integers beyond JavaScriptβs ordinary safe-number range remain exact. Fractions are rejected. Division truncates toward zero, and negative bitwise values follow signed, unlimited-width integer semantics rather than a fixed CPU register width.
Hex place value
FFββ = 15 Γ 16ΒΉ + 15 Γ 16β° = 255ββEach position is a power of 16. Digits AβF represent decimal 10β15.
Step-by-Step Worked Example:
FF + 1 = 100 (hex) 255 + 1 = 256 (decimal)
Key Features & Benefits
Exact large integers
Up to 4,096 digits per operand without floating-point rounding.
Arithmetic and bit masks
Addition, subtraction, multiplication, integer division, remainder, AND, OR, XOR and shifts.
Common Use Cases
Carry checks
FF + 1 = 100 in hex, which is 256 in decimal.
Mask inspection
F0 OR 0F = FF; FF AND 0F = 0F.
Frequently asked questions
Related Calculators & Companion Tools
Explore complementary utilities for your workflow
Scientific Calculator
Scientific calculator with trig, logs, and memory.
Binary to Text Converter
Decode binary bytes into readable ASCII & UTF-8 text.
Board Foot Calculator
Calculate board feet, quantity and optional lumber cost.
Age Calculator
Calculate exact age from birthdate to today.