Remove or Replace Line Breaks in Your Text

Get rid of line breaks or replace them with characters of your choice.

I want to:
0 characters

Frequently asked questions

Does it handle line endings from both Windows and Mac?

Yes. Carriage returns and newlines are both recognized, so a file that has been round several machines is handled the same way.

How do I turn a list into one comma-separated line?

Replace the line breaks with a comma and a space. The list comes back as a single line, ready for a spreadsheet cell, a query or a tag field.

Why does my text run together with no spaces?

Replacing line breaks with nothing joins the last word of one line to the first word of the next. Replace them with a space instead if the result is meant to be read.

Why does text copied from a PDF break in the middle of sentences?

A PDF stores text as positioned fragments rather than flowing lines, so copying puts a break at the end of every visual line. Replacing those breaks with a space puts the sentences back together.

Will it remove the blank lines between my paragraphs?

Yes. Every break goes, blank lines included. If you want to keep the paragraphs and only tidy the spacing, use Whitespace Cleanup instead.

Can I get the line breaks back afterwards?

Not automatically. Once the breaks are gone the tool has no record of where they were, so work on a copy if you might need the original.