Orpheus

Remove Line Breaks and Clean Up Text

For text pasted out of a PDF or an email.

Options
Line breaks
Collapse repeated spaces
Strip email quote markers
Convert smart quotes and dashes to plain
Result

Everything is processed in this tab. Nothing you paste is sent anywhere.

Every tool runs entirely in your browser. Your files are never uploaded to a server.

Text copied from a PDF breaks at the end of each printed line rather than each sentence. Unwrapping joins those lines back into paragraphs, treating a blank line as a genuine paragraph break.

How to use Line Break Remover

  1. Paste the broken text. Straight from the PDF, email or terminal.
  2. Choose how to treat breaks. Unwrap keeps paragraphs; remove-all produces a single block.
  3. Copy the cleaned text. Quote markers and repeated spaces are handled too.

About removing line breaks from text

Text copied out of a PDF arrives broken because of how the format works. A PDF is a description of where marks appear on a page, not a document with a structure — it records that a line of text sits at a particular position, and nothing about whether that line is the middle of a sentence or the end of a paragraph. When you copy, you get the visual layout faithfully reproduced, which means a break at the end of every printed line. Email clients produce a similar problem for a different reason. Plain-text mail is traditionally wrapped at around seventy-six characters, so a forwarded message arrives pre-broken, often with quote markers accumulated at the start of each line from several rounds of replying. The repair is the same in both cases. Treat a blank line as a genuine paragraph break and preserve it; treat a single line break as an artefact of wrapping and join across it. That heuristic handles the overwhelming majority of real text correctly, and it is why an unwrap that simply deletes every newline is the wrong tool — it produces one enormous paragraph and destroys the structure that did survive. Two details make a visible difference to the result. Words split across lines with a hyphen need rejoining without it, which is common in justified PDF text. And trailing spaces left at the end of each original line become doubled spaces mid-sentence once the lines are joined, so collapsing repeated spaces belongs in the same pass rather than as an afterthought.

Frequently asked questions

Why does text from a PDF break in the wrong places?
Because a PDF stores the position of every line as it appears on the page, not the structure of the sentences. Copying reproduces the visual layout, so every line ends where the column ended. There is no paragraph information to recover.
Will this destroy my paragraph breaks?
Not in unwrap mode. A blank line between blocks is treated as a real paragraph break and preserved, while single breaks within a block are treated as wrapping and joined. Remove-all mode deliberately discards everything.
What happens to words split across a line?
A word broken with a hyphen at the end of a line is rejoined without it, so "para-" and "graph" become one word. This is common in justified PDF text and is the most visible artefact if it is not handled.
What are smart quotes and why convert them?
Curly quotation marks and en or em dashes, inserted automatically by word processors. They look better in print and break code, filenames and some older systems. The option converts them back to plain ASCII equivalents.
Does it remove the quote marks from forwarded emails?
Yes, including nested levels of quoting. Each line has its leading markers stripped, which is usually the first step in salvaging readable text out of a long reply chain.

Last updated