Remove Line Breaks
Text copied from a PDF, an email or a narrow web column often has a line break at the end of every line, which looks ragged when you paste it elsewhere. This tool joins those lines back into flowing paragraphs, keeps the blank lines that really separate paragraphs if you want, and repairs words that were split with a hyphen.
Remove Line Breaks from Text
Text without line breaks
Changes
How to Use the Remove Line Breaks
- Paste the text with unwanted line breaks.
- Choose whether to keep paragraph breaks or join everything into one block.
- Pick what replaces each line break (usually a space) and whether hyphenated line ends are rejoined.
- Copy or download the cleaned text.
About This Tool
Students and researchers quoting from PDFs, editors cleaning text from email or OCR, and anyone pasting text into a form or a document that should wrap by itself.
Input: Plain text · Output: Plain text.
Features and Limitations
Features
- Keeps real paragraphs (separated by one or more blank lines) when you want them.
- Rejoins words hyphenated across lines, such as “docu-” + “ment”.
- Handles Windows, Mac and Unix line endings.
- Optionally collapses the double spaces left behind.
Limitations
- A hyphen at the end of a line is assumed to be a split word; genuine hyphenated words that happen to break there (well-known) lose their hyphen. Untick the option if your text has many of them.
- Lists and headings are joined into the paragraph too, because they are separated only by single line breaks.
- Results are computed in your browser; nothing you enter is sent to a server.
Example
“This is a line\nthat was wrap-\nped.” becomes “This is a line that was wrapped.”
Frequently Asked Questions
How do I keep paragraphs but remove the other line breaks?
Choose Keep paragraph breaks. Lines separated by a single break are joined; a blank line still starts a new paragraph.
Why do I get words stuck together?
Choose A space as the replacement. “Nothing” is meant for text such as long codes or Chinese and Japanese, which do not use spaces.
Can I turn a list into a comma-separated line?
Yes, choose A comma and space and join everything into one paragraph. For more control over quoting use the List to Delimited Text Converter.
Does it work with text from a PDF?
Yes, that is the most common use. PDF text usually has a break after every printed line, and often hyphenated words, which this tool repairs.
Related Tools
More like this: all Text Cleanup tools, all Text & Writing tools or the TinySandy home page.