jarvisbox

Remove Invisible Characters from Text

Invisible Unicode characters hide in copied text, AI output, and web content, causing mysterious bugs in code, YAML, and string comparisons. Remove all of them in one step.

The Invisible Unicode Character Detector detects and removes invisible characters across all major categories: zero-width spaces, BiDi control characters, non-breaking spaces, soft hyphens, typographic space variants, and Unicode tag characters used in prompt injection attacks.

After pasting text and clicking Analyze, the tool shows a summary table listing every invisible character found by codepoint, name, risk level, and count. The Cleaned text panel below contains the same text with all invisible characters stripped — visible characters and standard ASCII spaces are preserved exactly as-is. Click Copy to send the clean text to your clipboard.

Unlike a simple regex replacement (/[​-‍]/g), the tool covers over 30 distinct invisible Unicode code points including the less-known BiDi isolate controls (U+2066–U+2069) and the tag character block (U+E0000–U+E007F) used in invisible AI prompt injections.

How to remove invisible characters from text

  1. Navigate to the main detector tool and paste the text you want to clean into the input area.
  2. Click Analyze. If invisible characters are present, the risk table will list each one. The Grapheme clusters, Code points, and UTF-16 units counts help you verify the text length after cleaning.
  3. Click Copy under the Cleaned text panel to get the sanitised version. Paste it wherever the original was — it is byte-for-byte identical except the invisible characters are gone.

Other invisible character scenarios

回報這個工具的問題