AI Text Cleaner

An AI text cleaner removes the invisible characters, Markdown symbols and odd spaces that come along when you copy text from ChatGPT, Claude or Gemini. Paste your text, tick what you want removed, and copy the clean result. It also lists every hidden character it finds, so you can see exactly what was in there.

  • 100% free
  • No sign-up
  • Runs in your browser
  • Updated
Em dashes (—)
Invisible removed
5
Odd spaces fixed
1
Markdown marks
5
Dashes replaced
0

Hidden and unusual characters found: 6

Code pointNameCount
U+200BZero width space3
U+00A0No-break space1
U+00ADSoft hyphen1
U+FEFFByte order mark (zero width no-break space)1

Key takeaways

  • Removes zero width spaces, soft hyphens, byte order marks and direction marks, and swaps no-break spaces for normal ones.
  • Strips Markdown such as ** and # and can replace em dashes with a comma or a hyphen.
  • The sample text on this page contains 6 hidden or unusual characters that you cannot see; the tool finds and lists all of them.
  • It cleans formatting only. It does not hide that text came from an AI and it does not beat AI detectors.

How to use the AI Text Cleaner

  1. 1Paste your text into the box. A sample with hidden characters is already there so you can see how it works.
  2. 2Choose what to remove: invisible characters, odd spaces, Markdown marks, curly quotes. Pick Keep, Comma or Hyphen for em dashes.
  3. 3Read the counts and the table of hidden characters to see what was found.
  4. 4Press Copy cleaned text, or Use result as input to run another pass.

How do I remove invisible characters from ChatGPT text?

Paste the text into the cleaner with Remove invisible characters ticked, and copy the result. The tool deletes zero width spaces, word joiners, soft hyphens, byte order marks and text direction marks, which are the characters that print nothing but still sit inside your text.

You usually notice them by their side effects: a search that fails on a word you can see, a count that is off by a few characters, or a cursor that seems to skip. The table under the result lists each code point, its name and how many times it appeared. Counting characters afterwards with our word counter is a quick way to confirm the text got shorter.

What are invisible characters and why do they appear?

Invisible characters are Unicode code points that have no visible shape. Unicode defines them for real jobs: a zero width space marks a place where a line may break, a soft hyphen marks where a word may be split, and direction marks help mix left-to-right and right-to-left scripts.

They end up in pasted text for ordinary reasons. Web pages, word processors and chat interfaces insert them for layout, and copying carries them along. Some are also added by people on purpose, for example to hide instructions inside text. Whatever the source, they are harmless in a chat but cause trouble in code, spreadsheets, form fields and file names.

How do I remove asterisks and hashes from ChatGPT text?

Tick Remove Markdown marks. The tool removes heading hashes, bold and italic asterisks, inline code backticks, code fences and quote markers, and turns Markdown links into plain text with the address in brackets. Lines that start with an asterisk become a hyphen list.

AI assistants write in Markdown, so the symbols show up as soon as you paste into a program that does not render it, such as an email or a form. If you would rather keep the structure and get a document, the ChatGPT to Word converter turns the same Markdown into real headings, lists and tables. If you only want plain text, this tool is the quick fix. It leaves a lone asterisk in a sum like 2*3*4 alone, since that is not formatting.

To check what changed after cleaning, compare the two versions in the text diff tool.

Lines that break in odd places after pasting are a separate problem. The line break remover joins them back into full sentences and keeps the blank line between paragraphs.

Going the other way? When you want to give an AI assistant a web page with its headings and lists kept, run the page through the HTML to Markdown converter first.

Can I replace em dashes in AI text?

Yes. Set Em dashes to Comma or Hyphen. Comma turns a spaced dash into a comma and a space, and Hyphen turns it into a spaced hyphen, or a plain hyphen when the dash has no spaces around it. Keep leaves them alone.

Em dashes are normal punctuation, and many human writers use them. Some people simply prefer a different style, or need plain ASCII for a system that mangles them. Replacing a dash can change the rhythm of a sentence, so read the result once. En dashes, which are used in ranges like 10–20, are not touched.

