Two’s Complement Converter
Convert signed integers to and from two’s complement binary and hex at 8, 16, 32 or 64 bits.
Runs in your browserInteger → Binary / hex
Loading tool…
How to use the Two’s Complement Converter
- Paste or type your Integer into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the Binary / hex result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Frequently asked questions
How do I find the two’s complement of a number?
Invert all the bits and add 1. At 8 bits, 42 is 0010 1010, so -42 is 1101 0110 (0xD6, or 214 unsigned).
Related converters
Bitwise NOT CalculatorInvert every bit of a value (one’s complement) at a chosen width and see the signed and unsigned result.Bitwise CalculatorCalculate AND, OR, XOR, NOT, NAND, NOR, XNOR and bit shifts at 8, 16, 32 or 64 bits with decimal, hex and binary results.Decimal to Binary ConverterConvert decimal numbers to binary (base 2), with optional 4- or 8-bit digit grouping. Handles huge and negative numbers.Percentage CalculatorWork out X% of Y, what percent X is of Y, percentage change, increases, decreases and percentage difference.Fraction to Decimal ConverterConvert fractions and mixed numbers to decimals, rounded to a chosen precision or with repeating digits marked.Decimal to Fraction ConverterConvert decimals, including repeating decimals like 0.(3), to simplified fractions or mixed numbers.Scientific Notation ConverterConvert numbers to and from scientific, E or engineering notation exactly, with optional significant-figure rounding.Words to Number ConverterConvert English number words like "two thousand and twenty-four" back into digits, including decimals.