Hex Calculator

Hexadecimal arithmetic, converted to every base.

Tech Calculators Free, no sign-up Runs in your browser

Hex Calculator tool

0-9 and A-F. A 0x prefix is fine.

0-9 and A-F.

—
Result in hex
—
In decimal
—
In binary
—
In octal
—
Bytes needed
MeasureValue
Each hexadecimal digit is exactly four bits, which is why hex is used wherever binary needs writing down: colour codes, memory addresses, MAC addresses and hashes are all hex standing in for bits.

About the Hex Calculator

Hex Calculator does arithmetic directly on hexadecimal numbers and converts the result into decimal, binary and octal. A 0x prefix is accepted and ignored, as are spaces and colons, so a MAC address or a byte sequence copied from a dump can be pasted in without cleaning it up first.

Hexadecimal is base sixteen, using 0 to 9 and then A to F for the values ten to fifteen. Its usefulness comes from a single fact: sixteen is two to the fourth, so one hex digit is exactly four bits and two hex digits are exactly one byte. That makes hex a compact, lossless shorthand for binary, which is why colour codes, memory addresses, hashes and permission masks are all written in it.

The bytes figure is often the one that matters. 0xFF is one byte, 0x1AF1 is two, and knowing where a value crosses a byte boundary tells you whether it fits in the field you are putting it in. Division gives a quotient and a remainder, matching integer division in hardware, with the exact decimal value listed as well.

The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.

Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.

Looking for something this does not cover? FreeToolsHub.org is another hub of free online tools that need no account, and it is worth a look if hex calculator is only part of what you are working on.

How to use the Hex Calculator

  1. Choose operationThe fields below change to match what you pick, so only the figures that matter to your case are asked for.
  2. Enter first number (hex) and second number (hex)Decimals are fine, and thousands separators are accepted and ignored.
  3. Read the result in hex, in decimal and in binaryThe figures update as you type. The Calculate button is there if you would rather press something, but nothing waits for it.
  4. Copy or check the resultCopy the summary with the copy button, or open the table to check it row by row and read the formula with your own numbers in it.

Features

  • Shows result in hex, in decimal, in binary, in octal and bytes needed together, so you are not running it twice
  • A results table you can read across
  • Prints the formula with your own figures substituted in
  • Updates as you type, with no button to press and no page reload
  • Copy the result in one click
  • Free, no sign-up, and it runs entirely in your browser

Who uses this tool

The hex calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Adding an offset to a memory address
  • Working out a hex colour value by hand
  • Converting a hex value from a log into decimal
  • Checking how many bytes a hex value occupies

Frequently asked questions

What do the letters A to F mean?

They are the digits for ten to fifteen. Hex counts 8, 9, A, B, C, D, E, F, then 10 -- which is sixteen in decimal.

Why is hex used instead of binary?

Because one hex digit is exactly four bits. It carries the same information in a quarter of the characters and converts back mechanically.

Can I paste a colour code or MAC address?

Yes. A leading 0x or #, plus spaces and colons, are stripped before the number is read.

How large a number can it handle?

Up to 13 hex digits, which keeps every result within exact integer arithmetic.

If the hex calculator is not quite what you need, these other free tools solve closely related problems, and there are 11 more in tech calculators.

Binary Calculator

Binary arithmetic with decimal, hex and octal output.

Tech Calculators Use tool

Bitwise Calculator

Bitwise operations with the bit patterns displayed.

Tech Calculators Use tool

Number Base Converter

Convert a number between binary, octal, decimal, hex and custom bases.

Encoding & Conversion Use tool

HEX to RGB Converter

Turn any HEX code into RGB and HSL values, with alpha support.

Color Tools Use tool

Byte Converter

Bytes to KB, MB, GB and the KiB/MiB/GiB family.

Tech Calculators Use tool

Checked and rebuilt on 2026-10-14. The method this calculator uses is described in the section above, and corrections go through the contact page.