Pixel and Prose

Remove Line Breaks: fix text copied from PDFs

Updated
Cover image for "Remove Line Breaks: fix text copied from PDFs" – Pixel and Prose

Remove unwanted line breaks from text copied out of PDFs, emails or old documents. Join broken lines into flowing paragraphs while keeping real paragraph breaks, or put everything on one line.

Mode

Your text is processed in your browser and never uploaded.

Why does copied text have broken lines?

PDF files store text line by line, exactly as it is laid out on the page. When you copy from a PDF, every line ends with a hard break, so a paragraph pasted into an email or a document breaks in odd places. Text from old emails and terminal windows often has the same problem because it was wrapped at a fixed width.

Remove Line Breaks before and after: short PDF lines joined into one paragraph, blank line kept

Keep paragraphs or remove everything?

Keep paragraphs joins lines that belong to the same paragraph and keeps a blank line wherever the original had one. Use it for articles, reports and emails.

Remove all line breaks turns the whole text into one line. Use it for a spreadsheet cell, a form field that does not accept line breaks, or a single caption.

After cleaning the text, check its length and reading time with the word counter, or fix headings typed in ALL CAPS with the case converter.

Stack of clear plastic sheets, with text comparing the Keep paragraphs and Remove all modes

Frequently asked questions

What does "Join words split with a hyphen" do?

Books and PDFs often break long words across lines, like "infor-" and "mation". With this option on, the tool removes the hyphen and joins the halves into "information". It only does this when a hyphen is the last character of a line and the next line starts with a lowercase letter, so a name like "Jean-Paul" split after "Jean-" stays intact. It cannot tell a split word from a compound word that happens to break at its hyphen: a line ending in "well-" followed by a line starting with "known" becomes "wellknown". If your text has many compound words, turn this option off and fix split words by hand.

My paragraphs were merged together. Why?

The tool recognizes a new paragraph by an empty line. If the source has no blank lines between paragraphs, there is no reliable way to tell where one paragraph ends, so add an empty line between them before running the tool.

Does it work with lists?

Bulleted or numbered lists are joined like any other lines. Separate lists from the surrounding text with blank lines and fix them by hand afterwards, or process only the paragraphs.