Copy text out of a PDF, an old email or an e-book and it arrives chopped: every line ends abruptly, sentences are sliced mid-thought, and pasting it anywhere produces a ragged mess. The line breaks were never really in the writing — only in the presentation. Removing them is a five-second job once you know what to protect.
PDFs store the appearance of a page, not the flow of its text. To a PDF, a paragraph is a series of separately positioned lines, and copy-paste faithfully reproduces every one of those line endings. The same happens with plain-text emails wrapped at 72 characters and with text copied from some e-readers. None of it is your document's fault.
What "remove line breaks" should actually do
The naive fix — delete every newline — creates a new problem: your paragraphs fuse into one giant block. A good line-break remover does two things at once:
- Joins wrapped lines with a space, so a sentence split across three printed lines becomes one flowing sentence.
- Keeps real paragraph breaks, so where your text has a blank line, a real paragraph gap survives and the structure of the document stays intact.
Two more options matter. Trim lines strips the stray spaces at the start and end of each line before joining, and collapse extra spaces tidies the double spaces that appear when a wrapped line was padded. With those on, the output reads like the text was typed fresh.
A worked example
Copied from a PDF:
The committee decided to publish the report on Friday, after reviewing the final figures from the audit team. Copies were sent to all members. After removing line breaks:
The committee decided to publish the report on Friday, after reviewing the final figures from the audit team. Copies were sent to all members. The three wrapped lines became one sentence, and the blank line still separates the second paragraph exactly as the author intended.
Three mistakes that ruin the cleanup
- Joining lists, code or poetry. In those formats the line breaks are the content. Joining a list turns it into one unreadable sentence, and joining code breaks it outright. This tool is for prose.
- Missing the hyphenated split. Long words broken across lines in a PDF often arrive as "infor- mation". The join fixes the line break, but the stray hyphen and space remain — search your cleaned text for "- " afterwards and repair those words.
- Cleaning only the first page. When rescuing a long document, process it in pasted chunks and check the joins at each chunk boundary; the last line of one paste and the first of the next rarely reconnect themselves.
The free tool I built
I make BulkTextKit — 15 free text tools that run 100% in your browser, nothing uploaded. The Remove Line Breaks tool is the one I open for this job: paste the broken text, pick your separator (space is the default), hit Join lines and copy the smooth result. No account, no limit, and your text never leaves your device.
One line on Pro: BulkTextKit Pro ($19 one-time, no subscription) adds bulk mode — remove line breaks from 50 texts at once — plus saved presets and CSV export.
What is the worst copy-paste mess a PDF has ever handed you?