Skip to content

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

  1. Paste or type your Integer into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. 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).

Browse all number converters →