Remove Line Breaks

Remove line breaks and join text into one flowing line. It fixes text copied with hard breaks at the end of every line, such as a paste from a PDF or an email.

Updated

Text Tools● Free No upload Instant

Loading Remove Line Breaks…

Your browser is preparing the tool. It runs 100% locally.

Quick answer

Paste text with line breaks and the tool joins it into a single flowing line. Each break, and the spaces around it, becomes one space, so three wrapped lines turn into one paragraph. Unlike a space cleaner, it removes the breaks, which is what you need to un-wrap text copied from a PDF or an email. Your browser does the joining and the text is never uploaded.

What the Remove Line Breaks does

The tool takes text broken across many lines and flows it back into one. Every line break, together with any spaces next to it, becomes a single space, so the words join into a continuous line or paragraph.

Text copied from a PDF, an email or a narrow column often arrives hard-wrapped, with a break you don't want at the end of each line. This turns it back into running prose.

How it works

The tool finds every line break and replaces it, along with any whitespace just before or after it, with a single space. You get the same words on one line, with stray spaces trimmed from the start and end.

A space cleaner keeps your line breaks and only normalises the spaces. This tool removes the breaks on purpose, for text that was wrapped in the wrong places.

Processing pipeline

  1. Find the line breaks. Locate every line break in the text.
  2. Replace with a space. Swap each break, and the whitespace around it, for a single space.
  3. Join into one line. The words flow together into a continuous line or paragraph.
  4. Trim the ends. Remove any leading or trailing spaces from the result.

How it joins

each line break (and the spaces around it) → one space then trim the start and end
Worked example
line one / line two / line three → line one line two line three

Every line break is removed and the text becomes one line. A space cleaner does the opposite: it keeps single line breaks and only tidies the spacing.

Standards and references

  • Joining wrapped text: Replacing line breaks with spaces turns hard-wrapped text back into continuous prose. Use it when breaks at the ends of lines split what should read as one paragraph.
  • Distinct from tidying spaces: A remove-extra-spaces tool keeps line breaks and normalises spacing, while this tool removes the breaks. Pick the one that matches what you want to fix.
  • Whitespace around breaks: The spaces just before and after a break are absorbed into the single space that replaces it, so the joined text has single spacing where the breaks were.

Accuracy and limits

Hard-wrapped text comes out as you'd expect: the breaks become single spaces and the words run on as one line.

All line breaks go, including those between paragraphs, so a text with several paragraphs becomes one. If you need to keep paragraph breaks, use something else, because this tool joins everything.

If you want to tidy double spaces and keep the line structure, use a remove-extra-spaces tool. This one removes the breaks on purpose.

A word hyphenated across a line break is joined with a space, not merged. It comes back as two parts with a space between them, so you may need to fix it by hand.

Real-world uses

Un-wrapping PDF text

Flow text copied from a PDF back into one line.

Fixing email wrapping

Join text broken by an email's narrow column.

Joining a list into a line

Turn a list of lines into one continuous string.

Cleaning pasted text

Remove unwanted breaks from pasted text.

When it fits, and when it doesn't

Good for

  • Joining wrapped text into one line
  • Un-wrapping text from a PDF or email
  • Removing all line breaks
  • Flowing a list into a paragraph

Not the best choice for

  • Keeping paragraph breaks
  • Tidying spaces while keeping line breaks
  • De-hyphenating words split across lines
  • Reflowing into fixed-width lines

To keep line breaks and tidy only the spacing, use a remove-extra-spaces tool. Keeping paragraphs while joining the lines inside them needs a smarter reflow, because this tool removes every break.

Frequently asked questions

What does it do to my text?
It replaces every line break, and the spaces around it, with a single space, so the text joins into one line. Stray spaces at the start and end are trimmed.
How is this different from removing extra spaces?
A space cleaner keeps your line breaks and tidies the spacing. This tool removes the line breaks and joins the text into one line.
Will it keep my paragraphs?
No. It removes all line breaks, including the blank lines between paragraphs, so several paragraphs become one.
Why would I need to remove line breaks?
Text copied from a PDF, an email or a narrow column often has a break at the end of every visible line. Removing those breaks lets the words run on as normal prose.
What happens to spaces around the breaks?
They are absorbed into the single space that replaces each break, so you don't get doubled spaces where the line breaks used to be.
Does it join hyphenated words split across lines?
It joins them with a space instead of merging them. A word hyphenated at a line break comes back as two parts with a space between, so remove the hyphen and close the gap by hand.
Can I keep some line breaks?
No, the tool removes all of them. Keeping paragraph breaks while joining the lines within each paragraph needs a more advanced reflow.
Is the result always a single line?
Yes. Every break becomes a space, so the output is one continuous line. Your editor or word processor can re-wrap it to a width afterwards.
Does it change the words themselves?
No. Only the line breaks and the spacing around them change. The words and their order come through exactly as you pasted them.
Will it remove spaces too, like a whitespace remover?
No. It replaces breaks with single spaces and trims the ends, but the spaces between words stay. A whitespace remover strips every space.
Is my text uploaded?
No. Your browser joins the lines and sends nothing to a server, so the text stays on your device.
Can I undo it to get the line breaks back?
Not automatically, because the original break positions are lost once the lines are joined. Keep a copy of the original if you might need the breaks, or re-wrap the result in an editor.

References

Each line break, together with the whitespace around it, becomes one space. A space cleaner keeps line breaks; this tool removes them.

PopularHot

Word Counter

Count words, characters, sentences and paragraphs as you type, with reading and speaking time alongside.

TextOpen Tool

Remove Duplicate Lines

Remove duplicate lines from a list while keeping the first copy of each in its original position.

TextOpen Tool

Remove Extra Spaces

Tidy messy spacing by collapsing repeated spaces and stacked blank lines. Single line breaks and paragraph gaps stay where they are.

TextOpen Tool
Popular

Case Converter

Switch text between UPPERCASE, lowercase, Title Case, Sentence case, and aLtErNaTiNg with one click per case.

TextOpen Tool
Trending

Lorem Ipsum Generator

Generate placeholder Lorem Ipsum paragraphs, starting with the classic opening line or fully random.

TextOpen Tool
Trending

Text Diff Checker

Paste two versions of a text and see what changed line by line, with additions in green and removals in red.

TextOpen Tool

Back to the Remove Line Breaks

Your file is processed on this device and never uploaded, and there's no account to create.