Remove Line Breaks
Text copied from PDFs, emails, and chat windows often arrives with a hard line break at the end of every line. Paste it here to remove those line breaks instantly. You can replace each break with a space, keep the breaks between paragraphs, or delete them completely, and the tool tells you how many line breaks it found.
Every line break becomes a single space, so the text flows as one continuous line.
Related Tools
[3 suggestions]Whitespace Remover
Strip unnecessary spaces, redundant tabs, and excessive blank lines from text.
Case & FormattingRemove Duplicate Lines
Strip repeated lines from any block of text while preserving initial ordering.
Line & ListsFind and Replace Text
Find and replace text in bulk with match case, whole word, and regular expression options.
Case & FormattingAbout the Remove Line Breaks
The Remove Line Breaks tool offers three modes. Replace with a space turns every line break into a single space so the text flows as one continuous line. Keep paragraphs joins the lines inside each paragraph but preserves the blank line between paragraphs, which is the right choice for text copied from a PDF or a hard-wrapped email. Remove completely deletes line breaks without adding anything, which is useful for joining pieces of a code, a long number, or a token that was split across lines. The tool recognizes every common line ending, including Windows (CRLF), Unix and modern Mac (LF), classic Mac (CR), and the Unicode line and paragraph separators. An optional setting also collapses repeated spaces into one so the joined text does not contain double spaces. This tool targets line breaks specifically, while the Whitespace Remover trims extra spaces and blank lines. Everything runs locally in your browser and your text is never uploaded.
How do I remove line breaks but keep the paragraphs?▾
Choose the Keep paragraphs mode. Lines inside each paragraph are joined with a space, and the blank line between paragraphs is preserved.
Does it work with Windows and Mac line endings?▾
Yes. Windows (CRLF), Unix and modern Mac (LF), classic Mac (CR), and the Unicode line and paragraph separators are all detected and removed.
What is the difference between this tool and the Whitespace Remover?▾
This tool removes or replaces line breaks themselves. The Whitespace Remover trims leading and trailing spaces, collapses repeated spaces, and reduces excessive blank lines while leaving normal line breaks in place.