Binary and Hex Calculator

Perform exact unsigned integer arithmetic and bitwise operations, then view binary, hex and decimal results.

What does this calculator do?

Perform exact unsigned integer arithmetic and bitwise operations, then view binary, hex and decimal results.

Formula

Method and equation:

NOTₙ(a) = (~a) AND (2ⁿ−1)

How to use it

Enter the labelled values, select a mode if needed and review the result and assumptions.

Worked example

First value 11111111; Second value 1; NOT bit width 8 → Binary 100000000

Assumptions

NOTₙ(a) = (~a) AND (2ⁿ−1). Calculation runs locally in your browser; raw inputs are not sent to analytics.

Limitations

Unsigned mode only. NOT uses the chosen bit width; subtraction cannot return a negative value.

Common mistakes

Unsigned mode only. NOT uses the chosen bit width; subtraction cannot return a negative value.

Formula version1.0.0
FormulaNOTₙ(a) = (~a) AND (2ⁿ−1)

Frequently asked questions

How is the result calculated?

NOTₙ(a) = (~a) AND (2ⁿ−1). Perform exact unsigned integer arithmetic and bitwise operations, then view binary, hex and decimal results.

What are the limits of this result?

Unsigned mode only. NOT uses the chosen bit width; subtraction cannot return a negative value.

Are my input values sent to a calculation service?

Calculation runs locally in your browser; raw inputs are not sent to analytics.

Sources

Related calculators

Last updated: 2026-09-18 · v1.0.0 · Report an error