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.
Last updated: September 2026
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.
- Whitespace and line-break tidiers. Collapsing double spaces, stripping blank lines, trimming the start and end of a paragraph. This tool does not do that: every space and every line break you paste in comes out exactly where it went in.
- Case and format converters. Turning text into UPPERCASE or Title Case, or stripping Markdown and HTML tags. Also not this tool: it does not change a single letter of what you typed.
- Hidden-character strippers. Removing characters that have no visible shape at all, so nothing on screen changes but the underlying text does. That is what this page does, and it is a narrower, quieter job than the other two: which is exactly why a general text editor's find-and-replace does not catch it.
"Text cleaner" can mean three different jobs: if you wanted the first or second one, 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.
Related: Invisible Text: Copy and Paste a Blank Character.
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
- A CSV or JSON import that fails on the very first line: usually a byte-order mark left over from how the file was exported.
- A form that rejects a pasted answer with no explanation, when the same text typed by hand goes through fine.
- A search box that can't find text you can clearly see on the page, because a non-breaking space stands in for one of the spaces you're searching for.
- Two strings that look identical in code but fail an equality check, because one of them has an invisible character the other doesn't.
- A character or word count that comes out a few characters higher than you'd expect for the text you can see.
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.
Does a text cleaner touch a text watermark?
Not a statistical one. This text cleaner removes characters with no visible shape and, optionally, straightens curly quotes and dashes. A watermark built into the word choices is outside what it can change.
Is "cleanup text" the same job as this tool?
Usually, yes. "Cleanup text", "clean up text" and "text cleaner" almost always point at the same job: taking invisible or typographic clutter out of text you already have, without changing the words. That is the third job in the list above. Paste, and anything that fits gets found and, on request, removed.
Is this a text formatting remover?
No, and that is deliberate. See "Case and format converters" above. A text formatting remover usually means stripping Markdown or HTML tags, converting case, or removing bold and italic markup, and this tool does none of that: every visible character, including formatting symbols you typed on purpose such as asterisks or underscores, passes through untouched. If your text already lost its bold and italics, that was not this tool: pasting into any plain-text box does that on its own, before the cleaner ever sees your text.
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, which Google says has marked text in the Gemini app and on the web since May 2024, steers which words get picked and adds no characters at all, so no character cleaner, ours included, has anything to catch. Anthropic says text from its newer Claude models (launched on or after 2 August 2026) carries a statistical watermark applied as the model picks its words, with nothing added to the text (anthropic.com), so no character cleaner touches it. OpenAI announced one for ChatGPT in October 2026 (as reported by the press) that is statistical too, starting in the EU.
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.
- Clean text, the main tool, with the full list of everything it removes.
- Hidden characters, if your text looks fine but something is clearly wrong with it.
- Special characters remover, if your problem is visible symbols, not invisible ones.
- Invisible characters, the full reference list of what this cleaner checks for.
- AI text remover, what "remove AI from text" actually means, and what does and doesn't do it.
- Want to clean text for a specific destination, a form, a spreadsheet, a CMS, rather than in general? That page walks through it by destination.
- Pricing, what stays free and what a pass adds, and who builds this.
By Sam Ridder, I build and run TextNinja on my own hardware, on my own. Who I am.