Math & Number Utilities100% Client-Side

Apply Bitwise NOT to Binary Values

Paste one unsigned binary value to flip each bit in place. A zero becomes one and a one becomes zero. The calculator preserves the length of the supplied field after removing prefixes and separators. Use it to compare a bitwise complement with an expected mask. Keeping the output width makes it practical to check positions that turn into zeroes at the front of the value.

Input
4 chars•1 lines
Output

How to Use the Bitwise NOT Calculator for Binary Text

  1. 1Paste one unsigned binary value and keep the leading zeroes that are part of its field.
  2. 2Use only binary digits in the magnitude, with an optional 0b prefix and single underscores between digit groups.
  3. 3Compare the positions in your output with the original field to check how the transformation treated them.
  4. 4Copy the complete bit string, including any leading zeroes. Record the input width alongside its expected result.

Input & Output Examples

Every original bit is replaced by its opposite.

Input Sample
0101
Expected Output
1010

The prefix and underscore are removed. All four bits are flipped, including the first one.

Input Sample
0b10_01
Expected Output
0110

Practical Developer Workflows

  • Check a four-bit complement against a fixture.
  • Compare the result of applying NOT to fields with different widths.
  • Verify that a second NOT operation returns the original bit pattern at the same width.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

It uses the number of original bits after removing the optional prefix and underscores. The result keeps one position for every input bit, so 0011 produces 1100. A wider field with more leading zeroes also gets a wider result.

Explore Other Tools

12 suggested tools

View all tools