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.
Free tool
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 →Line breaks
Tidy
Your text is changed in your browser. It is never uploaded.
Why it happens
01 / PDF
A PDF stores each printed line on its own, so copying it gives a line break wherever the page wrapped.
02 / Email
Some email programs wrap plain text at a fixed width, often about 72 to 80 characters.
03 / Columns
Text from narrow columns, slides and subtitles breaks after a few words.
Guide
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.
The mode, the switches and your own separator are remembered in this browser. The text is not stored.
Here is what each mode does to the same five lines: "Red apples", "and green pears", a blank line, "Blue", "plums".
| Mode | Result | Use 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 lines | The four lines with text, with the blank line gone | Lists 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.
- 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.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.
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
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.
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.
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.
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.
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.
No. Everything happens in this tab, and the text is not stored. Only your settings are remembered in this browser.
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.
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.
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.
Yes. Windows and old Mac line endings are turned into plain line breaks first, so text from any system is joined the same way.