Remove Line Breaks from Text Online

Join broken lines from PDFs, emails and websites into clean paragraphs, keeping paragraph breaks if you want.

  • Text Tools
  • Free, no sign-up
  • Runs in your browser

Remove Line Breaks tool

About the Remove Line Breaks tool

Copying from a PDF or a narrow email column often leaves a hard break at the end of every line, so pasted text turns into a ragged list of fragments. This tool will remove line breaks and rejoin the lines into flowing sentences while keeping blank lines between paragraphs, and it can repair words split by a hyphen at a line end. The cleaned text pastes neatly into documents, forms and posts.

You decide what replaces each break: a single space for normal prose, nothing at all for strings that were split mid-word, a comma for turning a list into one line, or any custom separator such as a pipe. Two cleanup options handle the usual leftovers. Collapse repeated spaces removes the double spaces that appear when indented lines are joined, and Rejoin hyphenated words puts back together words a PDF split across two lines, so infor- and mation become information again.

The result updates as you type, with a count of how many breaks were removed. When you need more control over messy text, the Text Cleaner strips extra spaces and stray symbols, the Remove Duplicate Lines tool removes repeated lines, and the Comma Separator turns a column of items into a comma-separated list. Nothing is uploaded: the joining happens in your browser, so confidential documents stay private.

How to use the Remove Line Breaks tool

  1. Paste your textCopy the text from the PDF, email or page and paste it into the left box. You can also type straight into it.
  2. Choose how to join linesPick a space, nothing, a comma or your own separator, and decide whether blank lines between paragraphs should stay.
  3. Tidy the leftoversLeave Collapse repeated spaces on, and turn on Rejoin hyphenated words for text that came from a justified PDF.
  4. Copy or downloadPress Copy result to take the joined text, or Download to save it as a .txt file.

Remove Line Breaks features

  • Removes line breaks live, as you type or paste
  • Keeps paragraph breaks (blank lines) or joins everything into one line
  • Join with a space, nothing, a comma or any custom separator
  • Rejoins words split by a hyphen at the end of a line
  • Collapses double spaces left behind by indented lines
  • Counts the line breaks removed and the paragraphs kept
  • Works on Windows, Mac and Unix line endings, entirely in your browser

Common uses

  • Fixing text copied from PDF reports, e-books and research papers
  • Cleaning up quoted email replies before reusing them
  • Preparing captions and descriptions for social media and online forms
  • Turning a vertical list of keywords or emails into a single line
  • Repairing subtitles or transcripts that were exported line by line

Removing line breaks: fixing text copied from PDFs, emails and websites

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Text copied from a PDF, an email or a narrow web column often arrives with a line break at the end of every line, so a smooth paragraph becomes a stack of short fragments. Pasting that into a document, a form or a translation tool makes a mess. Removing the unwanted line breaks restores flowing paragraphs. This guide explains why the breaks appear, how to remove them while keeping real paragraph breaks, and how to fix words split by hyphens.

Why copied text has extra line breaks

PDFs store text as positioned lines rather than paragraphs, so copying preserves the visual line endings. Plain-text emails were traditionally wrapped at around 70 to 80 characters per line. Some websites and apps insert line breaks for layout. In each case, the breaks were part of the display, not the meaning.

Three ways to remove line breaks

OptionWhat happensUse when
Remove allevery line joins into one blocksingle paragraphs, form fields
Keep paragraphssingle breaks removed, blank lines keptmulti-paragraph text
Replace with a separatorbreaks become commas or spacesturning lists into one line

"Keep paragraphs" is the most useful option for documents: lines inside a paragraph are joined with spaces, while the blank lines that separate paragraphs stay.

Fixing hyphenated words

Justified text often splits long words across lines with a hyphen: "infor-" at the end of one line and "mation" on the next. Simply joining lines gives "infor- mation". A good line-break remover detects a hyphen at the end of a line followed by a lowercase letter and joins the word back together, giving "information". Genuine hyphenated words, such as "well-known", should stay hyphenated; check any hyphen at a line end that might be real.

