Paste broken text, and get it back as clean, flowing paragraphs — line breaks removed, extra spaces tidied, with a live count of what was fixed and a one-click copy. Free, no signup, and your text never leaves your browser.
How to use it
- Paste the text with unwanted breaks into the top box.
- Choose a mode: remove all line breaks, or keep blank-line paragraph breaks.
- Copy the cleaned result — the counter below confirms how many breaks were removed.
Where broken line breaks come from
The classic offender is PDF copy-paste: PDFs position each visual line separately, so copied text arrives with a hard break at the end of every line. Emails wrapped at 72 characters, text from scanned documents and OCR, subtitles files, terminal output, and content pasted between CMSs all do the same thing. The symptom is identical — a paragraph that should flow arrives as a ragged column, and re-wrapping it by hand means deleting breaks one by one.
The two modes
Remove all line breaks collapses everything into one continuous block — right when the source is a single paragraph or you are feeding the text into a form field that treats every newline as a submission.
Keep paragraph breaks is the smarter default for real documents: blank lines (one or more) are treated as intentional paragraph separators and survive, while the breaks inside each paragraph are removed. A three-paragraph PDF excerpt comes out as three clean paragraphs.
By default, joined lines are separated with a single space, and leftover trailing spaces from the source are trimmed so you never get doubled spaces. Turn the space option off to hard-concatenate instead — the right choice for repairing a URL, file path, or license key that was split across lines.
Details worth knowing
Windows (CRLF), Unix (LF), and legacy Mac (CR) line endings are all recognized. Empty lines inside a paragraph do not produce stray spaces. The removal counter updates live, which makes it easy to sanity-check that the tool saw the same number of breaks you did.
After flattening, you might want the word counter to check length, the case converter if the source was shouting in caps, or the remove duplicate lines tool if you are cleaning a list rather than prose.
Private by design
There is no server behind this page — the cleanup is JavaScript running on your device. It works instantly on any length of text, keeps working offline once loaded, and pasting confidential contracts, medical letters, or unpublished writing here is safe because nothing is uploaded.