Remove Line Breaks

Strip or replace line breaks and blank lines from pasted text in one click.

About this tool

Clean up text that has line breaks in awkward places — usually from copying out of a PDF, an email, or a code editor with wrapping on. Turn every line break into a space, remove them entirely, or just delete the empty lines while leaving the rest of the layout alone. You can keep the blank line between paragraphs, collapse runs of spaces, and trim each line. It all happens in your browser.

Frequently asked questions

What's the difference between the first two modes?
"Breaks → spaces" joins lines with a space, which is what you want for prose. "Breaks → nothing" glues them directly together, useful for a key or token that got wrapped across lines.
How does "keep paragraph breaks" decide what a paragraph is?
Any place where you had one or more completely blank lines is treated as a paragraph boundary and becomes a single blank line in the output. Single line breaks within a paragraph are removed.
Does it handle Windows and Mac line endings?
Yes. Carriage returns, line feeds, and the Windows CRLF combination are all recognised.