Text Cleaner

Clean extra spaces and duplicate paragraphs in text you paste, then copy the result. Read it before you replace your draft. Nothing is uploaded.

How to use this tool

  1. Paste the draft. The cap is 200,000 characters.
  2. Under Choose what to change, the ticks are Normalize spacing and blank lines, Remove zero width spaces, BOM, soft hyphens, and word joiners, Remove exact duplicate paragraphs, and Also remove language joiners and directional marks.
  3. The joiner tick starts off. The note says removing joiners can change Arabic, Persian, bidirectional text, and joined emoji.
  4. Read the preview. Invisible characters found lists the ten code points this scanner knows, when any are present.
  5. Copy preview or Download .txt. The file is edited-text.txt.

Four switches, one preview

Spacing collapse trims lines, collapses horizontal whitespace, and limits blank lines. The invisible tick removes U+200B, U+FEFF, U+00AD, and U+2060, and turns U+00A0 and U+202F into normal spaces. Duplicate removal drops a repeated paragraph after the first copy. The joiner tick, off by default, also deletes U+200C, U+200D, U+200E, and U+200F.

The table Invisible characters found shows code point, name, count, and whether the default is to keep the mark for language or emoji. An empty table means those ten characters were absent. Other odd characters can remain.

Copy preview writes the cleaned string. The paste is still in the box. This page does not score authorship. A zero-width space can come from a web page or a PDF. The count is not a motive. edited-text.txt is the download name.

Preview, then the file

Copy preview matches the cleaned string. The box still holds the paste. edited-text.txt is the download. Joiner removal stays off unless you tick it.

Paste, preview, then keep

Paste a messy paragraph, look at the preview, and only then apply it to the draft. Extra spaces and a doubled line should be gone, and a real paragraph break you needed should still be there. If a line of poetry or an address got joined, undo and clean a smaller piece. The cleaner does not know which breaks matter. You do.

Common questions

What does the spacing tick do?
It collapses horizontal whitespace, trims lines, and limits blank lines. It does not rewrite sentences.
Are joiners removed by default?
No. Also remove language joiners and directional marks starts off. Turning it on can split emoji and change bidirectional text.
What is a duplicate paragraph?
An exact repeated paragraph. The first copy stays. The wording is not paraphrased.
The table is empty. Is that every possible hidden character?
No. The scanner knows ten code points. Anything else is outside the table.