Remove Line Breaks
Join lines into a single paragraph by removing breaks
What Is the Remove Line Breaks Tool?
The Remove Line Breaks tool takes text that is split across multiple lines and joins it all into one continuous paragraph by stripping out the line breaks. There is a checkbox to add a space between the joined lines, which is the option you almost always want unless you are working with something that should run together without gaps. It is useful for reformatting text copied from PDFs, emails, or documents where hard line breaks got baked in at the end of every line and need to come out before the text goes anywhere else.
Pasting a multi-line block into a form field, a single-line input, or a content management system that does not handle line breaks the way you expect is where this gets used most. The output is a clean, unbroken run of text.
How to Use This Tool
- Paste or type your text into the input box above.
- Check or uncheck the Add space between joined lines option depending on whether you want a space inserted where each line break was removed. Checked is the right choice for most normal text.
- Click Remove Line Breaks and all line breaks are stripped out, combining everything into a single paragraph.
- Copy the result using the Copy button, or select and copy manually. Use Clear to reset the input.
When Would You Use This?
Fixing text copied from a PDF where every line ends with a hard return, turning what should be a flowing paragraph into a stack of short disconnected lines that need to be rejoined before use.
Preparing a block of text for pasting into a single-line field, a chat message, an API input, or any system that reads line breaks as separate records rather than part of one continuous piece of text.
Reformatting email body text or copied article content that arrived with manual line wrapping applied, usually from an older plain-text email client or a document exported without proper paragraph handling.
Examples
Joining a paragraph with hard line breaks, with space option checked
Input : This is the first line.
This is the second line.
And this is the third.Add space: Yes
Output : This is the first line. This is the second line. And this is the third.
Joining lines without adding a space
Input : hel
lo
wor
ldAdd space: No
Output : helloworld
Fixing PDF-extracted text with line breaks after every line
Input : The quick brown fox
jumps over the
lazy dog near
the river.Add space: Yes
Output : The quick brown fox jumps over the lazy dog near the river.
Preparing multi-line content for a single-line input field
Input : Product name: Widget Pro
SKU: WP-1042
Price: $29.99Add space: Yes
Output : Product name: Widget Pro SKU: WP-1042 Price: $29.99
Frequently Asked Questions
How do I remove line breaks from text?
Paste your text into the input box, choose whether to add spaces between joined lines, and click Remove Line Breaks. All the line breaks are deleted and the text is combined into one paragraph.
How do I remove line breaks in Word?
Use Find and Replace (Ctrl+H). In the Find field, type ^p (for paragraph marks) or ^l (for manual line breaks), and leave the Replace field empty or add a space. Click Replace All. For plain text outside of Word, this tool is faster.
How do I join multiple lines into one line?
Paste your lines into the input box, check the space option so words do not run together, and click Remove Line Breaks. Every line in the input becomes part of one continuous string.
How do I remove line breaks in Excel?
Press Ctrl+H to open Find and Replace, then hold Ctrl and press J in the Find field to enter a line break character, and put a space in the Replace field. Click Replace All. For text outside of a spreadsheet, paste into this tool instead.
How do I remove hard returns from copied text?
Hard returns are line break characters that got inserted at fixed intervals, often when text was exported from a PDF or formatted document. Paste the text into this tool, check the space option, and click the button. The hard returns are removed and the text flows normally.
Does it remove all types of line breaks?
It handles the standard line break characters: the newline character used on Unix and Mac systems, and the carriage return plus newline combination used on Windows. Both are treated as line breaks to be removed.
Should I check the "add space" option?
Almost always yes. If you remove a line break without adding a space, the last word of one line and the first word of the next will collide into one run-together string. The only time you might leave it unchecked is if your lines already end with a space or if the content is something like code or data that should not have spaces inserted.
How do I convert a paragraph to a single line?
Paste the paragraph into the input box and run the tool with the space option checked. The output will be the entire paragraph as one unbroken line of text.
Can I remove line breaks from a large block of text?
Yes. No limit is set on input size. Paste as much text as you need and the tool processes the whole block at once.