Line Break Cleaner
Turn hard-wrapped lines back into clean paragraphs you can paste anywhere.
- Runs in your browser
- No uploads
- No account
Loading your browser tool…
What Line Break Cleaner does
Copy a paragraph out of a PDF, an email or a terminal and it arrives broken into short lines at fixed widths. Pasted into a document or a help article, those breaks show up as ragged text. The cleaner joins every line inside a paragraph with a single space, while blank lines still separate paragraphs.
It is smarter than a find-and-replace on line breaks. Bullets, numbered items and Markdown headings stay on their own lines, and a word split across two lines with a hyphen, such as cap- and ture, is joined back into one word.
Example
Input
Open the recorder and choose the browser tab you want to cap- ture. - Pick a microphone - Press Start
Result
Open the recorder and choose the browser tab you want to capture. - Pick a microphone - Press Start
Three wrapped lines become one sentence, cap- and ture are rejoined, and the two bullets stay separate.
How to use Line Break Cleaner
- Paste the wrapped text into Your text.
- Leave Keep list items and headings on their own lines on, unless you want everything joined.
- Open More options to turn off Rejoin words hyphenated across lines, then press Copy or Download .txt.
Good to know
- Common compounds keep their hyphen, so self- then service becomes self-service and step-by- then step stays step-by-step. Other compounds that break at the line end, such as user- then guide, are joined as one word. Turn off rejoining under More options if your text has many compound words.
- Lines starting with -, *, +, •, a number or single letter with a full stop or bracket (1., 2), a), (b)), Step 2:, # or > count as list items. A line that starts with a capital letter and a full stop, such as A. Smith, is joined into the paragraph.
- Paragraphs must be separated by a blank line to stay apart. PDFs that use no blank lines between paragraphs come out as one block.
Questions about Line Break Cleaner
Why does text copied from a PDF have line breaks?
PDFs store text as positioned lines, not flowing paragraphs. When you copy, each visual line ends with a hard break. Joining the lines within each paragraph restores normal text that can rewrap at any width.
How do I remove line breaks but keep paragraphs?
Paste the text here with the default settings. Single line breaks inside a paragraph are replaced with a space, while blank lines between paragraphs are kept, so you end up with one line per paragraph.
Can I remove every line break, including paragraphs?
Not in one pass, because blank lines always separate paragraphs here. Delete the blank lines first, or run the result through Remove Extra Spaces and join the remaining paragraphs by hand.