Remove Line Breaks
Text copied out of a PDF, an email or a terminal usually arrives broken into short lines. This puts it back into flowing paragraphs - and by default it keeps the paragraph breaks, which is the part most tools get wrong.
Use nothing when the source hyphenates across lines, a space for ordinary prose.
Why pasted text arrives broken
There are two different things that look identical on screen. Soft wrapping is your editor deciding where to end a display line; the text underneath is one continuous paragraph. A hard line break is an actual character stored in the text, and it stays there no matter how wide the window gets.
PDFs, plain-text emails and terminal output are full of the second kind, because they were laid out for a fixed width. Paste that into a document or a form and the ragged short lines come with it. Removing those characters is all this tool does - it joins the lines back up so the text can reflow naturally.
The reason paragraphs need protecting is that they are marked the same way, with a break character - just two in a row instead of one. Strip every break indiscriminately and a chapter becomes one enormous block. With keep paragraph breaks on, a blank line is treated as structure and left in place, and only the wrapping inside each paragraph is removed.
Line endings differ between systems - Windows uses a carriage return and a line feed, macOS and Linux use a line feed alone - and mixed files are common when text has moved between them. All three are handled here, so you do not need to know which kind you have.
Questions
How do I remove line breaks but keep my paragraphs?
Leave the keep paragraph breaks option switched on. Blank lines are then treated as genuine paragraph separators and preserved, while the line wrapping inside each paragraph is removed.
Should I join the lines with a space or with nothing?
Use a space for ordinary prose, otherwise the last word of one line runs into the first word of the next. Use nothing when the source hyphenates words across a line break, or when the text is a long string such as a key that was wrapped for display.
Does it work with text copied from a PDF?
Yes, that is the most common reason to use it. PDFs store text laid out for a fixed page width, so copying from one gives you a hard break at the end of every visual line. This joins them back into paragraphs.
Does it handle Windows, Mac and Linux line endings?
Yes. Carriage return, line feed and the Windows combination of both are all recognised, including files that mix them, which happens often when text has moved between systems.
Is my text sent anywhere?
No. The whole operation runs in your browser in JavaScript. There is no endpoint on this site that receives the text.
Removing repeated lines instead? Use the duplicate line remover.
Related tools
Somewhere to keep the tidied version
Snoq is a Windows notes app with a rich text editor, tabs and full-text search, storing everything in an AES-256 encrypted database on your own disk. No account, no cloud, no telemetry, and free.
Download Snoq for Windows