‹ Back ✦ AI Chat
±₂

Two’s Complement Calculator

Signed integers ↔ two’s-complement binary and hex.

1101 0110
Binary
0xD6
Hex
-42
Signed value
214
Unsigned value
-128 … 127
Range

Runs entirely in your browser. Nothing is sent anywhere.

How it works

  1. 1Enter your values.
  2. 2See the result update instantly as you type.
  3. 3Change any value to compare scenarios.

About this tool

Two’s Complement Calculator: Signed integers ↔ two’s-complement binary and hex. Type your numbers and the result is calculated instantly — no button to press, nothing to install. All math runs locally in your browser, so the values you enter are never sent anywhere.

Example

Input
Decimal (e.g. -42) or binary/hex (0b…, 0x…)-42
Width8 bit
Result
Binary1101 0110
Hex0xD6
Signed value-42
Unsigned value214
Range-128 … 127
How do I use the Two’s Complement Calculator?

Enter your values. See the result update instantly as you type. Change any value to compare scenarios.

Is the Two’s Complement Calculator free?

Yes. It is completely free with no sign-up, no usage limits and no watermark.

Is my data sent to a server?

No. Everything is calculated locally in your browser. Nothing you enter is uploaded, logged or stored.

Does it work on my phone?

Yes. It works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux — no app needed.