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.
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.
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
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.
Each example shows the text before and after. Both options are off unless the example says otherwise.
| Case | Before | After |
|---|---|---|
| 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 |
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.
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.
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.
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.
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.
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.
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.
Yes. Tick Keep the empty lines between paragraphs. The lines inside each paragraph are joined, and the paragraphs stay separated by one empty line.
They are removed when the lines are joined, so you do not get double spaces.
Yes. It removes all kinds of line breaks, including the ones from Windows, Mac and Linux files.
Your text is left as it is and you see the message No line breaks found.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 11 November 2026