Remove line breaks from text
Text copied from a PDF often breaks at the end of every line. Paste it here: lines are joined into proper paragraphs, and words cut by a hyphen are put back together. Free, nothing is uploaded.
Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.
Remove line breaks
How to use it
- Paste the text whose lines are broken.
- Choose the mode: keep paragraphs, put everything on one line, or join the lines with a separator of your choice.
- Leave “Rejoin hyphenated words” ticked for text from a PDF, then copy or download the result.
Example
Input
The annual report shows steady growth in sales across all re- gions. Detailed results are pre- sented in the appendix.
Output
The annual report shows steady growth in sales across all regions. Detailed results are presented in the appendix.
Good to know
- Paragraphs are recognised by an empty line between them. A PDF that leaves no empty line between paragraphs gives one single block.
- A hyphen at the end of a line is removed only if the next line starts with a lowercase letter: “re-” + “gions” gives “regions”, but “Jean-” + “Pierre” stays “Jean-Pierre”. A real compound such as “well-” + “known” becomes “wellknown”: check those.
- Spaces at the start and end of each line are removed. In separator mode, empty lines are skipped and \t stands for a tab.
Frequently asked questions
How do I remove line breaks in Word?
Open Find and Replace (Ctrl+H), type ^p in “Find what” and a space in “Replace with”; use ^l instead for manual line breaks (Shift+Enter). That also merges your paragraphs, which this page avoids: it keeps a break wherever there is an empty line.
How do I remove line breaks in an Excel cell?
Use =SUBSTITUTE(A1,CHAR(10)," ") in another cell, or select the cells, press Ctrl+H, press Ctrl+J in “Find what” (it looks empty) and type a space in “Replace with”. For a whole text, pasting it here is quicker.
How do I fix text copied from a PDF?
Paste it with the default “Keep paragraphs” mode: line ends become spaces, paragraphs separated by an empty line stay apart, and words cut by a hyphen at the end of a line are rejoined (“re-” + “gions” gives “regions”). Check compound words such as “well-known”, which lose their hyphen.
How do I remove line breaks in Notepad++?
Open Replace (Ctrl+H), choose “Extended” search mode, search for \r\n (or \n for Unix files) and replace with a space. Paragraphs are merged too, so the paragraph-aware mode on this page is safer for prose.
How do I turn a list into one line separated by commas?
Choose “Join lines with a separator” and type the separator, such as “, ” or “ | ”: empty lines are skipped and each line becomes one item. Use \t for a tab, which pastes into separate spreadsheet cells.