โTwo's Complement Calculator
Convert signed integers to two's complement binary, step by step.
Free Two's Complement Calculator
Our free two's complement calculator converts any signed decimal integer into its two's complement binary representation for a chosen bit width โ 4, 8, 16, or 32 bits โ and shows every step: writing the magnitude in binary, inverting the bits, and adding 1. It also works in reverse, decoding a two's complement binary string back to its signed decimal value.
Two's complement is the standard way computers represent negative integers, because it lets addition and subtraction use the same circuitry for both positive and negative numbers. The calculator flags overflow when a value falls outside the representable range for the selected bit width, so you can see exactly why a number wraps around.
Built for computer science students learning number representation, and for anyone debugging low-level code who needs a quick, reliable conversion. No sign-up, no downloads โ just instant, accurate results.