Remove Line Breaks
Strip line breaks from pasted text and join it back into a single line or clean paragraphs, instantly inside your browser.
Why remove line breaks?
Text copied from a PDF, an email, or a scanned document often carries unwanted line breaks in the middle of sentences, which look wrong once pasted somewhere else. This tool strips those line breaks and rejoins the text, with a choice of what to replace them with and an option to keep real paragraph breaks intact.
GuideHow to use it
How the cleanup works
By default, every line break is replaced with the separator you choose — a space by default, so sentences rejoin naturally. With "Preserve paragraph breaks" turned on, blank lines (which usually mark real paragraph boundaries) are kept as blank lines, while single line breaks within a paragraph are joined. "Collapse extra spaces" then cleans up any doubled-up spacing left behind.
Why it helpsFeatures & benefits
Why this runs entirely in your browser
The cleanup runs in JavaScript locally in the tab, which means it keeps working offline once the page has loaded and nothing typed here is ever sent to a server.
Common uses
Cleaning up text copied from a PDF before pasting it into an email, joining broken lines from a scanned document, or preparing text for a system that expects a single line, like a CSV field or a URL parameter.
Frequently asked questions
A few things people usually want to know before trusting the numbers.
A blank line — two or more line breaks in a row — is treated as a paragraph boundary when "Preserve paragraph breaks" is turned on. Single line breaks within a paragraph are still joined.
Joining lines can leave doubled-up spacing where a line break used to be. Turn on "Collapse extra spaces" to automatically clean that up.
Yes — choose "Nothing" from the replacement dropdown to delete line breaks without inserting anything in their place.
Yes, this is one of its most common uses — PDFs often insert a line break at the end of every visual line, which this tool removes.
No. All cleanup happens locally in your browser. Nothing typed or pasted here is sent to a server, stored, or shared.