Use this free line break remover to clean up text that is split across too many lines. Paste your text, choose what should happen to the breaks, and the tool joins the lines for you. You can replace each break with a space, remove it completely, keep the paragraphs, or turn a list into one line separated by commas or any character you choose. You can copy the result, download it as a text file, or send it back to the input to process it again. Everything runs in your browser and the result updates as you type.

Line breaks are invisible, so it is easy to delete too many or too few. Read the result before you use it, especially when paragraphs or lists matter.

How to remove line breaks

Paste your text and the cleaned version appears instantly.

  • Paste your text: add text copied from a PDF, an email, a web page, or a list with one item per line.
  • Choose an option: pick Replace with space, Remove completely, Keep paragraphs, Join with comma, or Custom separator.
  • Adjust the cleanup options (optional): trim extra spaces and rejoin words that were split by a hyphen at the end of a line.
  • Copy or download: copy the result, download it as a .txt file, or use Use as input to process it again.

What each option does

OptionExampleWhat it does
Replace with spaceone two threeTurns each line break into a single space, so lines join into one continuous paragraph.
Remove completelyonetwothreeDeletes each line break and adds nothing in its place. Words at the end and start of lines can run together.
Keep paragraphsOne two.\n\nThree four.Joins the lines inside each paragraph with a space and keeps the blank line between paragraphs.
Join with commaapple, banana, cherryJoins the non-empty lines into one line separated by a comma and a space.
Custom separatorapple | banana | cherryJoins the non-empty lines using any separator you type.

What this tool does and does not do

This tool removes or replaces line breaks in the text you paste. It treats Windows, Mac, and Unix line endings the same way, and consecutive breaks count as one when you replace them with a space. It does not check spelling or grammar and it does not understand the meaning of your text, so a list, a poem, or a block of code may lose structure that you want to keep. For poems and code, use Keep paragraphs or leave the breaks in place. The hyphen option only joins a word when a hyphen ends a line and the next line starts with a lowercase letter, so it can occasionally join a word that should stay hyphenated.

Use the right option for the job. Replace with space suits text copied from PDFs, Keep paragraphs suits articles, and the comma or custom separator suits lists.

Worked examples

Fixing text copied from a PDF

PDF text often breaks after every visual line. Paste it and choose Keep paragraphs. Lines inside each paragraph join with a space, blank lines between paragraphs stay, and the text reads normally again. Turn on the hyphen option if words are split across lines, such as "inter-" at the end of one line and "national" at the start of the next.

Turning a list into one line

Paste a list with one item per line, such as "apple", "banana", and "cherry", then choose Join with comma. The result is "apple, banana, cherry", which is ready to paste into a form, a search box, or a spreadsheet cell. Choose Custom separator to use a character such as a semicolon or a pipe instead.

Cleaning an email or chat message

Text pasted from an email can contain hard line breaks in the middle of sentences. Choose Replace with space and leave the spacing option on to join the lines and remove the extra spaces that were left behind.

Common line break mistakes

  • Removing breaks completely. This joins the last word of one line to the first word of the next. Use Replace with space unless you know the breaks fall inside words.
  • Flattening paragraphs. Replacing every break with a space also removes the gaps between paragraphs. Use Keep paragraphs when the structure matters.
  • Joining lists without a separator. Items run together unless you add a comma or a custom separator.
  • Forgetting to read the result. A tool follows rules, not meaning, so a quick read catches headings, lists, or addresses that needed their own lines.

Frequently asked questions

What is a line break remover?

A line break remover deletes the line breaks in a block of text so that broken lines join into one continuous line or paragraph. This one can also keep paragraphs or join lines with a comma or a custom separator.

How do I remove line breaks but keep paragraphs?

Choose Keep paragraphs. Single line breaks inside a paragraph are replaced with a space, while blank lines between paragraphs are kept.

Why does text copied from a PDF have so many line breaks?

PDFs store text by visual line, so copying it often ends every line with a break. Replacing the breaks with a space, or using Keep paragraphs, restores normal paragraphs.

Can I turn a list into a comma-separated line?

Yes. Paste a list with one item per line and choose Join with comma, or Custom separator to use a different character. Empty lines are skipped.

Does it work with Windows and Mac line endings?

Yes. Windows (CRLF), Mac, and Unix (LF) line endings are all treated as line breaks.

Where does my text go?

The conversion runs in your browser. This page does not send or save the text you paste, and clearing the form removes it from the screen.

Is there a limit on text length?

The tool accepts up to 100,000 characters of text. For longer documents, process them one section at a time.

Share this article