Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Remove line breaks, keep the paragraphs.

Text copied from a PDF or an email often breaks at the end of every line. Paste it or open the file, and the lines join back into flowing sentences while paragraphs stay apart, even when the text has no blank lines between them. Bullet and numbered lists keep one item per line, words split with a hyphen at a line end are mended, double spaces are tidied, and you can also join everything into one line or put commas in place of the breaks.

Need a custom tool, app or website? Contact us 
Your text
Result

Line breaks

Tidy

Your text is changed in your browser. It is never uploaded.

Why it happens

Where the broken lines come from.

01 / PDF

Lines, not sentences

A PDF stores each printed line on its own, so copying it gives a line break wherever the page wrapped.

02 / Email

Old wrapping rules

Some email programs wrap plain text at a fixed width, often about 72 to 80 characters.

03 / Columns

Narrow layouts

Text from narrow columns, slides and subtitles breaks after a few words.

Guide

How to remove line breaks, without losing your paragraphs.

Remove line breaks joins text that has been chopped into short lines back into full sentences. It is most useful for text copied out of a PDF, a plain text email or a narrow column, where a break sits at the end of every printed line. Paste the text and the result appears beside it as you type, with paragraphs and lists kept, split words mended and stray spaces cleaned up.

How to remove line breaks from text

  1. Paste your text into Your text, or press Open file (or drop a .txt file on the box). Press Example first if you want to see a typical PDF copy and paste.
  2. Pick what should happen to the breaks under Line breaks. Keep paragraphs is the usual choice.
  3. Leave the Tidy switches on unless you have a reason not to. Each is explained below.
  4. Check the count above the Result box. It says how many line breaks were removed and how many were kept.
  5. Press Copy the result and paste it where you need it, or Download .txt to save it.

The mode, the switches and your own separator are remembered in this browser. The text is not stored.

The four modes, side by side

Here is what each mode does to the same five lines: "Red apples", "and green pears", a blank line, "Blue", "plums".

ModeResultUse it for
Keep paragraphs"Red apples and green pears", a blank line, then "Blue plums"Articles, reports and anything copied from a PDF
One line"Red apples and green pears Blue plums"A single field, a spreadsheet cell, a search box or a prompt
Remove empty linesThe four lines with text, with the blank line goneLists and code where each line matters but the gaps do not
Replace with ", ""Red apples, and green pears, Blue, plums"Turning a list of one item per line into a comma separated list

The Replace with mode puts your text in place of every break, so it works best on true lists. Press one of the buttons under the box for a comma, semicolon, pipe, tab, <br> or nothing at all, or type your own, with a tab as \t or a new line as \n. For example, \n\n puts a blank line after every line, which is a quick way to double space a list.

What the Tidy options do

  • Keep list items on their own lines. A line that starts with a bullet (such as •, - or *) or with a number or letter and a full stop or bracket (1. or a)) starts a new line in the result, so a list inside a paragraph stays a list. Turn it off to join list lines like any others.
  • Find paragraphs without blank lines. Many PDFs give no empty line between paragraphs. When the text has no blank lines at all, a line that ends a sentence and is clearly shorter than most lines is taken as the end of a paragraph, because the last line of a paragraph rarely fills the width. The status line says how many were found. Turn it off if it splits in the wrong places.
  • Join words split by a hyphen. PDFs often break long words across lines, like "but-" on one line and "tons" on the next. This joins them into "buttons". It only acts when a lower case letter sits on both sides of the break, so a break before a capital letter or a number is left alone. Some PDFs split words with an invisible soft hyphen instead; those are always joined and removed.
  • Trim spaces at line ends. Removes spaces before and after each line, so joining does not leave two spaces where the break was.
  • Turn double spaces into one. Squeezes runs of spaces and tabs into a single space, and removes a space that sits before a comma, full stop or other punctuation mark.

Untick a box when it would harm your text. Text lined up in columns with spaces, or code that uses tabs, can be spoilt by the space tidying.

Common problems and the fix

  • Some paragraphs still ran together. Find paragraphs without blank lines only spots a paragraph whose last line is short and ends a sentence. Where a paragraph ends on a full line, add an empty line in Your text where it should break, and the result updates.
  • Headings joined onto the next sentence. A heading on its own line has no full stop, so it looks like any other line. Put a blank line after each heading.
  • A list became one long line. Keep list items on their own lines needs a bullet, a number or a letter at the start of each item. For a plain list, use Remove empty lines instead, which keeps each line as it is.
  • A real hyphenated word lost its hyphen. If "self-" ended a line and "aware" started the next, it becomes "selfaware". Untick the hyphen option, or fix the few cases by hand.
  • The PDF is long. Copying page by page is slow. The PDF to text tool pulls the text out of the whole file at once, ready to paste here.

Why the breaks are there

A PDF is a picture of a printed page. It knows where each line of text sits, but not where the sentences run, so copying it gives you one line per printed line. Plain text emails can be wrapped at a fixed width by the program that sent them, and subtitles, slides and narrow columns break after a few words. In each case the break shows where the line ended on screen, not where the sentence ended, which is why joining them back is safe.

Once your text flows again, the word counter gives an accurate count, and the case converter fixes text that came out in capitals.

Questions

Good to know.

Will it join my paragraphs together?

Not with "Keep paragraphs": a blank line marks a new paragraph and stays. If your text has no blank lines at all, a short line that ends a sentence is taken as a paragraph end. Where that guess misses, add a blank line where each paragraph should start.

Does it keep bullet lists?

Yes. With Keep list items on their own lines on, each line that starts with a bullet, a number or a letter followed by a full stop or bracket stays on its own line.

Does mending hyphens break real hyphenated words?

It only joins a word split at the very end of a line followed by a lower case letter, like "but-" then "tons". A word such as "well-known" in the middle of a line is left alone. Rarely, a hyphenated word that happens to wrap at its hyphen is joined; check names and compound words.

How do I turn a list into one line with commas?

Choose "Replace with" and keep ", " in the box. Each line becomes an item: "red", "green", "blue" on three lines become "red, green, blue". Type \n in the box for a new line.

Can I fix text from a PDF in one go?

Yes, paste the whole page. For a long PDF, PDF to text pulls out all of its text first; paste that here to join the lines.

Is my text uploaded?

No. Everything happens in this tab, and the text is not stored. Only your settings are remembered in this browser.

How do I remove line breaks in Word?

Open Find and Replace, search for ^p for paragraph marks or ^l for manual line breaks, and replace with a space. This removes every break, so paragraphs are joined too, which is why pasting here first can be easier.

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

A line break ends a line. A paragraph break, in plain text, is usually an empty line between two blocks of text. Keep paragraphs removes the first kind and keeps the second.

Can I add a line break after every comma instead?

Not with this tool, which removes or replaces breaks. To go the other way, paste the text into an editor with find and replace and swap each comma for a new line.

Does it handle Windows line endings?

Yes. Windows and old Mac line endings are turned into plain line breaks first, so text from any system is joined the same way.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch