Bitwise NOT Calculator
Calculate ~A online and see how every bit flips inside the selected bit width.
46 Bin00101110 Hex0x2E NOT Result
Bit-by-Bit Visualization
NOT Truth Table
Click a row to load a value into A and inspect the NOT result.
| Input A | NOT A |
|---|---|
| 0 | 1 |
| 1 | 0 |
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.
| Input | Operation | Result | Use |
|---|---|---|---|
~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.