Remove Line Breaks

Paste multi-line text and remove or replace all line breaks in one click — perfect for cleaning up copied content.

Remove line breaks from text online — free, instant, no login required. Paste any multi-line text, choose to strip line breaks or replace them with spaces, and copy the clean result in one click.

What this tool does

  • Removes all line breaks (newlines) from any pasted text
  • Option to replace each line break with a space instead of deleting it
  • Handles Windows (CRLF), Unix (LF), and old Mac (CR) line endings
  • Works with any amount of text — no character limit
  • One-click copy of the clean result to your clipboard

Why remove line breaks?

Text copied from PDFs, emails, or web pages often arrives with unwanted line breaks inserted mid-sentence. This makes it difficult to paste directly into a form, CMS editor, or code. Removing line breaks turns fragmented lines back into a continuous block of text, saving manual editing time.

Remove vs replace with space

"Remove Line Breaks" deletes the newline character entirely, joining lines with no separator — useful when copying from columns or narrow-width documents where words wrap mid-sentence. "Replace with Space" inserts a space where each newline was, which is better for normal prose where each line ends mid-sentence and needs a word separator.

Handling Windows and Unix line endings

This tool handles all common line ending formats: Windows-style CRLF (\r\n), Unix-style LF (\n), and old Mac-style CR (\r). Regardless of what operating system generated the text, the tool will strip all line endings consistently.

Common use cases

  • Clean up text copied from a PDF with hard line wraps mid-sentence
  • Remove line breaks from an email thread before pasting into a form or CMS
  • Flatten multi-line addresses into a single line for a spreadsheet or database
  • Prepare text for single-line input fields that reject newline characters
  • Join wrapped lines from a narrow-width document or code editor output