Skip to content

Free · Private · No sign-up

Line break remover — join broken lines back into clean text

Paste the text, press once, and every line break is gone — each one replaced by a single space so sentences stay apart. Nothing else about the text changes.

Dash remover tool

Everything happens in your browser. Your text never leaves this page.

Dashes to remove
Replace each dash with
Cleanup options

Press Ctrl (or ⌘) + Enter to run it again.

Cleaned text

0dashes removed

Line breaks are where text breaks at its container, not where sense breaks in the sentence. An email wrapped at 72 characters, a PDF paragraph broken at every printed line, a terminal transcript chopped at 80 columns — all of it reads fine in the place it came from and falls apart the moment you paste it somewhere wider: half-finished lines, random gaps mid-sentence, paragraphs that will not flow. This tool joins those lines back together.

By default every break becomes exactly one space, so “end of the\nline” comes back as “end of the line”. Choose “delete without spaces” when the breaks only exist for display — the line-per-entry list in a form field, a list of codes — and the lines should fuse into one unbroken string instead. Runs of blank lines collapse away either way, so a paragraph copied out of a PDF does not leave double gaps behind.

The count above is the number of breaks the tool found and joined — including the invisible ones: the carriage returns (\r) an old file hides at the end of every line, and the U+2028 line separators that some JSON and JavaScript exports use in place of \n. If the count is 0 and the text still looks broken, the culprit is not a line break but a run of spaces or a soft hyphen — the extra-spaces remover and the soft-hyphen remover are the tools for those.

Line break remover tool

Everything happens in your browser. Your text never leaves this page.

Replace each line break with

Press Ctrl (or ⌘) + Enter to run it again.

Text with no line breaks

0line breaks removed

Questions

What does the line break remover do?
It deletes every line break in the text you paste and replaces each one with a single space (or with nothing, if you choose that option). Runs of blank lines collapse as part of the same pass, so the result is clean prose or one continuous line — not a paragraph with gaps in it.
Which characters count as a line break?
All of them: the Windows pair CRLF (\r\n), the Unix newline (\n), the old-Mac carriage return (\r), and the two Unicode separators U+2028 and U+2029 that some exports emit. Windows files pasted after a Unix cleanup leave no stray \r behind, because the pairs are matched first.
Will it destroy my paragraph structure?
Paragraph breaks are line breaks too, so a hard “remove everything” pass turns three paragraphs into one. When you want the paragraphs kept, clean one paragraph at a time — or paste only the broken paragraph. The tool does exactly what you ask; the choice of scope is yours.
What is the difference between the space and nothing options?
“Space” is for prose: two words joined across a break need one space between them, or you get “end ofthe line”. “Nothing” is for data: a list of codes or entries where each line is a complete value, and any inserted character would corrupt it.
Does it also remove the empty lines between paragraphs?
Yes — a blank line is just two breaks in a row, and the join pass collapses runs of breaks into a single replacement. If you need blank lines preserved, remove the breaks paragraph by paragraph instead of all at once.
Is my text uploaded anywhere?
No. Everything happens in your browser: the text never leaves this page, and nothing is stored. Close the tab and it is gone.

Ready to clean your text?

No sign-up, no upload, no word limit. Paste, pick, and copy the result.

Remove dashes now

Related text tools

The rest of the cleanup kit for text that arrives looking worse than it was written.