Unicode & Text Authority
TEXT REFERENCE / TOOLS

Remove line breaks

Join lines with a space, no separator or custom text, or split text into lines.

How it works

Replace each CRLF, CR or LF line break with a space, nothing or a custom literal separator. Optionally skip exactly empty lines when joining. In Split text mode, replace each occurrence of a nonempty literal delimiter with a new line. Other whitespace is preserved.

Copy line conversion summary

Use Copy line conversion summary to copy the displayed output code-point count as tab-separated Metric and Value columns, without copying the converted text. Joining apple and pear with a comma and space gives apple, pear (11 output code points). Splitting it on the same delimiter gives 10 output code points, including the line break.

Join lines with a custom separator

Enter apple and pear on separate lines and choose Custom text with , as the separator to produce apple, pear. Space and None retain their original behavior. By default every line break is replaced, including consecutive and final breaks; this is not a CSV parser. Spaces in the separator are significant. An empty custom separator is equivalent to None.

Skip empty lines when joining

Enable Skip empty lines when joining to omit exactly empty line elements, including leading, consecutive and trailing empty lines. For example, apple, an empty line, and pear become apple, pear with a comma and space separator instead of apple, , pear. A line containing only spaces, tabs or other whitespace is not empty and remains unchanged. With all lines empty, the result is empty. This option applies only to joining and is off by default.

Split text into lines

Choose Split text into lines and enter a literal delimiter. For example, with a comma delimiter, apple,pear,plum becomes three lines. With , , the space is part of the delimiter. Matching is exact and case-sensitive, with non-overlapping occurrences. Leading, repeated and trailing delimiters create empty fields; no trimming or blank-field removal is performed. Existing line breaks remain (CRLF and CR become LF). If the delimiter is absent, normalized input is unchanged. This is not CSV parsing: quotation marks do not protect delimiters, and joining and splitting cannot always recover the original text.

Limits and privacy

Source: 50,000 UTF-16 units; custom separator or split delimiter: 1,000 units; output: 100,000 units. CRLF and CR become LF before replacement. Split delimiters must be nonempty. CR and LF are not allowed in custom separators or split delimiters; unpaired surrogates are rejected in custom join and split modes. Larger results are rejected before construction. Processing is local to your browser; no uploads or text storage by this tool.

Related: Text line filter · Add prefix and suffix to lines · Whitespace cleaner.

Other tools

Text utilities

Encoding and conversion

Typography

Character and case tools