Two's Complement Calculator

Calculate two's complement of binary or a negative decimal number for any bit width (8, 16, 32, 64).

Result

Two's complement
11010011
Hex
D3
✓ Free⚡ Instant🔒 Runs in your browser📱 Mobile friendly∞ No limits

How to use the Two's Complement Calculator

  1. Type or paste your value into the inputs above.
  2. The result is calculated instantly as you type — no button needed.
  3. Press Copy to copy any result, or Example to see a worked example (dec, -45, 8).

How 2's complement calculator works

Two's complement is formed by inverting all bits and adding 1. It is how almost every CPU stores negative integers: in 8 bits, −45 is 11010011.

Frequently asked questions

How do I use the Two's Complement Calculator?

Enter your value in the box above. The result updates instantly as you type. Use the Copy button next to any result to copy it, Example to load a sample, or Clear to start again.

Is this 2's complement calculator tool free?

Yes. Binary Tool Hub is completely free, needs no sign-up and has no usage limits.

Is my data private?

Yes. Every calculation runs locally in your browser with JavaScript. Nothing you type is uploaded to a server.

Does it work on mobile?

Yes. The Two's Complement Calculator works on iPhone, Android, tablets and desktop browsers, and even offline once the page has loaded.

How does the 2's complement calculator conversion work?

Two's complement is formed by inverting all bits and adding 1. It is how almost every CPU stores negative integers: in 8 bits, −45 is 11010011.