Joy of Tools

Text cleaner

Paste your text, pick where it came from, and copy the cleaned result.

Your files and text are not uploaded. Everything happens on this page.

Where is the text from?

Trims spaces at line ends, merges repeated spaces and removes blank lines.

Choose options yourself (3 on)
Letter case
Line order
Find and replace
Cleaned text0 lines, 0 characters in; 0 lines, 0 characters out

How to use it

  1. Paste the text, then pick where it came from, such as the web, a PDF or a chat export.
  2. Open the options if you want to switch single cleanups on or off, or use find and replace.
  3. Check the result, compare it with the original, and copy it.

Questions

Why does text copied from a PDF have a line break in every line?

A PDF stores each line as laid out on the page. The PDF preset joins lines that stop mid-sentence and keeps blank lines as paragraph breaks.

What are hidden characters, and why remove them?

Zero-width spaces and similar marks do not show on screen but break searching and comparing. Removing them also turns non-breaking spaces into normal spaces.

Which chat exports can the tool clean?

It removes dates, times and sender names from WhatsApp exports, for both Android and iPhone, and from LINE exports. The messages themselves are kept.

Does find and replace accept regular expressions?

Yes. Tick the regular expression box to use one, or leave it off to match your text exactly. A pattern that is not finished yet shows a notice instead of an error.

More tools