Copying text rarely gives you clean text. PDFs break lines at the page width, emails add quote markers, web pages bring invisible spaces, and some sources arrive in capitals. The fix is a short sequence of single-purpose steps.
1. Paste as plain text
Formatting from the source can follow your text into documents and forms. Paste as plain text to drop it: Ctrl+Shift+V in most browsers and many apps (⌘+Shift+V or ⌥+⇧+⌘+V on a Mac). Pasting into any tool on this site also removes formatting, because the text boxes only hold plain text.
If what you copied is HTML source, or text full of codes like & and , convert it first with HTML to Text or the HTML Entity Decoder.
2. Rejoin broken lines
PDF text typically has a line break at the end of every visual line. Use Remove Line Breaks with Keep paragraph breaks on, so that real paragraphs (separated by a blank line) survive. If words were hyphenated at line ends, turn on Re-join words split with a hyphen, then skim the result for genuine compounds that got merged.
If the PDF has no blank lines between paragraphs, you will need to add them back by hand where each paragraph starts.
3. Fix spacing
Run Remove Extra Spaces. It collapses double spaces and tabs, converts non-breaking spaces to normal ones, trims lines and reduces stacks of blank lines to one. Turn on Remove spaces before punctuation if the text has gaps like “word ,”.
To remove all blank lines instead, for a list rather than prose, use Remove Empty Lines.
4. Fix capitalization
Text typed in capitals, or copied from a source that capitalizes headings, can be normalized with the Sentence Case Converter. Tick Keep words written in all capitals to protect acronyms, then check proper nouns by hand. No tool can reliably tell a name from an ordinary word.
5. Check the result
A quick look at the Word Counter is a useful final check: a sentence count far lower than expected usually means missing punctuation at the end of lines, and a paragraph count of one means paragraph breaks were lost.
Email quote markers
Replies often prefix lines with “> ”. Removing them is a find-and-replace job in most editors. Search for “> ” at the start of lines, using a regular expression such as ^> ? if your editor supports it, and replace it with nothing. Then rejoin lines as in step 2.