Clean up extra whitespace
Trim leading/trailing spaces, collapse repeated spaces, or strip blank lines from text.
Text copied from PDFs, spreadsheets, or emails often carries extra spaces and blank lines.
Trim lines, collapse repeated spaces, remove blank lines, or flatten everything into one line. Combine as many as you like.
The result updates live and shows how many characters were removed.
Frequently asked
What order are the cleanup steps applied in?
Trim each line, then collapse multiple spaces, then remove blank lines, then (if selected) remove all line breaks. In that order, so each option can build on the last.
What counts as a "blank line"?
A line that's empty or contains only spaces/tabs. Removing blank lines strips these out entirely rather than leaving empty rows behind.
What does "Remove all line breaks" do exactly?
It joins every line into a single line, separated by one space, which is useful for turning a multi-line paragraph into one continuous line of text.
Will this touch tabs or non-breaking spaces?
"Collapse multiple spaces" only targets runs of regular spaces. Tabs and other whitespace characters are left as-is unless you also trim or remove line breaks.