Remove Line Breaks

Clean up awkward line breaks, double spaces and tabs in text copied from PDFs or web pages in one step. Keep paragraphs and remove only the line breaks in the middle of sentences.

Line breaks

Cleaned text

0Line breaks removed
0Characters before
0Characters after
iPhone app ยท Free to downloadLED Marquee - Scrolling TextTurn your iPhone into a scrolling LED sign for concerts, airports and events.View on the App Store

About the Remove Line Breaks

When you copy text from a PDF, an e-book or an email, every visual line often ends with a hard line break, so sentences are chopped into pieces. This tool turns those unwanted line breaks into spaces and keeps paragraphs separated by blank lines, giving you clean text you can paste anywhere.

It can also collapse multiple spaces and tabs, trim spaces at the start and end of lines, rejoin words hyphenated at the end of a line and remove all spaces.

How to use

  1. Paste the text you want to clean into the box.
  2. Choose how to handle line breaks. For text copied from a PDF, Keep paragraphs works best.
  3. Turn the cleanup options on or off. The result updates instantly.
  4. Tap Copy to take the cleaned text. To clean it again, tap Use as input.

Worked examples

Two paragraphs copied from a PDF (Keep paragraphs)

Input
The results suggest that remote work in-
creases productivity for most employees,
but not for new hires.

Further research is needed.
Result
The results suggest that remote work increases productivity for most employees, but not for new hires.

Further research is needed.
2 line breaks removed, 133 โ†’ 131 characters

"in-/creases" is rejoined into "increases" because the hyphen sits at the end of the line and a lowercase letter follows. The blank line stays as the paragraph break.

A form field copied with messy spacing

Input
Name    :   Jane Doe
[tab]Phone :  555-0134  
Result
Keep line breaks: Name : Jane Doe / Phone : 555-0134 (41 โ†’ 32 characters)
Replace with spaces: Name : Jane Doe Phone : 555-0134

Keep line breaks only cleans up spaces and tabs, so it is the mode to use for lists and address blocks where each line should stay on its own.

A URL split across two lines (common mistake)

Input
https://example.com/reports/2026/annual-
summary.pdf
Result
Rejoin hyphenated words on: annualsummary.pdf (hyphen lost)
Option off + Remove completely: https://example.com/reports/2026/annual-summary.pdf

The hyphen rule cannot tell a real hyphen from a word split by the PDF. For links, file names and product codes, untick Rejoin hyphenated words and use Remove completely so no space is inserted.

Line break modes compared

ModeWhat it doesUse it for
Keep paragraphsLine breaks โ†’ spaces, blank lines kept as paragraph breaksText from PDFs and papers
Replace with spacesAll line breaks โ†’ spacesMerging into one paragraph
Remove completelyDeletes line breaks and joins lines directlyBroken URLs, code, long numbers
Keep line breaksKeeps lines, cleans up spaces onlyLists

Why text copied from a PDF breaks into lines

A PDF stores text by position on the page, not by sentence. When you copy it, a line break is inserted at the end of every line, and the extra spaces used for justified text may come along too. English PDFs also split words at the end of a line with a hyphen, so the tool rejoins a word only when the hyphen is followed by a lowercase letter (infor-mation โ†’ information) and leaves real compounds such as Spanish-American intact.

FAQ

How are paragraphs detected?

A blank line (two or more line breaks in a row) marks a paragraph boundary. If the original has no blank lines, everything is merged into one paragraph.

Why wasn't a hyphenated word joined?

Words are rejoined only when the hyphen is at the very end of a line and the next line starts with a lowercase letter. A hyphen followed by a capital letter, such as Korea-Japan, is treated as a real hyphen and kept.

How do I paste the result into one cell in Excel or Google Sheets?

Choose Replace with spaces so there are no line breaks left, then double-click the cell (or press F2) before pasting. Pasting into a selected cell that is not in edit mode splits any remaining line breaks into separate rows.

Does it handle Chinese or Japanese text?

Yes. When a line break falls between two Chinese or Japanese characters, the lines are joined without a space, because those languages don't put spaces between words.

Is my text saved?

For convenience it is stored only in this browser and never sent to a server. Tap Clear to delete it. To check the length of the cleaned text against a limit, paste it into the Word Counter.