How to Remove Line Breaks From Copied Text
Updated October 2026
Written by the Toolpuffin team. Tools in this guide are tested in the browser.
You copy a paragraph from a PDF or an email and paste it, and every line ends with a break in the middle of a sentence. Fixing that by hand takes minutes. This guide shows how to do it in seconds and which option to pick.
Remove the line breaks
- Open Remove Line Breaks.
- Paste your text.
- Choose what each line break becomes: a space, nothing, or keep the paragraphs.
- Copy the result.
Which option should you choose?
- A space: joins everything into one block of text. Use this for a single paragraph.
- Keep paragraphs: removes the breaks inside a paragraph but keeps the blank line between paragraphs. Use this for longer text.
- Nothing: glues the lines together without a space. Use this for codes, numbers or a long link that was split over lines.
Why does copied text have so many breaks?
A PDF does not store a paragraph as one piece of text. It stores each line separately, placed on the page. When you copy it, you get a line break at the end of every line, even in the middle of a sentence. Emails sent as plain text are often wrapped at a fixed width in the same way.
Words split with a hyphen
Printed text often splits a long word over two lines, for example inter- and national. When you copy it, the hyphen stays. The hyphen option joins such words again, but only when the next line starts with a lowercase letter, so a real hyphenated word followed by a capital is left alone.
Read the result once. A word that really has a hyphen, such as well-known at the end of a line, may be joined by mistake.
Extra spaces and other clean up
Joining lines can leave double spaces. The option to collapse repeated spaces takes care of that. For other clean up, such as removing empty lines, trimming spaces at the start and end of each line or removing repeated lines, use the Text Cleaner.
Privacy
The text is changed in your browser. It is not uploaded.