Remove Line Breaks Online
Remove line breaks and clean unwanted carriage returns from pasted text. Format court orders, PDF paragraphs, and spreadsheet lists in one click.
Use this tool to remove line breaks online from text you copied from a PDF, Word, or Excel sheet. Paste the broken lines in, pick what each line break becomes, and copy out one smooth paragraph. It runs in your browser, so your text is never uploaded to my server.
How to remove line breaks from text
- Paste your text in the “Enter or Paste Text with Line Breaks” box. The numbers above the box show the characters, words and lines before cleaning.
- Pick the Line Break Replacement: “Replace with single space (single paragraph)”, “Remove completely (no space between lines)”, “Replace with comma and space (, )”, “Replace with semicolon (; )”, or “Custom delimiter string…”.
- If you pick Custom, type your separator in the Custom Delimiter box. It starts as ” | “. You can type \t for a tab or \n for a line break.
- Three boxes are already ticked: Collapse multiple spaces, Trim each line, and Drop empty lines. Untick any of them to change it.
- Read the cleaned text in Cleaned Output. It updates as you type, and the numbers above it show the characters, words and lines after cleaning.
- Click Copy Cleaned Text to copy it, or Reset to start again.
What each mode does
Single space turns the lines into one paragraph. That is the mode to use for reading. Remove completely joins the lines with nothing between them, so use it only when you want that, like joining parts of a code or an ID. Comma and space turns a column into a list, like names or phone numbers from Excel. Semicolon does the same with a semicolon between items. Custom lets you type any separator you want.
The tool splits your text at every line ending, Windows, Unix or old Mac, then trims each line and joins them with your separator. Collapse multiple spaces turns runs of spaces and tabs into one space.
Worked example with copied government notification
Here is a three-line fragment copied from an official central recruitment PDF notification:
Candidates must submit their application
forms through the official online portal
before the specified closing date.
Run it through the tool with the single space setting, and the three lines become one sentence:
Candidates must submit their application forms through the official online portal before the specified closing date.
The tool’s own numbers show it. Before cleaning: 116 characters, 16 words, 3 lines. After cleaning: 116 characters, 16 words, 1 line. The count stays the same because each line break becomes one space, so no words join together and no characters are lost.
What this tool can’t do
It does not remove hyphens. If a word splits across lines with a hyphen, the hyphen stays in your sentence. Check the output and fix those by hand.
With the default settings, paragraph breaks go away too. Every line break becomes one space. To keep paragraphs, pick Custom delimiter, type \n, and untick Drop empty lines.
Remove completely joins the last word of one line to the first word of the next with no space. Use it only when you want that.
The tool joins lines in the order you pasted them. It does not sort them. To put lines in alphabetical order, use the sort lines tool.
The tool only joins lines. It does not fix spelling, grammar, or wrong words in your text.
If you paste nothing, the output stays empty and the Copy Cleaned Text button stays greyed out.
Frequently Asked Questions
Will this tool delete my intentional paragraph breaks?
With the default settings, yes. Every line break becomes one space, so paragraph breaks go away too. To keep them, pick Custom delimiter, type n as the delimiter, and untick Drop empty lines. Then blank lines stay in and your paragraphs survive.
Does this tool upload my sensitive text to an external server?
No text leaves your device. All processing occurs locally within your web browser using client-side JavaScript. Confidential legal drafts, client contracts, and student records remain completely private on your computer or phone.
How can I convert an Excel column into a comma-separated list?
Copy your column of numbers or names from Excel and paste it into the input box. Select the comma and space replacement option. The tool immediately transforms your column into a clean comma-separated string.
Why do words stick together when I remove line breaks?
Words stick together if you choose the remove completely option instead of replacing breaks with a space. Choosing the single space setting guarantees that a space separates the last word of a line from the next word.
Can I use my own separator?
Yes. Pick Custom delimiter string and type it in the Custom Delimiter box. Type t for a tab or n for a line break.