What the cleaner changes

The tool works in two panels: your original text on the left, the result on the right. Nothing is rewritten. It only touches whitespace, and the letter case if you ask for it. The rules are yours to choose:

  • Collapse repeated spaces and tabs into one — any run of spaces or tabs becomes a single space.
  • Trim spaces at the start and end of each line — removes the padding that sits after every line break.
  • Remove every blank line — deletes empty lines altogether.
  • Merge consecutive blank lines into one — keeps paragraph breaks but stops empty lines from stacking up.

Alongside those sits a case selector — keep the text as it is, upper-case it, lower-case it or title-case it. It starts on "Keep as is", so the cleanup does not change your wording unless you tell it to. When you need one of the identifier styles it does not cover, such as camelCase or snake_case, the Letter Case Converter has the full set.

Where the damage comes from

Text copied out of a PDF is reconstructed from the positions of the glyphs on the page, so the gaps between words are guesses. A single paragraph can arrive as forty short lines, with spaces landing inside words that were never split on screen.

Email adds a second kind of mess: every line is hard-wrapped at a fixed column and padded with a trailing space. Paste that into an editor and you get a wall of line breaks with a stray space at the end of each one.

Fixed-width exports — log files, CSV dumps, anything printed to a monospace font — add a third. Those files use spaces to line columns up. The spaces are meaningful in the file and noise everywhere else, which is why trimming the edges of each line is often enough on its own.

How to use it

  1. Paste the text into the input panel. Hit Load sample first if you would rather see the effect before committing your own text.
  2. Leave Collapse repeated spaces and tabs and Trim spaces at the start and end of each line switched on. Between them they repair almost every case without touching the structure of the text.
  3. Decide what should happen to blank lines. Merge consecutive blank lines into one is the safe choice when the text still needs its paragraph breaks; Remove every blank line is for when you want a single continuous block.
  4. Set the case selector, unless you want the case left alone.
  5. Read the output panel, then copy it or download it as a text file.
  6. If you also want to know how long the cleaned text is, the Word Counter will count it without another copy-paste.

Good to know

  • Collapsing affects tabs inside a line as well. If your indentation carries meaning, switch that option off and rely on trimming alone.
  • Trimming removes padding at line edges. It does not re-indent what is left.
  • The badge under the output panel reports how many characters were removed. A large number means the source was padded heavily, which is usually a sign the cleanup was worth doing.
  • The work happens in the page. Your text never leaves the tab, which matters when you are cleaning a customer message or a draft that is not ready to be seen by anyone else.