2's Complement Calculator

Convert decimal numbers to binary 2's complement representation and vice versa. Supports 8-bit, 16-bit, and 32-bit formats.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

Was this calculator helpful?

How to use this tool?

How to Use the 2's Complement Calculator

This calculator converts between decimal integers and their 2's complement binary representation. Follow these steps:

  1. Select Conversion Direction – Choose Decimal to 2's Complement Binary or 2's Complement Binary to Decimal from the dropdown.
  2. Enter Input – For decimal, type an integer (e.g., -42 or 127). For binary, type only 0s and 1s (e.g., 11010110).
  3. Choose Bit Length – Select 8, 16, or 32 bits. This defines the range and padding of the result.
  4. Click "Calculate" – The result appears below, along with step-by-step details showing the conversion process.

Important: Decimal values must be within the range for the selected bit length (e.g., 8-bit: -128 to 127). Binary input is automatically padded to the chosen bit length.

Previous Results

Generate Charts
Result Inputs Date

Frequently Asked Questions

Two's complement is a mathematical operation on binary numbers used to represent signed integers. It is the most common method of representing negative integers in computers.

For a positive number, just write the binary representation. For a negative number, invert all bits of the positive binary representation and add 1.

For 8 bits, the range is -128 to 127.

Reviewed by Experts

Eurico José Kiala

Eurico José Kiala

Mathematician

Teacher

LinkedIn
João Lino

João Lino

Mathematician

LinkedIn
Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0