Skip to content
CaseConverterHQ

Remove line breaks

Text copied out of a PDF, an email or a terminal arrives broken every seventy characters. This joins the lines back into flowing text that will re-wrap properly wherever you paste it.

Change the case

Programmer cases

Lines and spacing

Paste some text and choose a conversion.

Words
0
Characters
0
No spaces
0
Sentences
0
Paragraphs
0
Lines
0
Read time
0 sec

Nothing you paste leaves your browser — every conversion runs on this page. Check this before you rely on it. This text converter is provided free and without warranty, and its results are not professional advice.

Where the stray line breaks come from

A PDF has no paragraphs. It has glyphs at coordinates, and the extractor guesses where the lines were — so copying a paragraph out of one gives you a hard return at the end of every visual line. Paste that into a document with a different column width and the text breaks in the wrong places, permanently.

Plain-text email is the other big source. The convention of wrapping at 72 to 78 characters dates from terminals and is still baked into mail clients and mailing lists, so quoted replies arrive pre-broken. Terminal output, chat logs and text pasted out of a fixed-width code block all have the same shape.

The fix is to remove the breaks that were only there for display and keep the ones that mean something.

Paragraphs versus wrapped lines

The distinction that matters is between a line break inside a paragraph, which was purely visual, and a blank line between paragraphs, which is structure. This tool joins every line into one continuous run, which is what you want for a single mangled paragraph.

For a longer document where the paragraph breaks matter, work paragraph by paragraph, or join everything and then re-split — it is faster than it sounds and considerably faster than fixing a document where all the structure was flattened at once.

Each line is trimmed before joining and empty lines are dropped, so you never end up with double spaces or a gap in the middle of a sentence where a blank line used to be.

Worked example

Before

The quarterly report showed
growth in three regions,
with the fourth flat.

We expect that to change.

After

The quarterly report showed growth in three regions, with the fourth flat. We expect that to change.

Common questions

How do I remove line breaks from text copied out of a PDF?

Paste the text here and click Remove line breaks. Every hard return is replaced by a single space and the text becomes one continuous run that will re-wrap wherever you paste it.

Will it delete my paragraph breaks too?

Yes — this joins everything into one run. If you need to keep paragraph structure, convert one paragraph at a time.

Does it handle Windows and Mac line endings?

Yes. Carriage returns, line feeds and the Windows CRLF pair are all recognised and removed.

Other text tools