TXT · Text & Data tools

Bitwise NOT Calculator

Operand A
expression

NOT 0x000000F0 = 0xFFFFFF0F

32-bit result

1111 1111 1111 1111 1111 1111 0000 1111

Unsigned decimal
4294967055
Hexadecimal
0xFFFFFF0F
Octal
0o37777777417
Go to the full Bitwise Calculator

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Bitwise NOT calculator

Invert every bit of a single integer and read the result as unsigned decimal, hexadecimal, octal, and 32-bit padded binary. NOT takes only one operand; the second input field is not used.

Word-size dependence

NOT does not have one universal result for a given input. The answer is determined by how many bits are in the word. On this page the word is fixed at 32 bits, so NOT 0 produces 0xFFFFFFFF (4294967295) and NOT 0xFFFFFFFF produces 0. For an 8-bit result (0xFF for NOT 0), use the full Bitwise Calculator.

Fixed 32-bit word

Input accepts decimal, hexadecimal (0xFF), binary (0b10110010), and octal (0o377) automatically. The result is always unsigned. For signed output or a different word size, use the full Bitwise Calculator.

Frequently Asked Questions

Bitwise NOT flips every bit in the entire word, not just the lowest bit. In a 32-bit word, NOT 0 (`00000000 00000000 00000000 00000000`) becomes `0xFFFFFFFF` (4294967295 unsigned).

In two's complement arithmetic, a bitwise NOT followed by adding 1 gives the negative version of the number. The NOT alone flips the sign bit but shifts the final negative value by one.

JavaScript applies a bitwise NOT on a 32-bit signed integer. For example, `~5` returns `-6`. It is a compact way to calculate `-(x + 1)` for any 32-bit integer.

Specific bitwise operations

Full Bitwise Calculator tool

Explore Our Tools

Browse all tools