Decimal to 2's Complement

Convert decimal integers (including negatives) to two's complement binary representation.

± Decimal to 2's Complement

Invalid input

2's Complement

⚙️ Step-by-Step Breakdown

Enter a value to see the conversion steps

🕑 Recent Conversions

Your conversions will appear here

What Is Decimal to 2's Complement

Two's complement is the most common method for representing signed integers in binary. The most significant bit indicates the sign: 0 for positive, 1 for negative.

It is used in virtually all modern computers because it simplifies arithmetic operations — addition and subtraction work the same regardless of sign.

🔄 Interactive 2's Complement Explorer

How to Convert Decimal to 2's Complement

For positive numbers, simply convert to binary. For negative numbers, convert the absolute value to binary, flip all bits (one's complement), then add 1.

For example, -5 in 8-bit: 5 = 00000101, flip = 11111010, add 1 = 11111011.

⚡ Try It — Step-by-Step Demo

Frequently Asked Questions

It is a mathematical operation and binary encoding scheme for representing signed integers. The MSB serves as the sign bit.
It allows a single addition circuit to handle both positive and negative numbers, simplifying CPU design.
8-bit two's complement can represent integers from -128 to +127.
Invert all bits and add 1. This works in both directions (positive to negative and back).
Overflow occurs when the result exceeds the bit width range. The carry out of the MSB is discarded.

All Conversion Tools

Dec → Hex

Decimal to Hexadecimal

Base 10 → Base 16

Try Now →
Hex → Dec

Hexadecimal to Decimal

Base 16 → Base 10

Try Now →
Dec → Bin

Decimal to Binary

Base 10 → Base 2

Try Now →
Bin → Dec

Binary to Decimal

Base 2 → Base 10

Try Now →
Dec → Oct

Decimal to Octal

Base 10 → Base 8

Try Now →
Oct → Dec

Octal to Decimal

Base 8 → Base 10

Try Now →
Oct → Hex

Octal to Hexadecimal

Base 8 → Base 16

Try Now →
Hex → Oct

Hexadecimal to Octal

Base 16 → Base 8

Try Now →
Oct → Bin

Octal to Binary

Base 8 → Base 2

Try Now →
Bin → Oct

Binary to Octal

Base 2 → Base 8

Try Now →
Hex → Bin

Hexadecimal to Binary

Base 16 → Base 2

Try Now →
Bin → Hex

Binary to Hexadecimal

Base 2 → Base 16

Try Now →
Dec → BCD

Decimal to BCD

Convert decimal numbers to Binary Coded Decimal (B...

Try Now →
Bin → ASCII

Binary to ASCII

Convert binary numbers to ASCII text characters. D...

Try Now →
Bin → Gray

Binary to Gray Code

Convert standard binary to Gray code (reflected bi...

Try Now →
Hex → ASCII

Hex to ASCII

Convert hexadecimal values to ASCII text. Decode h...

Try Now →
Hex → RGB

Hex to RGB

Convert hex color codes to RGB values instantly. S...

Try Now →
RGB → Hex

RGB to Hex

Convert RGB color values to hexadecimal color code...

Try Now →
ASCII → Hex

ASCII to Hex

Convert ASCII text to hexadecimal representation. ...

Try Now →
Hex → Text

Hex to Text

Convert hexadecimal strings to readable text. Deco...

Try Now →
Dec → Frac

Decimal to Fraction

Convert decimal numbers to simplified fractions. S...

Try Now →
Dec → %

Decimal to Percent

Convert decimal values to percentages instantly wi...

Try Now →
Any → Any

Number Base Converter

Convert numbers between any bases (2-36). Universa...

Try Now →
Hex → Info

Hexadecimal Reference

Complete hexadecimal reference with conversion tab...

Try Now →
Hex → Unicode

Hex to Unicode

Convert hexadecimal code points to Unicode charact...

Try Now →
ASCII → Bin

ASCII to Binary

Convert ASCII text to binary representation. See e...

Try Now →