Free online text tool

Remove Line Breaks

Remove Line Breaks puts all your text into one line. Paste your text, click the button and copy the result. It is free and runs in your browser.

Remove Line Breaks Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Remove Line Breaks Example

Before
She was sad to hear that fireflies are facing extinction due to artificial light, habitat loss, and pesticides.
She did her best to help him.
There's a reason that roses have thorns.
After
She was sad to hear that fireflies are facing extinction due to artificial light, habitat loss, and pesticides. She did her best to help him. There's a reason that roses have thorns.

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Remove Line Breaks do?

This tool removes the line breaks from your text and puts everything into one line. Each line break is replaced with a single space, so the words stay apart.

Empty lines are dropped, and the spaces at the start and end of each line are removed, so you do not get double spaces. Tick Join the lines without adding a space if the lines should run together. Tick Keep the empty lines between paragraphs if you only want to join the lines inside each paragraph.

Use it for text copied from PDFs, emails or websites where every line ends with a hard line break, or to put a list on a single line.

Remove line breaks examples

Each example shows the text before and after. Both options are off unless the example says otherwise.

CaseBeforeAfter
Example
She was sad to hear that fireflies are facing extinction due to artificial light, habitat loss, and pesticides.
She did her best to help him.
There's a reason that roses have thorns.
She was sad to hear that fireflies are facing extinction due to artificial light, habitat loss, and pesticides. She did her best to help him. There's a reason that roses have thorns.
Short lines
one
two
three
one two three
Empty lines are dropped
a


b
a b
Spaces at the start and end of lines
  a  
  b  
a b
Join without a space (option on)
Hello
World
HelloWorld
Keep paragraphs (option on)
Line one
line two

Line three
line four
Line one line two

Line three line four
Keep paragraphs, empty line with a space (option on)
a
 
b
a

b
No line breaks
no breaks here
no breaks here

How to remove line breaks

  1. 1
    Add your text
    Paste your text into the box, or import a text file.
  2. 2
    Choose the options
    Tick Join the lines without adding a space or Keep the empty lines between paragraphs if you need them.
  3. 3
    Click Remove Line Breaks
    All your lines are joined into one line. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the result where you need it.

When to remove line breaks

Good for

Fixing text copied from PDFs, emails and websites, turning a list into one line, and getting text ready for a form or a single cell.

Check first

Each line break becomes one space and empty lines are dropped, unless you tick the options. If you tick Join the lines without adding a space, words at the line ends will stick together. The result replaces your text, so use Undo if you need the original.

Other tools

To remove only the empty lines try Remove Empty Lines. To use a comma instead of a line break try Replace New Lines With Commas. To remove double spaces try Remove Extra Spaces.

Remove line breaks FAQ

What does the Remove Line Breaks tool do?

It removes the line breaks from your text and puts all your lines into one line. By default each line break is replaced with a single space, so the words stay apart.

How do I remove line breaks?

Paste your text into the box and click Remove Line Breaks. The lines are joined into one line. Click Copy to use the result, or Undo to go back.

Will my words stick together?

Not by default. Each line break becomes one space, so the last word of a line and the first word of the next line stay apart. Tick Join the lines without adding a space if you want the lines to run together with nothing between them.

What happens to empty lines?

Empty lines are dropped, so they do not leave extra spaces. If you want to keep the paragraphs, tick Keep the empty lines between paragraphs.

Can I keep my paragraphs?

Yes. Tick Keep the empty lines between paragraphs. The lines inside each paragraph are joined, and the paragraphs stay separated by one empty line.

What about spaces at the start and end of a line?

They are removed when the lines are joined, so you do not get double spaces.

Does it work with Windows and Mac line breaks?

Yes. It removes all kinds of line breaks, including the ones from Windows, Mac and Linux files.

What if my text has no line breaks?

Your text is left as it is and you see the message No line breaks found.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Remove Tools

Last updated: 11 November 2026