Remove line breaks

Paste text that is full of unwanted line breaks and get clean, flowing text back instantly.

Everything happens in your browser. Nothing you paste is uploaded or stored.

Why pasted text arrives full of breaks

Copy a paragraph out of a PDF and it usually lands as a stack of short lines. PDFs store text as printed lines rather than flowing paragraphs, so every visual line ending in the document comes along as a hard break. Plain-text emails are often wrapped at around 70 characters by the program that sent them, subtitle files break lines to fit a screen, and text lifted from scans, ebooks and terminal windows does the same. The layout looked right at its original width; paste it anywhere else and every line ends in the wrong place, usually mid-sentence.

Fixing it by hand means clicking at the end of every line and pressing delete, sometimes hundreds of times. Word's find and replace can do it with the ^p code, but it is fiddly and merges your real paragraphs too. Paste the text here instead and the clean version appears instantly, updating as you type or switch modes. Everything happens in your browser, so nothing you paste is uploaded, stored or seen by anyone.

Choosing between the two modes

Remove every break joins the whole text into one continuous block, with a single space where each break used to be. Use it for a single paragraph that has been chopped into short lines, or when you are pasting into a form field, a spreadsheet cell or a chat box that handles breaks badly.

Keep paragraph breaks is gentler. It treats a blank line as a paragraph boundary, joins the lines inside each paragraph, and leaves exactly one empty line between paragraphs. Use it for longer passages, such as an article or a letter, where the paragraph structure is worth keeping.

Copied from a PDF (¶ marks a break): The meeting has been ¶ moved to Thursday at ¶ 2pm in the main hall.
Remove every break: The meeting has been moved to Thursday at 2pm in the main hall.
Dear Sam, ¶ thanks for sending ¶ the report. ¶ ¶ Speak soon, ¶ Alex
Keep paragraph breaks: "Dear Sam, thanks for sending the report." then a blank line, then "Speak soon, Alex".

What gets tidied along the way

Joining lines can create odd spacing, so the tool also trims spaces from the ends of each line before joining and collapses any doubled spaces the join would otherwise produce. Empty lines are dropped in remove-every-break mode, and a run of several blank lines counts as a single paragraph gap in keep-paragraphs mode. What it never does is touch your words: no spelling changes, no punctuation added or removed, no capitalisation. If a sentence was split across two lines with a hyphen at the break, as often happens in print, the hyphen stays where it is, so skim the result for words like "manage- ment" and mend them by hand.

When to leave the breaks alone

Not every break is a mistake. Poetry, song lyrics, postal addresses, code and one-item-per-line lists all carry meaning in their line endings, and joining them throws that structure away. If you are cleaning a list rather than prose, keep it one item per line and tidy it differently instead, for example by stripping repeated entries or putting it in alphabetical order. And if the text you are cleaning also suffers from doubled spaces or stray tabs inside the lines, run the result through the remove extra spaces tool afterwards for a complete clean.

Frequently asked questions

Why does text copied from a PDF have a break at the end of every line?

PDFs store text as printed lines rather than flowing paragraphs, so every visual line ending in the document becomes a hard break when you copy it. The text looked right at the PDF's width, but pasted anywhere else the breaks land mid-sentence. Emails, subtitles and scanned documents cause the same problem for similar reasons.

What is the difference between the two modes?

Remove every break joins the whole text into one continuous block, replacing each break with a space. Keep paragraph breaks treats a blank line as a paragraph boundary, joins the lines within each paragraph, and leaves one empty line between paragraphs. Use the first for a single chopped-up paragraph and the second for longer passages.

Will it merge my bullet list into one line?

In remove-every-break mode, yes, every line is joined, which is rarely what you want for a list. If your list items are separated by blank lines, keep-paragraph-breaks mode will preserve them as separate blocks. For lists it is usually better to keep one item per line and tidy them another way.

Does it fix doubled spaces as well?

It trims spaces from the ends of lines before joining and collapses any doubled spaces the join itself would create, so the output reads cleanly. It does not hunt down every repeated space inside your original text. For a full spacing clean-up, run the result through the remove extra spaces tool afterwards.

Is my text uploaded anywhere?

No. The processing happens in your browser using JavaScript and the text never leaves your device. Refreshing the page clears everything.

Related tools