Remove Line Breaks

Strip out awkward line breaks from pasted text - keep your paragraphs or flatten everything to one line.

Cleaned text

Why pasted text arrives broken

When you copy text out of a PDF, an email or a code editor, each visible line often ends with a hard line break rather than flowing naturally. Paste it elsewhere and you get sentences chopped into ragged fragments. This tool rejoins those fragments so the text reads as continuous prose again, ready to drop into a document, form or CMS.

Choosing a mode

Keep paragraphs is the everyday choice. It reads a blank line as a deliberate paragraph break, joins the wrapped lines inside each paragraph, and keeps the paragraphs apart. You get clean, properly separated paragraphs instead of one giant wall of text.

Join into one line is more aggressive: it removes every single line break so the entire input collapses into one unbroken line. That is handy for turning a multi-line snippet into a single field value, a spreadsheet cell or a one-line string.

Tidy spacing while you are at it

Removing line breaks can leave stray double spaces where a break used to sit. Tick Collapse multiple spaces and any run of spaces between words becomes a single space. Trailing spaces at the end of each line, and whitespace at the very start or end of the text, are always trimmed regardless of that option. The result updates live as you paste and toggle options, and nothing leaves your browser.

Cleaning text before pasting it somewhere new pairs well with the word counter to check length, the case converter to fix capitalisation, and remove duplicate lines when your list has repeats.

What counts as a line break

Different systems mark the end of a line differently - Windows uses a carriage return plus a line feed, while Mac and Linux use a single line feed. The tool normalises both before doing anything, so text pasted from any source behaves the same. A "paragraph break" here simply means one or more blank lines, which is how nearly every editor separates paragraphs, so the keep-paragraphs mode lines up with what you would expect visually.

A quick tip: if your text has bullet points or numbered lists, use join-into-one-line with care, because it will merge those items too. For lists, keep-paragraphs is usually safer, and you can always paste the cleaned result back in and run it again with a different setting. Nothing is destructive - your original stays in the input box until you change it.

Frequently asked questions

How do I remove line breaks from text copied from a PDF?
Paste the text into the box above and choose "Keep paragraphs". The tool joins the broken mid-sentence lines back together while preserving the blank lines between paragraphs, which is exactly the mess you get pasting from a PDF or an email.
What is the difference between the two modes?
"Keep paragraphs" treats any blank line as a paragraph break: it joins wrapped lines within each paragraph but keeps the paragraphs separate. "Join into one line" removes every line break so the whole text becomes a single continuous line.
Will it remove double spaces too?
Only if you tick "Collapse multiple spaces". When ticked, any run of two or more spaces between words is reduced to a single space, which cleans up the gaps left after removing line breaks. Leave it unticked to keep the spacing between words as it was. Either way, trailing spaces at the end of lines and any whitespace at the very start or end of the text are always trimmed.
Does this change my original text file?
No. It works on the text you paste, entirely inside your browser, and shows the cleaned result in a separate box for you to copy. Your source file is never touched or uploaded.