Line Break Remover
Text copied from a PDF arrives broken: every line ends where the page column ended, not where the sentence did. This tool repairs it. The default smart mode joins those mid-sentence breaks back into flowing paragraphs while keeping the real paragraph breaks (blank lines) intact — or switch to one-line mode to flatten everything for a spreadsheet cell, a form field, or a subtitle file. It can even re-join words the PDF hyphen-ated across lines, and it reports exactly how many breaks were removed.
Paste broken text above. The rejoined version appears here with a count of removed breaks.
How to use the line break remover
- Paste the broken text — from a PDF, an email reply chain, OCR output, or a terminal.
- Leave Smart paragraphs selected to fix PDF copy-paste while keeping paragraphs, or choose Remove all breaks for a single line.
- Optionally enable hyphenation repair to merge words split like infor- mation across lines.
- Copy the result. The badge shows how many line breaks were removed.
Before and after: the PDF fix
Copied from a two-column PDF report:
After smart mode with hyphenation repair on:
Six line breaks removed, two paragraph breaks preserved, two hyphenated words repaired. The same text through remove-all mode would also merge the two paragraphs into one line — correct for a spreadsheet cell, wrong for a document.
When to flatten and when to keep paragraphs
- Flatten to one line: spreadsheet cells (a newline inside a cell breaks CSV exports), single-line form fields, search queries, ad copy fields with no line support, and subtitle (.srt) text segments that must stay on one visual line.
- Keep paragraphs (smart mode): anything a human will read next — articles being moved between editors, email text rescued from a quoted-reply chain full of stray breaks, OCR output, and book excerpts for quoting.
- Custom replacement: joining lines with a comma turns a column into a quick list (or use the dedicated comma separator tool, which adds quoting and dedupe); joining with a pipe builds delimiter-separated rows for log processing or table imports.
Frequently asked questions
Why does text copied from a PDF have a line break after every few words?
PDFs store text positionally, line by line, exactly as typeset. When the source document was laid out in a 60-character column, the PDF records a separate line every 60 characters — and copying extracts each typeset line followed by a newline. The original sentence structure is simply not in the file. Smart mode reverses the damage statistically: a single newline almost always means a wrapped line, while two consecutive newlines mean a genuine paragraph break.
What is the difference between removing all breaks and smart paragraph mode?
Remove-all joins every line with a space, producing exactly one line — what you want for pasting into a spreadsheet cell, a meta description field, or a chat box. Smart mode only joins single breaks and preserves blank-line separations, so a three-paragraph PDF extract stays three readable paragraphs. If you are cleaning prose to keep reading or editing it, use smart; if a form demands one line, use remove-all.
How does hyphenation repair work, and can it ever be wrong?
It looks for a letter, a hyphen, a line break, and then a lowercase letter — the signature of a word the typesetter split, like exam- followed by ple. The pieces merge into example. The lowercase check prevents false merges with genuinely hyphenated compounds that start the next line with a capital, but it cannot be perfect: a line ending in self- before improvement would merge to selfimprovement. That is why the option is off by default — turn it on for PDF and print-derived text where wrapped hyphens are common.
Will my numbered or bulleted lists get flattened into the paragraph?
Not in smart mode with the list-protection option on (the default). Lines beginning with -, •, *, or a number followed by a dot or bracket keep their line break, so a procedure list inside the text survives while the surrounding prose re-flows. Turn the option off if your text coincidentally starts lines with hyphens that are not list items.
How are Windows (CRLF) and old Mac (CR) line endings handled?
Everything is normalized to plain \n first, so the tool behaves identically whether the text came from Windows Notepad (\r\n), a Unix terminal (\n), or a legacy Mac export (\r). The removed-breaks count reflects logical line breaks, not raw control characters, so a CRLF pair counts as one break.
Related tools
- Whitespace CleanerRemove extra spaces from text: collapse double spaces, trim line ends, delete tabs and non-breaking spaces — clean whitespace in one click.
- Duplicate Line RemoverRemove duplicate lines from any list instantly — case-insensitive option, trim before compare, keep first or last, and counts of what was removed.
- Text Cleaner / Formatting RemoverClean up text in one paste: strip Word and web formatting, fix spaces and line breaks, remove HTML tags, and copy plain text ready to use.
- Comma Separator (Column ⇄ List)Convert a column of values into a comma-separated list and back — custom delimiters, quote wrapping, and dedupe for SQL IN clauses and CSVs.
- Special Character RemoverRemove special characters, symbols, numbers, punctuation, or emojis from text with simple checkboxes — keep only the characters you choose.
- AI Text Cleaner (Markdown & Em Dash Remover)Clean AI-generated text in one paste: strip markdown asterisks and headers, replace em dashes and smart quotes, and remove hidden characters.