⚡ Free Bitwise Calculator

Binary NOT Calculator

Use the free Binary NOT Calculator to instantly invert every bit in a binary number. The bitwise NOT operation changes each 0 to 1 and each 1 to 0 while preserving the original bit width. Enter any binary value below to calculate its one’s-complement bit pattern with an instant result.

✓ Free Unlimited Use ✓ Instant Result ✓ Preserves Bit Width ✓ No Signup
NOT
Binary NOT
● Ready
0 and 1 only
Enter a binary value to invert its bits.
Try:
✓ Binary NOT Result
Bitwise inversion result
Bit Width 0
Result 1s 0
Result 0s 0

What Is a Binary NOT Operation?

Binary NOT is a unary bitwise operation that reverses every bit in a binary number. It uses only one input, unlike AND, OR, and XOR, which normally compare two binary values.

For each position, a 0 becomes 1 and a 1 becomes 0. The result keeps the same bit width as the original input, so leading zeros remain important.

Input: 101101 Apply NOT: 1 → 0
0 → 1
1 → 0
1 → 0
0 → 1
1 → 0
Result: 010010

Binary NOT Truth Table

The NOT operation has only two possible one-bit inputs.

Input Bit NOT Result
01
10
Core rule: every bit is replaced by its opposite state.

How to Calculate Binary NOT Manually

Write the binary number

Start with the complete bit pattern, including any leading zeros that are part of the intended width.

Read each bit separately

The calculation is performed independently on every position.

Change every 0 to 1

Each zero bit is inverted and becomes one.

Change every 1 to 0

Each one bit is inverted and becomes zero.

Keep the original width

Do not remove leading zeros from the result because they represent inverted bit positions.

Worked Example: NOT 101101

Position Input NOT
110
201
310
410
501
610
NOT 101101 = 010010

More Binary NOT Examples

Input Bit Width NOT Result
01 bit1
11 bit0
10104 bits0101
00004 bits1111
11114 bits0000
1011016 bits010010
111100008 bits00001111
000001018 bits11111010

Why Bit Width Matters in Binary NOT

The result of a NOT operation depends on how many bit positions are included. This is one of the most important points to understand when working with bitwise inversion.

Four-bit representation: 0101 → NOT → 1010 Eight-bit representation: 00000101 → NOT → 11111010

Both original values represent decimal 5 as unsigned binary numbers, but the NOT results differ because one calculation uses four bits and the other uses eight.

Important: always know the intended bit width when using NOT with registers, masks, signed values, programming integers, or fixed-width data.

Binary NOT and One's Complement

Applying NOT to every bit of a fixed-width binary number produces its one's complement.

Original: 10110010 One's complement: 01001101

For that reason, Binary NOT and one's-complement bit inversion produce the same bit pattern when the same width is used.

Binary NOT vs Two's Complement

Binary NOT should not be confused with two's complement. NOT only flips the bits. Two's complement requires one additional step.

Start with the original binary number

For example, use the 8-bit value 00000101.

Apply Binary NOT

Flipping every bit gives 11111010.

Add one

Adding 1 produces 11111011, which is the 8-bit two's-complement representation of -5.

Difference: one's complement = invert the bits. Two's complement = invert the bits and then add 1.

Applying Binary NOT Twice

NOT is its own inverse. If every bit is inverted and then inverted again, the original value returns.

A = 101101
NOT A = 010010
NOT (NOT A) = 101101

This is the bitwise form of double negation.

NOT of All Zeros and All Ones

All zeros

Every 0 becomes 1, so NOT 00000000 = 11111111.

All ones

Every 1 becomes 0, so NOT 11111111 = 00000000.

Binary NOT and Decimal Values

A NOT result can be converted to decimal, but its meaning depends on both the bit width and whether the value is interpreted as unsigned or signed.

Using 8 bits: 00000101₂ = 5₁₀ Apply NOT: 11111010 As an unsigned 8-bit number: 11111010₂ = 250₁₀

If 11111010 is interpreted as an 8-bit signed two's-complement integer, it represents -6 instead. The bits are identical; only the numerical interpretation changes.

Fixed-Width Binary NOT Formula

For an unsigned integer x represented using exactly n bits, the fixed-width NOT result can be calculated numerically with:

