Remove line breaks
Delete the hard returns that break text into short lines when you copy from a PDF or a plain-text email. Keep the gaps between paragraphs and unwrap each one into flowing prose, or join everything onto a single line. Runs entirely in your browser, nothing is uploaded.
0 line breaks in
0 line breaks out
About the Remove line breaks
Remove line breaks deletes the hard returns inside pasted text and rejoins it into flowing prose. It exists because text copied out of a PDF, a plain-text email, a code comment, or an old word processor arrives broken into dozens of short lines, each ending wherever the original column happened to wrap. Paste that into a new document and the ragged breaks come with it, so the paragraph will not reflow and the spacing looks wrong.
The default mode is the one most people actually want: it keeps the blank lines that separate paragraphs but strips the single line breaks inside each paragraph, turning broken fragments back into proper sentences. Other modes let you replace every break with a space, concatenate into a single unbroken line, or remove breaks entirely, so you can prepare text for a CSV cell, a search box, or a database field that cannot contain newlines.
How to use it
- Paste the text with unwanted line breaks into the input box on the left.
- Choose what should happen to the breaks: keep paragraph gaps and unwrap each paragraph (the default), replace every break with a space, or join everything onto one line.
- Leave the collapse-spaces option on to merge the double spaces that often appear once breaks are removed.
- Read the cleaned text on the right and check the line-break counters under each box to confirm the breaks were removed.
- Click Copy to lift the result, or Clear to start again with new text.
Examples
Unwrap text copied from a PDF
You copy a paragraph from a research PDF and it pastes as fifteen short lines, one per visual row. With the default paragraph mode the tool rejoins those lines into a single flowing paragraph, keeps the blank line before the next paragraph, and tidies the doubled spaces, so the text drops cleanly into your document.
Flatten a list into one line
You have a column of values pasted one per line and need them on a single line for a form field. Pick the join mode with a space separator and the fifty lines become one continuous string, ready to paste where a newline would have been rejected.
Frequently asked questions
- Will it keep the gaps between my paragraphs?
- In the default mode, yes. A blank line is treated as a paragraph boundary and preserved as a double line break, while the single breaks inside each paragraph are unwrapped into spaces. If you want every break gone, switch to the join or concatenate mode instead.
- Does it handle Windows and Mac line endings?
- Yes. It normalises carriage returns and the Windows CRLF pair to a single newline before processing, so text from any operating system, email client, or editor is handled the same way and you do not get stray invisible characters left behind.
- Why did double spaces appear after removing breaks?
- When a line break sat next to a space, removing the break can leave two spaces together. The collapse-spaces option, on by default, merges those back into one and also removes the space that ends up before punctuation, so the result reads naturally.
- Is my text uploaded anywhere?
- No. Every transformation runs in your browser with plain string operations. Nothing you paste is sent to a server, which matters when the text is from a confidential document, a draft, or private correspondence.
Good to know
The trickiest part of removing line breaks is telling a real paragraph break from a wrap. Plain-text sources rarely mark paragraphs explicitly; they just leave a blank line, so a single newline almost always means a wrap and a double newline means a new paragraph. The default mode encodes exactly that assumption, which is why it restores most pasted text correctly. If a source uses no blank lines at all, every break looks like a wrap, and the spaces or join modes give you cleaner control.
Use this tool together with the others in the cleanup family. After unwrapping, the remove extra spaces tool will tidy any residual double spacing and trailing whitespace, the text formatter can normalise smart quotes and dashes, and the case converter can fix capitalisation if the source arrived in all caps. Reserve the concatenate mode for technical destinations like CSV cells and URL parameters, where a literal newline would break the format, rather than for ordinary reading text.