EditSafely

Flip UTF8 Bits

Invert one or more bits in every UTF8 byte.

Runs on your device, nothing uploaded

Bits to flip (0 = least significant)
Several at once: 0, 7 or 0-3.
Separator
Case
Try:

0 chars · 0 lines

Output

Invert one or more bits in every UTF8 byte.

Type or paste above to see the result here.

Example: Flip bit 0 of 'A'

What you paste never leaves this tab

Flip UTF8 Bits is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Flip UTF8 Bits

  1. 1. Type a short string. Type something like A€. Each of its UTF-8 bytes gets the chosen bits inverted.
  2. 2. Pick the Bits to flip. Tap 0, 5, 6, 7 or All, or tap Custom and type several such as 0, 7 or 0-3 (0 is the least significant bit). The strip above the result shows each new byte with the flipped bits tinted.
  3. 3. Read the verdict and copy. The line under the result shows what the new bytes decode to and whether they are still valid UTF-8; a warning lists the problems when they are not. Copy takes the bytes as hex, with the Separator and Case you chose.

When to use Flip UTF8 Bits

Flip UTF8 Bits inverts specific bits within the byte representation of text, which is a controlled way to generate corrupted data for testing how decoders and parsers react to damaged UTF-8. Unlike random fuzzing, you choose exactly which bit position gets flipped.

  • Testing a decoder's error handling. You maintain a text parsing library and want a repeatable test case where a specific bit in a known-good string gets flipped. This tool produces the exact corrupted bytes to feed into a unit test.
  • Simulating storage bit rot. You want to demonstrate what a single-bit memory error looks like in an otherwise valid UTF-8 file. Flipping one low bit shows how a subtle corruption can still slip past casual inspection.
  • Building malformed input fixtures. A fuzzing suite needs deterministic malformed UTF-8 samples rather than fully random ones. Flipping all 8 bits of every byte in a known string gives you a reproducible worst-case fixture.

Examples

Flip bit 0 of 'A'

Input

A

Output

40

Flip every bit

Input

A€

Output

BE 1D 7D 53

About the Flip UTF8 Bits tool

Flip UTF8 Bits does its work locally, right in the browser. Invert one or more bits in every UTF8 byte. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the UTF-8 Tools collection on EditSafely, a set of 69 small, focused UTF-8 utilities that share the same instant, private workspace.

You can shape the output with 3 settings, including Bits to flip (0 = least significant), Separator and Case, and the result refreshes the moment you change one. 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 soon as your input does, 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

Is Flip UTF8 Bits free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

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.

Related tools

All UTF-8 Tools →