NOTₙ(x) = (2ⁿ - 1) - x

For example, if x = 5 and the width is 8 bits:

2⁸ - 1 = 255
255 - 5 = 250
Therefore: NOT₈(5) = 250 Binary verification: 00000101 → 11111010

Binary NOT vs AND, OR, and XOR

Operation Inputs Main Rule
NOT 1 Flip every bit.
AND 2 1 only when both corresponding bits are 1.
OR 2 1 when at least one corresponding bit is 1.
XOR 2 1 when corresponding bits are different.

Binary NOT and XOR with an All-Ones Mask

For a fixed bit width, XORing a value with all ones produces the same output as applying NOT.

Original: 101001 Binary NOT: 010110 XOR with six 1 bits: 101001 XOR 111111 = 010110

Every bit differs from 1 exactly when that bit is 0, so the XOR mask flips the complete bit pattern.

Where Is Binary NOT Used?

Programming

Invert bit fields, create complementary masks, manipulate flags, and perform low-level integer operations.

Bitmasks

Reverse selected and unselected positions when creating exclusion or inverse masks.

Embedded Systems

Invert fixed-width hardware registers and control masks in microcontroller applications.

Digital Logic

A NOT gate, also called an inverter, outputs the opposite Boolean state of its input.

Networking

Complemented masks and fixed-width address operations can require binary inversion.

Computer Science

NOT is fundamental to Boolean algebra, bit manipulation, logic gates, and binary representation.

Common Binary NOT Mistakes

Ignoring the width

NOT of a four-bit value and NOT of an eight-bit representation can produce different binary results.

Removing leading zeros

Leading zeros are real bit positions in a fixed-width operation and must also be inverted.

Confusing NOT with two's complement

NOT only flips the bits. Two's complement requires adding 1 after the inversion.

Assuming one decimal interpretation

Signed and unsigned interpretations can assign different decimal values to the same bit pattern.

Entering digits other than 0 and 1

A valid binary bit pattern contains only binary digits.

Related BinaryCon Tools

Continue with complementary binary and bitwise tools.

Binary NOT Calculator FAQs

What is Binary NOT?
Binary NOT is a unary bitwise operation that flips every bit. Each 0 becomes 1, and each 1 becomes 0.
What is NOT 0?
NOT 0 = 1.
What is NOT 1?
NOT 1 = 0.
What is NOT 1010?
At a four-bit width, NOT 1010 = 0101.
What is NOT 101101?
The six-bit result is 010010.
What is NOT 11110000?
The eight-bit result is 00001111.
Does Binary NOT preserve leading zeros?
Yes. The bit width is important, so leading zeros must be preserved because they become ones after inversion.
Why does bit width matter?
NOT flips every available bit position. A wider representation includes more positions and therefore produces a different complement.
Is Binary NOT the same as one's complement?
Yes, when applied to the same fixed-width bit pattern, Binary NOT produces the one's-complement result.
Is Binary NOT the same as two's complement?
No. Binary NOT flips the bits. Two's complement requires flipping the bits and then adding 1.
What happens when NOT is applied twice?
The original value returns because each bit is inverted twice.
What is NOT of all zeros?
All zeros become all ones at the same width. For example, NOT 0000 = 1111.
What is NOT of all ones?
All ones become all zeros. For example, NOT 1111 = 0000.
Can NOT be calculated using XOR?
Yes. XORing a value with an all-ones mask of the same width flips every bit, producing the same bit pattern as NOT.
What is the formula for an unsigned n-bit NOT result?
For an unsigned n-bit integer x, the fixed-width result is (2ⁿ - 1) - x.
Why can a NOT result look negative in programming?
Many programming languages use fixed-width signed integer representations. If the inverted result has a leading 1, that bit pattern may be interpreted as a negative two's-complement number.
Can BinaryCon handle long binary values?
Yes. The calculator works directly with the entered binary string and does not need to convert the full value into a normal floating-point number.

Understand Binary NOT with Confidence

Use BinaryCon to invert binary values, preserve exact bit widths, study one's complement, compare bitwise operations, and verify Binary NOT calculations with clear examples and practical explanations.

Scroll to Top