Remove Line Breaks
Remove line breaks from entered text.
About Remove Line Breaks
Copying text from a PDF, an old email or a terminal often gives you hard line breaks in the middle of sentences. Pasted into a document or web form, it looks choppy and wraps badly. Joining the lines back into continuous text makes it read normally again and lets your editor handle wrapping.
How it works
Every line break, whether a Windows CRLF or a plain LF, is replaced with a space. Then any run of spaces or tabs is collapsed to one space, and the ends are trimmed. The result is one continuous block. Blank lines are not treated specially, so separate paragraphs are joined into a single paragraph as well. The output downloads as single-line.txt and is produced in your browser.
How to use Remove Line Breaks
- Type or paste the text you want to process in the text box above.
- Select “Remove line breaks” and check the result before copying or downloading it.
Worked example
Paste three lines copied from a PDF: 'This sentence was', 'broken by a PDF', 'copy.' The output is 'This sentence was broken by a PDF copy.' If the text had a blank line before a second paragraph, that paragraph would be joined onto the same line with a single space.
Tips for a better result
- Process one paragraph at a time when paragraph breaks matter, because this tool merges every paragraph into one line.
- Watch for words that were hyphenated at the end of a PDF line; they come out as 'exam- ple' and need the hyphen and space removed by hand.
- If you only need to clear empty lines but keep line structure, use Remove Blank Lines instead.
Frequently asked questions
Will it keep my paragraphs separate?
No. All line breaks, including blank lines between paragraphs, become spaces. To keep paragraphs, put a marker like '###' between them, run the tool, then replace the marker with line breaks in your editor.
Does it remove tabs too?
Tabs are collapsed together with spaces into a single space. Tabs used for alignment will be lost, which suits prose but not tables.
Are spaces at the start and end removed?
Yes. The final text is trimmed, so leading and trailing spaces disappear. Spaces in the middle are reduced to one between each word.
What to check
Review punctuation, formatting and meaning before using transformed text elsewhere.
Read the Privacy Policy for information about local processing, connected services and advertising.