Double spaces after joining

Lines often end with a space, so joining them can create double spaces. Clean them up afterwards with Text Cleaner, which collapses multiple spaces into one.

A worked example: quoting from a PDF report

A journalist copies two paragraphs from a PDF report. The pasted text has 14 short lines and a blank line between the paragraphs, and "govern-" and "ment" are split. Using "keep paragraphs" joins the lines within each paragraph, keeps the blank line between them, and the hyphen fix joins "government". The quote now pastes cleanly into the article, and the journalist checks it once against the PDF to make sure no words were changed.

Line breaks in lists

Sometimes you want the opposite: a list where each item is on its own line, joined into one line separated by commas. Replacing line breaks with ", " does it instantly. For CSV-style lists with quotes, Comma Separator gives more options.

Line breaks in form fields

Many online forms strip or reject line breaks in single-line fields, and some count them as characters. Removing them before pasting avoids text being cut off or merged oddly. For forms that allow paragraphs, keep the paragraph breaks so the text remains readable to whoever reviews it.

Different line ending characters

Windows uses a carriage return plus a line feed to end lines; Mac and Linux use only a line feed. Text from mixed sources can contain both. A good remover treats all line ending types the same, so no stray characters are left behind.

Common mistakes

  • Removing all breaks from multi-paragraph text and creating one huge block.
  • Not checking hyphen joins in text with many genuine hyphenated words.
  • Forgetting that lists with one item per line need their breaks.

Preparing text for translation and AI tools

Translation services and writing assistants treat each line as a separate unit when line breaks are present. Text with a break every few words can be translated as disconnected fragments, producing awkward results. Joining lines into proper paragraphs before translating gives the tool full sentences to work with, and the output is noticeably more natural. The same applies to grammar checkers, which may otherwise flag every short line as an incomplete sentence.

Subtitles and captions

Subtitle files break sentences into short lines that fit on screen. If you need a readable transcript from subtitles, remove the timing lines first, then join the remaining lines into paragraphs. The result reads like a normal transcript and is much easier to quote or summarise.

Keeping addresses and poems intact

Not every line break is unwanted. Postal addresses, poems, song lyrics, recipes and code depend on their line structure. Before removing breaks from a long document, check whether it contains such sections, and process them separately or leave them as they are, so their meaning is not lost.

Checking the result

After joining, read the first and last sentences of each paragraph, where most problems appear: missing spaces between words, split words that were not rejoined, or two paragraphs accidentally merged into one.

Privacy

Line breaks are removed in your browser. Copied documents and emails stay on your device.

Frequently asked questions

How do I remove line breaks from text copied from a PDF?

Paste the text into the box and keep the default settings: line breaks become spaces and blank lines between paragraphs stay. If words were split with a hyphen at the end of lines, turn on Rejoin hyphenated words. Then copy the result.

Will it remove the gaps between my paragraphs?

Only if you ask it to. With Keep paragraph breaks switched on, each block of text separated by a blank line stays a separate paragraph. Switch it off to join the whole text into one continuous line.

Why does my text have line breaks in the middle of sentences?

PDFs and many emails store text as fixed-width lines rather than flowing paragraphs, so a line break is saved wherever a line ended on the page. When you copy the text, those breaks come with it even though they are not real paragraph ends.

Can I replace line breaks with commas?

Yes. Choose A comma and space from the Replace each line break with list. That turns a column of names, emails or keywords into a single comma-separated line, ready for a spreadsheet or a form field.

What is the difference between a line break and a paragraph break?

A line break ends a line and starts the next one immediately below. A paragraph break is a blank line, which is two line breaks in a row. This tool treats single breaks as joinable and blank lines as paragraph boundaries.

Is my text uploaded or saved anywhere?

No. The text is processed by JavaScript inside this page and disappears when you close the tab. Nothing is sent to a server, so it is safe to use with private or unpublished documents.