Home / Developer Tools / Two's Complement Calculator
Developer Tools

Two's Complement Calculator

Work with explicit bit widths and signed ranges instead of treating a leading 1 as an unsigned value.

Two's complement uses an explicit signed bit width.

How to use this Two's Complement Calculator

Encode signed decimal integers as two's-complement bits or decode a bit pattern back to signed decimal. Enter your values above and the result is calculated directly in your browser. No account is required.

Fast answer, clear inputs

This tool is built around one job: give the answer quickly without forcing a signup or hiding the result. Related tools are linked nearby when the next calculation or conversion is useful.