Remove Line Breaks
About this tool
About Remove Line Breaks
Text copied from a PDF, an old email or a terminal is often hard-wrapped: every line ends with a break, so pasting it into a document, a form or a translation tool leaves ragged lines and sentences split in two. Paste it here and the lines inside each paragraph are joined with a space, while the blank lines between paragraphs are kept, so the structure survives and sentences flow again. Spaces left over at the joins are collapsed and each line is trimmed first, so you don't end up with double spaces. Need everything on a single line instead? Set Line breaks to Join everything and choose the separator: a space, a comma and space for a list, a semicolon, a pipe, or \t for tab-separated values. Turning a column of email addresses or IDs into one comma-separated line for a query or a To field takes a second. Undo and Use as input let you try combinations safely. Your text never leaves the browser.
Built and maintained by Abhi JainUpdated
How to Remove Line Breaks
- 1
Paste the text
Paste the hard-wrapped text into the Text box.
- 2
Choose how to join
Join lines in paragraphs is selected. Choose Join everything for one line, and set Join with to a space, a comma or \t.
- 3
Copy the result
Copy or Download the joined text.
Remove Line Breaks: questions and answers
Will my paragraphs be merged?
Not with Join lines in paragraphs: a blank line marks a paragraph break and is kept. Only the breaks inside a paragraph are removed.
How do I turn a list into comma-separated values?
Set Line breaks to Join everything and Join with to , (comma and space). Empty lines are skipped automatically.
What about words hyphenated at the end of a line?
They are joined with a space, for example "exam- ple", because some hyphens are real ("well-known"). Fix the few broken words with Find and Replace.
How do I get the text out of a PDF first?
Use PDF to TXT to extract the text, then paste it here to fix the line breaks.
More Text Cleaner presets
Related tools
- Sort LinesSort lines alphabetically, naturally, by number or by length; reverse or shuffle them, and remove duplicates.
- Find and ReplaceFind and replace text with several rules at once, plain or regex, match case, whole words and case-preserving replacement.
- Whitespace Visualizer & CleanerReveal tabs, NBSP, zero-width characters and mixed line endings, then clean them.
- Word CounterCount words, characters, sentences and paragraphs, with reading time, keyword density and limits.
- PDF to TXTExtract the text of a PDF into a plain .txt file, with page separators.