Free tool · Updated August 2026

Text Cleaner

Strip the invisible characters, curly quotes, odd spaces and stray dashes that ride along when you paste. Every rule is optional and every rule reports exactly what it changed.

Cleaned in your browser — the text is never uploaded.
Cleaning rules
Your text
Cleaned

A text cleaner removes formatting artefacts that survive a copy-paste — zero-width characters, smart quotes, non-breaking spaces, stray dashes. They are invisible on screen but break search, comparison and imports.

How it works

  1. 1
    Paste your text. Anything copied from a PDF, a document, a web page, or a chat window.
  2. 2
    Choose your rules. Sensible defaults are on; switch any of them off.
  3. 3
    Read the report. Every rule tells you how many changes it made, so nothing is silent.
  4. 4
    Copy the clean version. Or replace your input with it in one click.

The characters you cannot see are the ones that cause problems

Zero-width spaces, word joiners, soft hyphens and byte-order marks have no visible width. They survive a copy-paste, they are invisible in every editor, and they will happily sit in the middle of a word. The result is a string that looks identical to another string but does not match it — so your search finds nothing, your spreadsheet lookup fails, your database join returns zero rows, and you lose an hour to a bug that does not exist. They arrive from PDFs, from web pages, from word processors, and from chat interfaces.

Why curly quotes break things

Word processors and web publishing systems automatically convert straight quotes into typographic ones: ' becomes ’ and " becomes “ or ”. That is correct for print and it looks better on a page. It is a problem everywhere else. Paste a curly apostrophe into code and the string does not terminate. Put one in a CSV and the import splits the column wrongly. Use one in a password field or a URL and it silently fails. If you are moving text between a document and any technical system, straightening quotes is usually the first thing to do.

Non-breaking spaces and the spacing that looks fine but is not

A non-breaking space (U+00A0) renders exactly like an ordinary space but never wraps, which is why text pasted from a web page sometimes refuses to reflow properly and pushes a word onto its own line. Narrow, thin, and hair spaces do similar things at different widths. They all look like a space, none of them behaves like one, and no amount of staring at the screen reveals which is which — you can only find them by replacing them, which is what the "odd spaces" rule does.

Every rule reports what it changed

A cleaner that silently rewrites your text is impossible to trust, especially if the text is something you care about. Each rule here is a checkbox and each one reports its own count: "12 curly quotes", "3 invisible characters", "8 repeated spaces". You can see exactly what was touched before you copy anything out, switch off anything you did not want, and compare the two panes side by side. Nothing happens that you cannot see.

Cleaning is not the same as rewriting

Everything on this page operates on characters. It fixes how text is encoded, not how it reads. If a passage sounds machine-written, no combination of these rules will change that, because what makes it sound that way is sentence rhythm and word predictability rather than punctuation. Strip every dash and straighten every quote and an AI draft still scores as an AI draft. Check it with the free detector to see where you actually stand, and rewrite it with the humanizer if you need the reading to change rather than the bytes.

Free, unlimited, and private

The text cleaner is free with no sign-up and no limit on how much text you process. Because it runs entirely in your browser, your text is never sent to a server, stored, or used to train any AI — it never leaves your device. When you’re ready to do more with your writing, Humanit’s AI humanizer and AI detector are one click away.

What each rule fixes, and why it matters
ProblemWhere it comes fromWhat it breaks
Zero-width charactersPDFs, web pages, chat UIsSearch, string matching, word counts
Curly quotesWord processors, CMS autocorrectCode, CSV imports, form fields
Non-breaking spacesCopied web pagesText wrapping and reflow
Em / en dashesAutocorrect, AI outputPlain-text systems, legacy encodings
Repeated spacesRemoved line wrapsLayout and diffing

Frequently asked questions

How do I remove invisible characters from text?

Paste it above with the “Invisible characters” rule enabled. Zero-width spaces, joiners, soft hyphens and byte-order marks are stripped, and the report tells you how many were there — which is often the surprising part.

What is a zero-width space and why is it in my text?

It is a character with no visible width (U+200B) used for line-break hints. It survives copy-paste and is invisible everywhere, so it silently breaks searches and string comparisons. It typically comes from PDFs, web pages, and chat interfaces.

Does this remove formatting like bold and italics?

No — this works on plain text characters only. Bold and italic are document formatting rather than characters, so they are not part of what gets pasted here in the first place.

Will cleaning my text help with AI detection?

Not meaningfully. Detectors score sentence rhythm and word predictability, neither of which changes when you fix punctuation or strip invisible characters. Cleaning is worth doing for formatting reasons; making text read human is a separate job.

Can I turn individual rules off?

Yes — every rule is a checkbox, and each one reports what it changed so you can see the effect before copying. Only the rules you leave ticked are applied.

Is my text uploaded anywhere?

No. The cleaning runs entirely in your browser. Nothing is sent to a server, and nothing is stored.

Do I need an account?

No. There’s no sign-up and no install — open the page and start typing.

Does it work on mobile?

Yes — it works in any modern browser on phone, tablet, or desktop.

Related

Writing with AI? Make sure it reads human.

Humanit rewrites AI-flavored text to sound human and checks it with a built-in AI detector that's free — no sign-up needed.

Open the AI Humanizer

Last updated: August 2026