Remove Line Breaks: Clean Up Text Online
Use this tool to remove line breaks from text copied out of PDFs, emails or old documents. Join broken lines into smooth sentences, keep paragraph breaks if you want, or swap breaks for spaces or commas. Copy the clean text.
Remove Line Breaks
Fix broken lines from PDFs and emails.
How to use the Remove Line Breaks
- Paste the text.
- Keep paragraph breaks ticked to keep blank lines between paragraphs.
- Choose what replaces each line break.
- Copy the clean text.
How it works
Text is split into paragraphs at blank lines, each line is trimmed, and the lines inside each paragraph are joined with the chosen character. Hyphenated words split across lines (like "infor- mation") can be joined back together.
Example
"Line one\nline two\n\nPara two" becomes "Line one line two" and "Para two" as two paragraphs.
Frequently asked questions
Why does text from a PDF have line breaks?
PDFs store each line separately, so copying keeps a break at the end of every line.
Can I make a list into one line?
Yes. Untick Keep paragraph breaks and choose Comma.
Is my text private?
Yes. It is processed in your browser.
See also: Word Counter, Case Converter.
Remove line breaks
How to use it
- Paste your text.
- Pick what to keep.
- Choose a replacement.
- Copy the result.
More questions
Can I keep paragraphs?
Yes. Keep double line breaks to keep your paragraphs.
Can I turn lines into a comma list?
Yes. Pick a comma as the replacement to turn lines into a comma list.
Is my text uploaded?
No. Everything stays in your browser on your device.
Related tools: Remove Extra Spaces, Find and Replace Text Online, Remove Duplicate Lines and Sort Lines.
A three-line address on one line
Paste your text, choose what replaces each break (a space, nothing or a comma) and read the cleaned version. A message tells you how many breaks were removed. To see the length of the cleaned text, use the Character Counter.
Worked example: "Sam Lee", "12 Oak St" and "Austin, TX 78701" on three lines become Sam Lee 12 Oak St Austin, TX 78701 with the space option. The tool reports 2 line breaks removed.
More answers
How many line breaks does the tool report for a three-line address?
It reports 2 removed, because three lines have two breaks between them. The cleaned text reads Sam Lee 12 Oak St Austin, TX 78701.
Which replacement keeps words from running together?
Use the space option for sentences and addresses. For a three-item list such as milk, eggs and bread, the comma option gives "milk, eggs, bread" and still reports 2 line breaks removed.