Bitwise NOT Calculator

Calculate ~A online and see how every bit flips inside the selected bit width.

Number A
Dec46 Bin00101110 Hex0x2E

NOT Result

NOT (~A)
Dec0
Hex0x00
Bin00000000

Bit-by-Bit Visualization

1 Active bit 0 Diff bit 0 Included zero 0 Leading zero

NOT Truth Table

Click a row to load a value into A and inspect the NOT result.

Input ANOT A
01
10
Click a truth table row to test those values.

How the Bitwise NOT Calculator Works

A bitwise NOT calculator inverts every bit in the selected width. Because NOT depends on width, 8-bit, 16-bit, 32-bit, and 64-bit views can produce different displayed values.

NOT Rule

Each 1 becomes 0 and each 0 becomes 1 inside the chosen bit width.

Width Matters

A fixed width controls how many leading bits are included in the complement.

Signed View

Signed output uses two’s complement interpretation for negative integer checks.

Visual Flip

The bit grid shows every position that changes after the inversion.

Bitwise NOT Calculation Steps

Use these steps to calculate a bitwise complement.

Choose a Bit Width

  • Select 8, 16, 32, or 64 bits when width matters.
  • Use auto for quick unsigned inspection.
  • Pad the binary value to that width.

Invert Every Bit

  • Change each 1 to 0.
  • Change each 0 to 1.
  • Keep all included zeros inside the width.

Interpret the Result

  • Read the unsigned decimal output.
  • Switch to signed mode when checking two’s complement.
  • Use hex output for compact debugging.

Bitwise NOT Examples

NOT examples show why selected width affects the complement.

InputOperationResultUse
~00101110 8-bit NOT 11010001 Byte complement
~00001111 8-bit NOT 11110000 Nibble inversion
~0x2E 8-bit NOT 0xD1 Hex complement
~46 8-bit NOT 209 unsigned Width-limited decimal

Why Use This Bitwise NOT Calculator?

Use this NOT calculator when you need a clear complement result with fixed-width behavior.

Binary Input Support

Enter values as binary strings and inspect how each bit contributes to the final answer.

Decimal and Hex Views

Compare the same result in decimal, binary, and hexadecimal without switching tools.

Visual Bit Diagram

Use the bit grid to see active bits, included zeros, leading zeros, and changed positions.

Configurable Width

Choose auto, 8-bit, 16-bit, 32-bit, or 64-bit output for programming-style results.

Practical Uses for Bitwise NOT

NOT is useful for complements, inverse masks, and two’s complement learning.

Masks and Flags

Build masks for permissions, settings, protocol fields, and low-level feature toggles.

Low-Level Debugging

Check bit patterns while reviewing firmware, embedded registers, or systems code.

Networking

Inspect headers, subnet masks, and packed fields that depend on bit-level operations.

Packed Values

Read color channels, compact identifiers, and integer fields stored inside one word.

Frequently Asked Questions

Find answers to common questions about bitwise operations and this online tool.

What is a bitwise NOT calculator?
A bitwise NOT calculator is an online tool that calculates NOT results and shows the answer in binary, decimal, and hexadecimal formats.
Can I use binary input in this bitwise NOT calculator?
Yes. Select Binary for Number A or Number B, enter a bit string, and the calculator converts the same value into decimal and hexadecimal.
Why do leading zeros appear in the result?
Leading zeros show the selected bit width. Included zeros inside the active value are highlighted differently so they are not confused with padding.