NOT Integers
Bitwise-NOT each integer within a fixed bit width. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use NOT Integers
- 1. Paste your integers. Enter one or more integers, separated by spaces or newlines, so each is treated as a binary value to invert.
- 2. Set the bit width. Choose Bit width from 8-bit, 16-bit, 32-bit or 64-bit to define how many bits each integer occupies before every bit is flipped.
- 3. Copy the inverted result. Copy the resulting integers, where every bit within the chosen width has been flipped from 0 to 1 or 1 to 0.
When to use NOT Integers
NOT Integers flips every bit of each integer within a fixed bit width, producing the ones complement of the value. Use it when you need the bitwise inverse of a number for logic operations, masking or low-level format work.
- Computing a bitmask complement. You have a bitmask representing which flags are set and need the inverse mask, representing which flags are unset, at a specific bit width.
- Verifying a ones complement calculation. You are studying how ones complement representation works for negative numbers and want to confirm the bitwise NOT of specific integers at a chosen width.
- Testing a bitwise NOT implementation. You wrote code that inverts bits at a fixed width and want a trusted reference output for edge cases like zero and the maximum value to validate against.
- Debugging a hardware register value. You are working with a device register where inverted bits represent a specific state, and want to confirm the inverted value at the register's actual bit width.
Examples
Invert all 8 bits of zero
Input
0
Output
255
NOT is its own inverse
Input
255 1
Output
0 254
About the NOT Integers tool
NOT Integers does its work locally, right in the browser. Bitwise-NOT each integer within a fixed bit width. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Integer Tools collection on EditSafely, a set of 133 small, focused Integer utilities that share the same instant, private workspace.
You can shape the output with the Bit width setting, and the result refreshes the moment you change it. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Does NOT Integers cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.