How it works
This line break remover joins text that breaks in the wrong places. It can remove new lines yet keep paragraph breaks, or turn multiline text into a single line. It finds all 8 kinds of line break that Unicode defines.
Read the full guide
Remove line breaks from text, keep the paragraphs
Paste your text and it replaces the sample. Each single break inside a paragraph becomes a space, so no two words run together. A blank line stays one blank line, so the paragraphs survive.
Remove all line breaks: text to one line
To remove paragraph breaks as well, switch Keep paragraphs off and the whole text becomes a single line. For a column of names, replace each break with a comma and a space.
- A poem or a postal address needs its breaks. For an address on one line, use a comma and a space.
- A plain text email line break often falls every 78 characters or sooner, the line length the mail standard recommends.
- A word hyphenated at a line end stays split, as nor- mal does above, until Rejoin hyphenated words is on.
Questions and answers
What are line breaks?
A line break is an invisible character that ends one line of text and starts the next. Code writes the everyday one, the line feed, as \n and the carriage return as \r. Linebreak and newline are other names for it.
What is the difference between a line break and a paragraph break?
A line break starts a new line inside the same paragraph, as in a poem. A paragraph break ends the paragraph: in plain text, usually a double line break that leaves a blank line. The sample has four line breaks and one paragraph break.
What are hard and soft line breaks?
A soft line break is where an app wraps a line at the edge of the window. Nothing is stored, so there is nothing to remove. A hard line break is a real character in the text, the kind this page takes out.
What are the line break characters?
The Unicode Standard lists eight newline functions: Line feed, Carriage return, the two together, Next line, Line tabulation, Form feed, Line separator and Paragraph separator. The first three are the everyday ones, and the other five are what simple cleaners miss.
Why remove carriage returns as well as line feeds?
Because one break can be two characters. A teleprinter’s carriage return sent the print head back to the first column and its line feed rolled the paper up. Windows kept both, so removing only the line feed strands a return in every line.