How to remove hidden characters from ChatGPT text

· 3 min read

Text copied from ChatGPT, Claude, Gemini or a web page can contain characters you cannot see: zero-width spaces, non-breaking spaces and direction marks. They are harmless most of the time, but they break search, code, spreadsheets and word counts. Here is how to find and remove them.

Quick fixHidden CharactersReveal zero-width spaces, NBSPs, BOMs and Unicode tags – and remove them safely.Open Hidden Characters

What are hidden characters?

Unicode has dozens of characters that take up no visible space or look exactly like an ordinary space. The ones you are most likely to meet in copied text are:

  • Zero-width space (U+200B): an invisible break opportunity, common in text copied from web pages and chat apps.
  • Non-breaking space (U+00A0) and narrow no-break space (U+202F): look like spaces but are different characters, so searching for “two words” may not find them.
  • Zero-width joiner and non-joiner (U+200D, U+200C): needed inside some emoji and in scripts like Persian or Hindi, but stray copies cause trouble.
  • Byte order mark (U+FEFF), word joiner (U+2060) and soft hyphen (U+00AD).
  • Direction marks (U+200E, U+200F), used for mixing right-to-left and left-to-right text.

Why does AI text contain them?

Most hidden characters arrive through copy and paste rather than from the model itself. Chat apps render answers as HTML, and the browser copies the typography along with the words: non-breaking spaces before units and in dates, zero-width spaces where long words may wrap. Some users have also reported narrow no-break spaces in output from newer models. These characters are not a reliable “AI watermark”, and removing them does not change who wrote a text. The reason to remove them is practical: they cause bugs.

What problems do they cause?

  • Code fails with “invalid character” errors, or two variable names that look identical are different.
  • Find and replace, spreadsheet lookups and duplicate checks miss matches.
  • Lines refuse to wrap, or wrap in odd places, in a CMS or email.
  • Character counters and form limits show more characters than you can see.
  • URLs and email addresses stop working.

Remove them in 30 seconds

  1. Open the Hidden Characters.
  2. Paste your text. Every hidden character is listed by name and code, and highlighted where it sits.
  3. Leave “Turn odd spaces into normal spaces” ticked so non-breaking spaces become ordinary spaces.
  4. Copy the clean text. Characters that are needed, such as the joiner inside a family emoji, are kept unless you choose strict mode.

If the text also has Markdown asterisks, em dashes or extra blank lines, the AI Text Cleaner removes the hidden characters and fixes all of that in one go.

How to find them by hand

Microsoft Word: click the ¶ button (Show/Hide) on the Home tab. Non-breaking spaces show as a small degree sign (°). Zero-width characters stay invisible, but you can search for them: open Find and Replace (Ctrl+H) and type ^u8203 for the zero-width space or ^s for a non-breaking space, then replace with nothing or a normal space.

VS Code and other code editors: VS Code highlights invisible and confusable Unicode characters by default. Notepad++ shows them via View → Show Symbol.

Google Docs has no option to display them, so the quickest route is to paste the text into the tool above and paste the clean version back.

Clean text from a specific assistant

Same cleaner, with notes and default settings for what each assistant tends to leave in copied text.

Works withChatGPTClaudeGeminiGrokDeepSeekCopilotPerplexity

Frequently asked questions

Is a zero-width space a watermark?

No reliable watermark is built from ordinary Unicode characters; they are easily added or lost by copy and paste. Remove them because they cause bugs, not to hide where a text came from.

Will removing them change my text?

No. The visible words stay exactly the same. Only characters with no visible effect, and special spaces you choose to convert, are changed.

Why are some characters kept?

Emoji such as 👨‍👩‍👧 and some scripts need joiners to display correctly, so the tool keeps them unless you switch on strict mode.

Tools used in this guide

More guides

All guides