Skip to content
hateitall

Text Cleaner

Make pasted text plain and tidy in one pass, with each clean-up step under your control.

Processed locallyIn: Text, TXTOut: Text

Loading tool…

How to use text cleaner

  1. Paste the messy text.

  2. Tick the clean-up steps you want; the defaults suit most pasted text.

  3. Read the summary of what changed.

  4. Copy or download the clean text.

What this tool does

  • Removes zero-width spaces, soft hyphens, byte order marks, direction marks and control characters.
  • Joins separately typed accents to their letters (Unicode NFC) and converts line endings to LF.
  • Collapses repeated spaces, trims line ends and removes blank lines, keeping paragraph breaks if you like.
  • Optionally straightens quotes, removes duplicate lines and sorts.

How the result is verified

The clean text is run through the same steps a second time and must come back unchanged, so one pass is enough.

Frequently asked questions

What hidden characters does it remove?

Zero-width spaces, word joiners, soft hyphens, byte order marks, the invisible left-to-right and right-to-left marks, and control characters other than tab and line break. These often ride along with text copied from web pages and chat apps.

Will it change my words?

No. It only changes spacing, invisible characters, line breaks and, if you tick it, quote marks. Each step that did something is listed in the summary.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Strip spaces and tabs from the start or end of every line

Text · TXT · CSV→ TextLight on device

Collapse runs of spaces and tabs into one space

Text · TXT→ TextLight on device

Delete blank lines, or keep one between paragraphs

Text · TXT→ TextLight on device

Curly quotes to straight, or straight to curly with sensible rules

Text · TXT→ TextLight on device

Delete repeated lines, keep order, ignore case or spaces

Text · TXT · CSV→ TextLight on device