Text copied from a web page, an email or a PDF rarely arrives clean. It brings double spaces, tabs, indented lines, gaps of several empty lines and sometimes characters you cannot see at all.
Steps
- Open Clean up text.
- Paste the text.
- Tick the clean-up steps you want. The result updates at once.
- Press Copy.
The four options
- Collapse repeated spaces (on at the start): any run of spaces or tabs inside a line becomes one space. This also flattens text that was lined up in columns with spaces, so leave it off for tables.
- Trim each line (on at the start): removes spaces at the beginning and end of every line. That includes indentation, so untick it for code or nested lists.
- Remove empty lines: deletes every blank line. Paragraphs then follow each other with no gap.
- Join into one paragraph: puts all lines on a single line with one space between them.
What is always removed
Whatever you tick, zero-width characters are deleted. These are invisible marks that some websites and apps insert into text. They are the usual reason why two words that look identical do not match in a search, or why a pasted password or code is rejected. Line endings are also made uniform, which matters when text moves between Windows and other systems.
What it leaves alone
The tool does not touch the wording. Curly quotes, dashes, capital letters and spelling stay as they are, and a single space before a comma is not removed. For those, use Find and replace, and Case converter for text in the wrong case. If a list has repeated entries after cleaning, Remove duplicate lines is the next step.