Tidy up messy whitespace
Collapse double spaces, trim each line and drop blank lines.
Text copied out of a PDF or a formatted document often arrives with double spaces, trailing whitespace and stray blank lines. This pipeline fixes all three: collapse runs of spaces into one, trim the start and end of each line, then remove the empty lines that are left.
It runs entirely in your browser, so even confidential text stays on your device. Paste the messy text below and the tidied version appears instantly.
Questions
Does it touch line breaks?
It collapses repeated spaces within lines and removes fully blank lines, but keeps the line structure of your content otherwise.
Will it merge my paragraphs?
Removing blank lines pulls paragraphs together. If you want to keep paragraph breaks, skip the last step by running the tools individually.
Build your own chain in the pipeline builder.