Does this remove AI watermarks or bypass AI detectors?

No. This tool removes formatting leftovers and hidden characters. It makes no claim to remove watermarks, and it will not make AI-written text pass an AI detector. Detectors look at wording and statistics, not at invisible characters.

Be careful with any tool that promises otherwise. If a platform or school asks you to disclose AI use, cleaning the formatting does not change that duty. For a tidy way to remove repeated lines from a long answer, see the remove duplicate lines tool.

Is it safe to paste private text here?

Yes. The cleaning runs as JavaScript inside your browser tab. Your text is not uploaded, stored or logged, and the page keeps working if you go offline after it has loaded. Even so, avoid pasting passwords or secrets into any web page as a habit. If your text started as a recording, the audio to text converter also runs entirely on your device.

Worked example

A worked example with hidden characters

The sample text has 217 characters. It contains 6 hidden or unusual characters: 3 × zero width space (U+200B), 1 × no-break space (U+00A0), 1 × soft hyphen (U+00AD), 1 × byte order mark (zero width no-break space) (U+FEFF). With every default option on and em dashes set to Comma, the tool removes 5 invisible characters, fixes 1 odd space, strips 5 Markdown marks and replaces 1 em dash.

Before (a slash marks a new line): ## Quick summary / / Here is a **short** answer with a hidden zero width space and a softhyphen. / / * First point — written with an em dash / * Second point uses a no-break space / / Use `npm run build` before you publish.

After: Quick summary / / Here is a short answer with a hidden zero width space and a softhyphen. / / - First point, written with an em dash / - Second point uses a no-break space / / Use npm run build before you publish.

The cleaned text is 202 characters long. The "before" line above is shown without its hidden characters, because they cannot be displayed; that is the point of the tool.

Common hidden characters

The characters this tool looks for most often, with their Unicode code points.

Code pointNameVisible?Usual source
U+200BZero width spaceNoLine-break hints on web pages and in chat apps
U+00ADSoft hyphenOnly at a line breakHyphenation in documents
U+FEFFByte order markNoStart of files saved by some editors
U+2060Word joinerNoStops a line break between two characters
U+200E / U+200FLeft-to-right / right-to-left markNoMixed-direction text
U+00A0No-break spaceLooks like a spaceWord processors and web pages
U+200DZero width joinerNoJoins emoji and letters in some scripts

Zero width joiners are kept by default because removing them breaks emoji such as family and profession symbols.

Frequently asked questions

What is an AI text cleaner?

An AI text cleaner is a tool that tidies text copied from an AI assistant. It removes hidden Unicode characters, strips Markdown symbols such as asterisks and hashes, swaps odd spaces for normal ones and can replace em dashes. It changes formatting only, not the meaning of the words.

How do I remove invisible characters from text?

Paste the text into the cleaner and leave Remove invisible characters ticked. It deletes zero width spaces, soft hyphens, byte order marks and direction marks, then shows a table of every code point it found. Copy the result back into your document, form or code editor.

Does ChatGPT put hidden characters in its answers?

Not reliably, and no tool can promise it. Hidden characters usually come from the web page, app or document you copy from. Some text does contain them, and they are easy to miss. Pasting into this tool tells you in a second whether your text has any.

Will removing these characters make text undetectable as AI?

No. AI detectors judge wording and writing patterns, not invisible characters, so cleaning does not change a detector's result. This tool does not remove watermarks and is not meant to hide AI use. Use it to fix pasted formatting, not to disguise where text came from.

Why do asterisks and hashes appear in AI answers?

AI assistants write in Markdown, where **bold** and # headings are formatting codes. Chat apps turn them into styled text. When you paste into an email, form or plain editor, nothing renders them, so the raw symbols show. Tick Remove Markdown marks to strip them.

Is it safe to remove zero width joiners?

It can break text. Zero width joiners glue emoji together, as in family and profession emoji, and are needed in some scripts such as Persian and Hindi. That is why this tool keeps them by default. Untick the keep option only if you are sure your text is plain English.

Sources

Last reviewed by the ToolsFiesta team.

Related tools