Remove Line Breaks

Paste text that wraps badly or has a hard line break after every line. Join the lines with a space, a comma or nothing, and choose whether blank lines between paragraphs stay.

Ce contenu est en anglais.

Exemples détaillés

Joining a list with commas

Apples, Pears and Plums on three separate lines, with the join option set to commas

Apples, Pears, Plums

A line that already ends with punctuation is joined with a space rather than adding a second comma.

Keeping paragraphs apart

Intro line, more intro, a blank line, then Section two, with keep paragraphs turned on

Intro line more intro Section two

The blank line between sections is kept, so each section stays separate after the join.

À propos de Remove Line Breaks

Line breaks cause trouble when text is copied from a PDF, an email, a web page or a document with a narrow column. Each line ends where the original layout ended, so words break in the middle of a sentence and the result looks messy when pasted somewhere new. Removing the line breaks joins the lines back into flowing text, which saves a lot of manual editing, especially when there are many lines to fix. Doing it by hand means deleting every break and adding spaces back, which is tedious and easy to get wrong.

This tool joins every line with a space, a comma and a space, or nothing at all, and removes spaces at the edges of each line as it goes. A keep paragraphs option is turned on by default, so blank lines between sections stay in place and each paragraph is joined on its own. When you join with commas, a line that already ends with punctuation is followed by a space rather than a second mark, so the result stays tidy. The summary above the result tells you how many lines were joined and how many paragraphs were kept.

Comment utiliser Remove Line Breaks

  1. Paste the text with the unwanted line breaks into the box.
  2. Choose how the lines should be joined, with a space, a comma or nothing.
  3. Keep the paragraphs option on if blank lines separate sections you want to keep.
  4. Copy the result and paste it where you need it.

Usages courants

  • Fixing text copied from a PDF with broken lines
  • Joining a list of names or addresses into one line
  • Tidying an email that wrapped badly in another program
  • Preparing a long quote from a printed page

Questions fréquentes

How do I remove line breaks from text?

Paste your text into the box and the tool joins each line to the next, so a sentence broken over three lines reads as one sentence again. The result appears straight away in the box below. Leave the paragraphs option on if you want blank lines between sections to stay, or turn it off to join everything into one block. Then copy the result and paste it wherever you need the joined text.

What is the difference between keeping and removing paragraphs?

When keep paragraphs is on, a blank line in your text marks the end of a paragraph, so each paragraph is joined separately and the blank lines between them are kept. When it is off, the blank lines are dropped and the whole text becomes one continuous block. Use the option when your text has several sections, and turn it off when you want a single paragraph.

Will joining lines remove my punctuation?

No. The tool keeps every character in your text, including full stops, commas, brackets and quotation marks. It only removes the line break characters and the spaces at the start and end of each line. When you join with commas, a line that already ends with punctuation is joined with a space, so you do not end up with two marks in a row.

Why would I choose nothing as the separator?

Nothing is useful when a word or number was split across two lines and the pieces should stick together. For example, a long code, a product number or a web address that wrapped part way through may need to be joined without a space. Check the result carefully, because words that really were separate will also run together if you choose this option.

Does this work with text copied from PDF files?

Yes. Text copied from a PDF usually arrives with a line break after each line of the page, and this tool can fix that. Some PDFs also place breaks inside words or in unexpected places, so read the result once before you use it. The tool works on the text you paste, so copy the text out of the file first.