Text copied from a document can contain repeated spaces and empty lines. This example combines line trimming, collapsed spaces and removal of blank lines. Use these options selectively because whitespace can carry meaning in structured text.
Example input
apple banana
pear Expected result
apple banana
pearTry it step by step
- Inspect the example: it contains spaces at the edges, repeated spaces and an empty line.
- Keep the three cleanup options enabled and run the tool.
- Compare the two remaining lines, then turn off blank-line removal to preserve paragraph separation.
How to read the result
The example becomes apple banana on the first line and pear on the second. Trimming removes spaces at line edges; collapsing reduces runs of spaces or tabs within each line. Empty-line removal is a separate choice, so you can clean a paragraph without merging all text into one line.
Limits and important details
Whitespace is meaningful in source code, Markdown, aligned tables and some data files. This is plain-text cleanup, not a syntax-aware formatter. Save the original before applying it to structured content.