Hexadecimal Calculator & Converter

Calculate in base 16 or convert between hexadecimal and decimal, including exact fractional values.

Hexadecimal allows A–F. In decimal conversion input, use 0–9. Do not group digits.

Result

Enter values and select Calculate.

How is this calculated?

Weight hexadecimal digits by powers of sixteen. Letters A through F represent digit values ten through fifteen.

Worked example: Add across a hexadecimal carry

Hexadecimal FF plus 1 is 100 in base 16. Check the decimal row: 255 + 1 = 256.

Method and limits

Parentheses mark recurring digits, and an ellipsis marks an abbreviated result. Arithmetic keeps exact values internally. The sign is written explicitly; this is not a fixed-width two’s-complement tool.

How to use this calculator

  1. Choose arithmetic, conversion to decimal, or conversion from decimal. Enter the second value only for arithmetic.
  2. Check the input base on the field label. Read the result in the labeled base; the exact ratio in arithmetic uses decimal integers.

Add across a hexadecimal carry

Hexadecimal FF plus 1 is 100 in base 16. Check the decimal row: 255 + 1 = 256.

Read a hex place

The symbols A to F mean ten through fifteen. In 2F, the 2 is in the sixteens place and the F means fifteen, giving 2 × 16 + 15 = 47.

Interpret a fractional hex digit

A digit immediately right of the point represents sixteenths. Hexadecimal A.8 is therefore 10 + 8/16 = 10.5. A point is not a separator between bytes.

Check an unsigned byte boundary

FF is the largest nonnegative quantity in eight unsigned bits. FF + 1 is displayed as 100, not 00: this calculator does not truncate to a fixed width or apply overflow.

Frequently asked questions

Can the tool read lowercase and 0x?
Yes. For hexadecimal input, ff, FF, and 0xFF all represent 255. Output letters are uppercase.
Can I paste a CSS color or byte array?
This is numeric hexadecimal, not a color parser or byte decoder. Remove a leading # and use only a contiguous numeral if you mean its numeric value.
What does 0.(5) mean?
The fractional digit 5 repeats in the base of that result row. In base 16, that expansion is exactly one third.
Does the converter pad to a fixed number of digits?
No. It outputs the numeric value without padding, grouping, or width-specific signed interpretation.

Common mistakes and limits

Sources & methodology

Related calculators