Mirror ASCII Bits Online
Flip (invert) the bits of each ASCII character to produce new characters. Every 0 becomes 1 and every 1 becomes 0.
Paste ASCII text, flip every bit, and get the inverted result — each 0 becomes 1, each 1 becomes 0. Handy for checksums, XOR ciphers, one's complement math, or just seeing what a character turns into when you invert its byte. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter your text in the left panel. You can type, paste, or click Sample for example text.
Choose the bit width (7-bit or 8-bit) and output mode (characters, hex, or decimal). Optionally enable Show Binary to see the before/after bits.
Click Flip Bits or leave Live mode enabled for real-time conversion as you type.
Copy, Download, or Swap the result. Swap moves the output into the input for double-flipping (which restores the original).
Frequently Asked Questions
What does "flipping bits" mean?
Flipping bits (also called bitwise NOT or bit inversion) means changing every binary digit of a value: each 0 becomes 1, and each 1 becomes 0. For example, the letter "A" in ASCII is 01000001 in 8-bit binary. Flipping all bits produces 10111110, which equals 190 in decimal. This operation is fundamental in computing and is used in checksums, encryption, data masking, and low-level programming.
What is the difference between 7-bit and 8-bit mode?
Standard ASCII uses 7 bits, representing values 0 through 127. In 7-bit mode, only the lower 7 bits are flipped (using a mask of 0x7F = 1111111), so results always stay within 0-127. In 8-bit mode, all 8 bits are flipped (using a mask of 0xFF = 11111111), producing values from 0 to 255. Extended ASCII and Latin-1 use the full 8-bit range, so 8-bit mode is useful when working with those character sets.
Why does flipping bits twice restore the original text?
Flipping bits is its own inverse operation. If you flip a 0 to 1, flipping it again returns it to 0. Mathematically, applying a bitwise NOT twice is an identity operation: NOT(NOT(x)) = x. This makes bit flipping a simple symmetric transformation, which is why the Swap button lets you verify that the original text is perfectly recovered.
Can bit-flipped characters be non-printable?
Yes. Many ASCII characters map to non-printable control characters (values 0-31 and 127) or extended characters (128-255) after bit flipping. In character output mode, these may display as blank squares, question marks, or other placeholder glyphs depending on your browser and font. Switching to hex or decimal output mode lets you see the exact numeric values regardless of whether they are printable.
What are practical uses of bit flipping?
Bit flipping is used in many areas of computing: calculating one's complement in signed number systems, creating simple data obfuscation, generating bitmask inversions for network subnet calculations, testing error-detection algorithms, building XOR-based ciphers (XOR with all 1s is equivalent to NOT), and exploring low-level binary representations for educational purposes.