Two's Complement Converter
Convert between decimal integers and two's complement binary — 8, 16, 32, or 64-bit.
Binary (two's complement)
11010110
Hexadecimal
0xD6
Bit width
8-bit
11010110← sign bit
How two's complement works
Two's complement is the standard way computers represent signed integers. For a positive number, it's the same as unsigned binary. For a negative number: invert all bits and add 1. The most significant bit (MSB) is the sign bit — 0 = positive, 1 = negative.
To work with binary numbers generally, see Binary to Decimal and Decimal to Binary. For bitwise operations, try Bitwise Calculator.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Converters tools
JSON to YAML
Convert JSON into clean, readable YAML instantly.
YAML to JSON
Convert YAML configuration into valid JSON.
JSON to CSV
Flatten a JSON array of objects into CSV rows.
CSV to JSON
Parse CSV with headers into a JSON array of objects.
JSON to XML
Convert JSON structures into nested XML markup.
JSON Minifier
Strip whitespace to produce compact JSON.
JSON to TypeScript
Generate TypeScript interfaces from a JSON sample.
JSON to SQL
Turn a JSON array of objects into SQL INSERT statements.