Remove Line Breaks
Join wrapped lines with a space or no separator, with optional paragraph preservation.
Paste plain text. Maximum 200,000 UTF-16 units, about 200,000 basic letters. Existing spaces and tabs stay unless you choose to trim line edges.
0 / 200,000 UTF-16 units
Paste text, choose your settings, then remove line breaks.
Long text wraps visually in this box. Visual wrapping does not add line-break characters.
How the joining works
- One space: each removed break becomes one ordinary space. Two consecutive breaks become two spaces when paragraph preservation is off. Existing spaces are not collapsed, so an already spaced line edge can produce extra spaces.
- Nothing: removes the break without adding a character. For example,
notefollowed by a break andbookbecomesnotebook. Existing spaces and tabs remain. - Keep paragraph breaks: retains the breaks on both sides of a blank line and keeps longer blank-line gaps intact. An empty line or a line containing only ordinary spaces and tabs counts as blank. A single U+2029 paragraph separator is also retained. Other single breaks are joined.
Line endings and text limits
The recognized breaks are LF (U+000A), CR (U+000D), CRLF as one break, vertical tab (U+000B), form feed (U+000C), next line (U+0085), line separator (U+2028), and paragraph separator (U+2029). The browser normalizes CR and CRLF to LF in the input box before processing. Paragraph preservation keeps the other recognized break characters unchanged.
Literal text such as \n, HTML tags such as <br>, and visual word wrapping are not line-break characters. Nonbreaking spaces, zero-width spaces, punctuation, hyphens, letter case, emoji, and combining marks are left as supplied. No Unicode normalization or automatic repair of hyphenated words is performed.
Input and output are limited to 200,000 UTF-16 code units each. This measures JavaScript string length, not bytes or visible characters; many emoji use two or more units. Output is never longer than input. Removing breaks loses their original positions, so the operation cannot be reversed automatically. Keep your source when layout matters.
Text is processed in this page without being sent by the tool or saved by it. Copy runs only when you press its button. Clear resets this workspace and its settings; it is not a secure memory erase.
Technical references: HTML textarea newline handling and Unicode line-break characters.