Original Code / One's Complement / Two's Complement Calculator

Enter an integer to find its Original Code/One's Complement/Two's Complement

Enter Integer
Bit Selection
Original Code
One's Complement
Two's Complement

Original Code / One\'s Complement / Two\'s Complement Converter

This converter is a professional data-representation tool that quickly and accurately converts integers into their original code, one\'s complement, and two\'s complement forms. It supports bit widths from 8 to 128 bits, plus a custom width option (1-256 bits). It is especially suitable for computer science study, digital circuit design, and programming, and helps you understand how integers are stored and represented in computers.

How to Use

  1. Enter the integer you want to convert (positive or negative) in the input box.
  2. Select the bit width from the dropdown (8/16/32/64/128 bits or custom).
  3. Choosing "Custom" reveals an extra input where you can set a specific width (1-256).
  4. Click the "Convert" button or press Enter to view the results in all three binary representations.

Notes

  • Pay attention to the sign-bit representation differences when converting negative numbers.
  • Results for custom widths above 128 bits are for theoretical reference only.
  • The two\'s complement is the actual representation used by computers for storage.
  • Very wide conversions may take longer to compute.