Skip to content
Main menu

Free text tool

Remove line breaks from text

Paste text to remove line breaks. Join wrapped lines with spaces while keeping paragraphs, or delete all line breaks without replacement.

Paste plain text. Maximum 100,000 JavaScript string units (some emoji count as two).

How should line breaks be removed?

Text is processed only in this browser tab and is not stored by this tool. Reloading or closing the tab loses your input and result.

How to remove line breaks

Paste plain text, choose whether to keep paragraphs, and select Remove line breaks. Copy the result below. If you edit the input or change the option, run the tool again.

What changes?

Keep paragraphs: A single line break between text lines becomes one space. Spaces and tabs immediately beside that break are removed to avoid duplicate spaces. Two or more breaks, including whitespace-only lines, become one blank line. Spacing before the paragraph separator is removed; indentation at the start of the next paragraph stays.

Remove all: Line-ending characters are deleted without replacement. Words can join together: hello↵world becomes helloworld. Existing spaces and tabs remain.

Formats and limits

Windows (CRLF), Unix (LF) and standalone CR endings are recognized. Paragraph mode writes LF endings. Letters, emoji and other Unicode characters are preserved. Rich formatting from Word or PDF is not retained in plain text. PDF line wrapping can split sentences; review headings, tables and intentional line breaks after conversion. The limit is 100,000 JavaScript string units, so some emoji count as two toward the limit.

Questions and answers

How can I remove line breaks but keep paragraphs?
Choose “Keep paragraphs”. A single break between text lines becomes one space. Two or more breaks become one blank line between paragraphs.
What does “Remove all line breaks” do?
It deletes CRLF, LF and standalone CR without adding spaces. Existing spaces and tabs remain. Words separated only by a line break can join together.
What happens to empty lines and extra spaces?
In paragraph mode, a line containing only spaces or tabs counts as blank. Multiple blank lines collapse to one. Spaces and tabs beside a single break are replaced by one space. Spacing before a paragraph separator is removed, while indentation after it remains.
Is my text saved?
The text is processed in this browser tab. This tool does not upload or store it. Reloading or closing the tab loses the input and result, so copy anything you want to keep.