Remove Line Breaks
Why this tiny tool exists
Copying text out of a PDF, an ebook or a scanned document is a small daily humiliation: the document looks like prose and pastes like confetti, one broken line at a time, because a PDF stores positioned lines rather than paragraphs. Every pasted sentence then has to be repaired by hand, break by break, in whatever you pasted into. This page does the repair in one pass, with two honest modes. Paragraph mode removes the breaks inside paragraphs and keeps the blank lines that separate real paragraphs, and it rejoins words the typesetter split with a hyphen ("depart- / ments" becomes "departments") when the next line starts lowercase, the signature of a typeset split rather than a true hyphen. Join-everything mode flattens all of it for form fields and cells. Both collapse the double spaces and stray indentation that joins leave behind. Nothing about your wording is changed, and nothing leaves your browser. The counter under the result reports how many breaks were removed, which is a useful sanity check on long documents: a 40-page report should shed thousands, and if it sheds twelve, the source was probably already flowing text (an EPUB or web page wearing a PDF's clothes) and needed nothing from you at all.
Worked example
Input: the sample above, five hard-wrapped lines across two paragraphs, one hyphen-split word.
Paragraph mode output: "The committee agreed that the new policy would take effect from January, and that all departments would receive updated guidance in due course." — then the preserved blank line — "A second paragraph follows here, separated by a blank line in the original document." Join-everything output: the same words as a single block with a space where the paragraph break was. Four breaks and one hyphen split repaired; zero words changed. Try toggling between the two modes on the sample to feel the difference: the text is identical, only the paragraph separation comes and goes.
When the breaks are the content, keep them
Not all line breaks are damage. Poetry, song lyrics, postal addresses, code, log excerpts, lists meant to be scanned one item per line, and subtitles all carry meaning in their line structure, and flattening them destroys information that no tool can restore. The tell is simple: if a human chose the breaks, keep them; if a page width chose them, remove them. PDF copies are nearly always the second kind, which is why this tool is safe as a default for prose and dangerous as a reflex for everything. If you are cleaning a long document in stages, work paragraph by paragraph and keep the original file untouched until the cleaned version has been read once through: joins are easy to make and surprisingly hard to unmake from memory.
Frequently asked questions
Why does text copied from a PDF have a break in every line?
A PDF does not store paragraphs; it stores lines of positioned text on a page. When you copy, the clipboard receives what the page shows: one line at a time, with a line break where the printed line ended, mid-sentence and mid-word included. Word processors and email then treat each fragment as its own paragraph. Removing those breaks reconstructs the flowing text the author wrote, which is what this tool does, while keeping genuine paragraph breaks (the blank lines) intact in paragraph mode.
What happens to words split with a hyphen at a line end?
In paragraph mode, a break right after a hyphen followed by a lowercase letter is treated as a typeset word split and the two halves are joined without a space: 'informa-' + 'tion' becomes 'information'. A hyphen before a capital or in a genuinely hyphenated compound at a natural break is kept as-is, since it may be a real hyphen. It is a heuristic, stated openly: check hyphenated joins in important documents rather than trusting any tool blindly.
What is the difference between the two modes?
Paragraph mode (the default) removes only the single line breaks inside paragraphs and preserves blank-line paragraph separations, so a document keeps its structure. Join-everything mode replaces every break, blank lines included, with spaces, producing one continuous block: right for pasting into a form field, a spreadsheet cell, a subtitle line or anywhere paragraphs would break the layout. Choose by destination, not by habit.
Does it also fix double spaces and stray indentation?
Yes. Runs of spaces and tabs created where lines joined collapse to a single space, leading indentation from the copied lines is trimmed, and spaces left dangling before punctuation are removed. What it does not do is change your words: spelling, punctuation and capitalisation are untouched, and list lines are joined like everything else, so do not run it over text whose line structure is the content (poetry, addresses, code) unless one flowing block is truly what you want.
Is my text uploaded to remove the breaks?
No. The cleanup runs in your browser with JavaScript; documents you paste never leave your machine. That matters for the common use case, contracts, manuscripts and internal documents copied out of PDFs, which you should not be sending to a stranger's server for a space-and-newline operation.
Related tools
Conversion rules and worked example last verified: 23 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.