Text Cleaner

“Text cleaner” gets used for three different jobs, and mixing them up is why people end up disappointed. This one does exactly one of the three: it finds and removes the invisible and typographic characters that ride along in copied text — zero-width spaces, smart quotes, non-breaking spaces, tag characters — and leaves your actual words, line breaks and paragraph formatting exactly as you pasted them. Free, no sign-up, and it runs in your browser rather than on a server.

Cleaning happens in your browser: that text never leaves this page, and there is no upload, no account and no limit. Rewrite is the exception — that one sends your text to our server.

Three things people call a "text cleaner"

Before you paste anything in, it's worth checking which of these three you actually need — because this tool only does the third one, on purpose.

If you searched "text cleaner" wanting the first or second job, this is the wrong tool and no amount of clicking around will make it do something it doesn't. If your text looks completely normal but is somehow causing a problem, keep reading — you're probably in the right place.

Why invisible characters need their own cleaner

Nothing you type on a keyboard produces a zero-width space or a tag character. They arrive as passengers: copy a reply out of an AI chat window and the characters the interface used to render that reply come along with your words. Copy a paragraph out of a PDF and the soft hyphens the original document used to control line breaks come with it. Paste out of Word or Google Docs and autocorrect has already swapped your straight quotes for curly ones and your double hyphen for an en dash. None of it shows up on screen. All of it can survive into a place that was not expecting it.

What actually happens when you press Clean

The box above reads your text one character at a time, decides whether each one has a visible shape, and only touches the ones that don't. Everything with a shape — letters, numbers, accented characters, emoji, punctuation you actually typed — passes through unchanged. The one optional exception is the checkbox above the box: switch it on and curly quotes, en dashes and em dashes are also straightened into a plain apostrophe, quote mark or hyphen, because those are a common source of the same kind of breakage even though they are visible. Turn the checkbox off and even that stops.

Where this saves people time

Questions

Does a text cleaner remove extra spaces and line breaks?

Not this one. It only removes characters with no visible shape and, optionally, straightens curly quotes and dashes. Multiple spaces, blank lines and paragraph breaks are left exactly as you pasted them — that kind of tidying is a different job, usually handled by your word processor's own find-and-replace.

Will this change the words or formatting of my text?

No. Every character that has a visible shape passes through unchanged. The only visible change it can make is turning curly quotes and long dashes into straight quotes and a plain hyphen, and that is optional — the checkbox above the box switches it off.

Is there a limit to how much text I can clean?

No account, no upload and no limit. The cleaning happens entirely in your browser, so the only ceiling is how much text your browser tab can hold.

Does it matter whether the text came from an AI chat, a PDF or Word?

No — the tool matches characters, not sources. Text copied out of ChatGPT, Claude, Gemini, a PDF reader, Word or a web page is checked exactly the same way.

Can a text cleaner fix an "invalid character" error on a form?

Often, yes — if the rejection is caused by an invisible character riding along in a paste. If the form is instead rejecting visible symbols such as accented letters or emoji, that is a different problem this tool leaves alone on purpose; see the special characters remover page for that distinction.

What this tool cannot remove

There are two different things people call an "AI watermark".

  • Invisible and typographic characters. This tool removes named characters that carry no visible glyph at all, as defined by the Unicode standard — not a number we made up. It also turns different space variants, including the narrow no-break space, into an ordinary space. Curly quotes and dashes go through a separate, optional step — typographic replacements, switched on by default; turn that option off and they stay exactly as typed. It also clears the three Unicode private-use ranges, including the tag range U+E0000–U+E007F used to hide data in plain text — those ranges hold no standard characters of their own, so we describe them rather than dress them up as a character count.
  • A statistical watermark in the word choice itself. Google's SynthID-Text, live in Gemini since May 2024, is documented to change no characters at all, so no character cleaner — ours included — has anything to catch. Anthropic has marked Claude's output the same way since 2 August 2026, to comply with the EU AI Act, but its own explanation (support.claude.com) confirms only that the mark exists, not how it works — so we can't promise it is built the same way SynthID is. What we can say: a character cleaner like this one only ever touches Unicode characters, and no watermark that relied on those would survive an ordinary copy-paste, so there is nothing here for it to remove either way. As of 10 September 2026, OpenAI's own content-provenance page lists a text watermark for neither ChatGPT nor its API.

If a tool promises to strip "the AI watermark" without making this distinction, it is describing the first thing while letting you believe it does the second.

Related tools

It is one cleaner behind all of these pages — the same characters, the same button. Only the explanation around it changes, so pick whichever matches your problem.

Illustrated portrait of Sam RidderBy Sam Ridder — I build and run TextNinja on my own hardware, on my own. Who I am.