How to use the Remove Line Breaks
- 1
Paste the broken text
From a PDF, e-book or email.
- 2
Choose what replaces breaks
A space, nothing, a comma or a semicolon.
- 3
Keep paragraphs
Leave “Keep paragraph breaks” on to preserve blank lines.
- 4
Copy the result
Clean paragraphs ready to paste.
Features
Fix PDF text
Joins lines broken mid-sentence.
Keeps paragraphs
Blank lines stay as paragraph gaps.
Rejoins hyphenation
“shop-/ping” becomes “shopping”.
Lists to CSV
Turn a column into comma-separated values.
Collapse spaces
Removes double spaces.
Private
Your text stays in your browser — nothing is uploaded or stored online.
Who uses it — and for what
Students
Quote passages from PDFs.
Office work
Clean text for Word and emails.
Translation
Whole sentences translate better.
SQL & spreadsheets
Make IN (…) lists and tags.
Why copied text has line breaks
PDFs store text line by line, the way it is laid out on the page. When you copy a paragraph out of a PDF, an e-book or a plain-text email, every visual line ends with a hard line break, so pasting it into Word, a form or a chat leaves ragged lines. This tool joins the lines back together. With “Keep paragraph breaks” on, blank lines (real paragraph gaps) are preserved and only the breaks inside paragraphs are removed.
Other uses
- Turn a column of values into a comma-separated list for spreadsheets, SQL
IN (…)clauses or tags — choose “Comma”. - Flatten addresses into one line for shipping forms.
- Clean text before pasting into translation tools, which translate better with whole sentences.
- Hyphenated words broken across lines (“exam-\nple”) are rejoined automatically.
Your text is processed in your browser only.
Getting text out of a PDF
If copying from a PDF gives jumbled text, extract it with PDF to Text first, then paste it here. Scanned PDFs contain images rather than text, so they need OCR — try Image to Text on a screenshot of the page.
What the tool does, in order
- Windows (CRLF) and old Mac (CR) line endings are converted to plain line feeds.
- A hyphen at the very end of a line is removed when a letter sits directly before it and the next line starts with a lowercase letter. Between two digits the hyphen is kept and only the break is closed (2019-2020).
- Every line is trimmed, and lines left empty are dropped.
- With “Keep paragraph breaks” on, the text is split wherever a blank line appears — a line containing only spaces counts as blank — and each paragraph is joined separately. Paragraphs are then separated by one blank line, however many there were before.
- The lines of each paragraph are joined with your chosen replacement; if a line already ends with that comma or semicolon, only a space is added.
- With “Collapse multiple spaces” on, runs of two or more spaces or tabs become a single space.
The status line counts line breaks in your input minus line breaks in the output, so extra blank lines that were squeezed out are included in the number.
When the result needs a second look
- Other hyphen characters: only the ordinary keyboard hyphen is rejoined. Some PDFs use a soft hyphen or a typographic hyphen (‐) at line ends; those stay in the text with a space after them.
- Capitals after the break: a word is rejoined only when the next line starts lowercase, so “Smith-” / “Jones” stays “Smith- Jones”, and Hindi and other scripts without lowercase letters are also left as they are.
- Bullets and quote markers stay put: “• Item one” / “• Item two” becomes “• Item one • Item two”, and email quotes become “> Thanks for the > update…”. Remove the markers first, or keep blank lines between items so they stay separate.
- Poems, addresses and code rely on their line breaks for meaning; join them only when you really want one line.
Worked examples
Text copied from a PDF
“Dear customer, your order / has been shipped and will / arrive by Friday. (blank line) Thank you for shop- / ping with us.” → “Dear customer, your order has been shipped and will arrive by Friday.” and “Thank you for shopping with us.” as two paragraphs — 3 line breaks removed.
A column to a comma list
apple / banana / cherry with “Comma” → apple, banana, cherry
Three hyphen cases in one sentence
Input lines: “A well-” / “known brand sold 2019-” / “2020 stock to self- ” / “employed buyers”. Result: “A wellknown brand sold 2019-2020 stock to self- employed buyers”.
- “well-known” was a real compound word that happened to break at its hyphen, so the hyphen was wrongly removed.
- The year range keeps its dash: a hyphen between two digits is never removed, only the line break after it.
- “self- ” had a space after the hyphen, so it was not joined at all.
Search the result for these patterns and fix them by hand.
A list that already has commas
“apple,” / “banana,” / “cherry” with the Comma option → “apple, banana, cherry”. When a line already ends with the chosen comma or semicolon, only a space is added, so you never get a doubled “,,”.
Pro tips
- Turn off “Keep paragraph breaks” to make everything one line.
- Choose “Nothing” for joining split codes or numbers.
- Run the tool once with paragraphs kept, read the output, and only then switch paragraphs off if you need a single line.
- For lists, the Remove Duplicate Lines and Sort Lines tools work best before you join them.
Glossary
- Hard line break
- A real newline character in the text.
- Soft wrap
- Lines that wrap visually without a newline.
- CRLF
- Carriage return plus line feed — the two-character line ending used by Windows.
- Soft hyphen
- An invisible hyphen character that only appears when a word breaks at the end of a line.
- Compound word
- A word made of two parts joined by a hyphen, such as well-known.
Frequently asked questions
How do I keep paragraphs?
Leave “Keep paragraph breaks” ticked — blank lines between paragraphs are kept.
Can I make a comma-separated list?
Yes. Choose “Comma” as the replacement.
Does it fix hyphenated words?
Yes, a word split with a hyphen at the end of a line is joined when the next line starts with a lowercase letter. A hyphen between digits, as in 2019-2020, is kept.
Will it remove real hyphens like “e-mail”?
Only hyphens at the end of a line are joined.
Why did “well-known” become “wellknown”?
When a real hyphenated word breaks exactly at its hyphen, the tool cannot tell it apart from a word split for layout, so it joins it. Add the hyphen back by hand.
Does it keep bullet points and numbering?
The symbols stay as text, but the lines are joined. Keep a blank line between items if you want each one as its own paragraph.
Why was a hyphen at the end of a line not removed?
The word is rejoined only when a letter comes before the hyphen and the next line starts with a lowercase letter. A capital, a digit or a space after the hyphen leaves it in place.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Text & Writing (36 tools)