Remove line breaks
This tool joins lines that break in the wrong places, such as text copied from a PDF or an email. Students, writers and office workers use it to get clean paragraphs they can paste anywhere.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Replace each single line break with a space so hard-wrapped text flows as one paragraph, and keep blank lines if you want to preserve separate paragraphs. Joining with nothing is for words that were split by a break, and tidying extra spaces avoids double spaces afterward.
Worked exampleIn the sample, the three wrapped lines about the PDF become one line, "This text was copied from a PDF and every line ends early, so it is hard to paste.", and the blank line keeps the second paragraph separate.
Example
This text was copied from a PDF and every line ends early, so it is hard to paste. A second paragraph also wraps in the wrong places.
This text was copied from a PDF and every line ends early, so it is hard to paste. A second paragraph also wraps in the wrong places.
How to use the remove line breaks
- Paste your text into the Text with line breaks box.
- Choose Keep paragraphs or One paragraph.
- Set Line breaks become to A space or Nothing, and choose whether to tidy extra spaces.
- The joined text updates as you type. Press Copy result.
How it works
Keep paragraphs treats a blank line as the end of a paragraph, joins the lines inside each paragraph and puts one blank line between paragraphs.
One paragraph removes every line break, including blank lines.
Windows (\r\n) and old Mac (\r) line endings are handled the same as normal new lines.
Trimming removes spaces at the start and end of each line and collapses runs of spaces into one. Hyphens at the end of a line are kept as typed.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
How do I remove line breaks from text copied from a PDF?
Paste the text and keep Paragraphs on Keep paragraphs. Each paragraph becomes one line of text.
Can I remove line breaks without adding spaces?
Yes. Set Line breaks become to Nothing. This is useful for joining long codes or IDs that were split over lines.
Will it delete my paragraph breaks?
Only if you choose One paragraph. The default, Keep paragraphs, keeps blank-line paragraph breaks.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools