Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Hex Calculator

This calculator works with hexadecimal numbers. It adds, subtracts, multiplies and divides them and applies AND, OR and XOR, and it shows the result in hex, decimal, binary and octal.

How to use Hex Calculator online

  1. Enter value one. Use 0 to 9 and A to F; case does not matter.
  2. Select an operator. Arithmetic and bitwise operators are both in the list.
  3. Enter value two. Same alphabet as the first.
  4. Check the output. Four number systems are printed together.

Why use this free Hex Calculator

  • Base 16 maths
  • Bitwise operators
  • Four systems at once
  • Quotient and remainder
  • Optional 0x prefix
  • Share by link

Hexadecimal

Hexadecimal, or hex, is the base 16 system. It uses the digits 0 to 9 and the letters A to F for the values 10 to 15. Programmers like it because one hex digit stands for exactly four bits, so it is a compact way to write binary data, colours and memory addresses.

How to use it

Type two hex numbers, with or without the 0x prefix and in any case, and choose an operation. Add, subtract, multiply and divide work in base 16. The bitwise operations compare the numbers bit by bit. Division gives the whole quotient and the remainder in hex.

A worked example

Adding 1F and A3 gives C2, which is 194 in decimal and 11000010 in binary. The numbers are 31 and 163 in decimal. Multiplying 1F by A gives 136 in hexadecimal.

Colours and addresses

Web colours such as #FF8800 are three hex pairs for red, green and blue. Memory addresses and file signatures are also written in hex. Adding and subtracting hex numbers is how offsets and ranges are worked out.

No overflow

The page uses whole-number arithmetic of any size, so there is no 32-bit or 64-bit wraparound. If you need that behaviour, reduce the result by the size you want. A minus sign marks a negative result.

Using the calculator

Results appear under the boxes and refresh as you edit them. Copy the result, download a PDF or a CSV, or send the page link.

Hex Calculator: frequently asked questions

How do I add hex numbers?
Go column by column and carry once a column hits 16. The page does this for you.
What do the letters mean?
A to F stand for 10 to 15.
How do I convert hex to decimal?
Multiply each digit by a power of 16 and add them up. The page shows the decimal value.
Can I type the 0x prefix?
Yes, the prefix is stripped before the calculation.
What is a nibble?
Half a byte: four bits, equal to a single hex digit.
Does the Hex Calculator store my numbers?
The Hex Calculator calculates locally, and clearing the site data removes anything it saved.
Is there a way to keep the Hex Calculator result?
Press Save as scenario A to keep a Hex Calculator result on the page, and download a PDF to keep it for good.

Related searches for Hex Calculator

  • Hex Calculator online
  • free Hex Calculator
  • Hex Calculator online free
  • Hex Calculator for mobile
  • Hex Calculator without sign up
  • hex formula
  • hex calculator with table
  • Hex Calculator – Math, Stats & Charts

Hex Calculator is a free online tool on MAITBOX, in the Math, Stats & Charts group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Math, Stats & Charts →

Search tools