Line Break Remover

Last updated: October 1, 2026

✅ Free Forever 🔒 Files Stay on Your Device ⚡ No Signup Required 🌐 Works in Any Browser

What is Line Break Remover?

Paste text and strip the line breaks out of it, with separate control over extra spaces, tabs, empty lines and what goes in place of each break. The output updates as you type — there is no button to press.

Set "Replace With" to Space first

Do this before anything else, because the default will not do what you want.

Out of the box, breaks are replaced with nothing at all. So this:

The quick brown fox
jumps over the lazy dog

comes back as The quick brown foxjumps over the lazy dog — the words on either side of the break run together, because there was no space at the end of the first line and none was added.

Change Replace With to Space and you get The quick brown fox jumps over the lazy dog, which is almost certainly what you were after. Then switch on Remove extra spaces to clean up any doubles that result, and you have a single clean paragraph.

Leave it as Nothing only when you are joining fragments that should touch — a long number or code split across lines, or a URL broken by an email client.

If you are fixing text copied from a PDF, read this

The most common reason people need this tool, and it needs an honest answer.

Text copied out of a PDF has a hard line break at the end of every visual line, because that is how a PDF stores text — as lines placed on a page, not as flowing paragraphs. Paste it anywhere and you get a narrow column that will not reflow, with a break every eight or nine words.

What you ideally want is to remove the breaks inside paragraphs while keeping the blank lines between them, so the structure survives. This tool cannot do that in one pass. Removing single breaks removes every break, paragraph gaps included, so you end up with one continuous block of text.

Two ways to handle it:

For a few paragraphs — which is most cases — flatten the whole thing with Replace With set to Space, then put the paragraph breaks back by hand where you want them. On three or four paragraphs that is faster than any clever alternative.

For something long, do it in two steps using Custom text. First run it with only Double line breaks ticked and Custom text set to a marker that will not appear in your text, such as @@PARA@@. Copy that output back into the input box, tick only Single line breaks with Replace With set to Space, and run it again. Now you have one flat block with @@PARA@@ sitting exactly where each paragraph began — and a find-and-replace in your editor turns those into real breaks in one action.

Clunky, and it works reliably on a long document.

What the three "Remove" boxes actually do

All three start ticked, which is worth understanding rather than accepting.

All line breaks overrides the other two. While it is ticked, every break goes regardless of what the others say — so if you want any control at all, untick this one first.

Single line breaks removes every break in the text, including the pairs that form paragraph gaps. The name suggests it leaves paragraph breaks alone; it does not.

Double line breaks removes runs of two or more breaks — the gaps between paragraphs — and leaves the breaks inside them. That is the opposite of what most people want, and it is genuinely useful in one case: collapsing a double-spaced list into a single-spaced one.

The five extra options

These do the tidying that usually needs doing at the same time, and they run in a fixed order.

Trim each line and Remove empty lines are applied before the breaks are touched — which is the right order, because a "blank" line containing a stray space is not empty until it has been trimmed. Tick both when cleaning up a messy paste.

Remove extra spaces collapses any run of two or more spaces into one. Almost always worth having on, especially alongside Replace With → Space.

Remove tabs converts tabs to single spaces. Useful for text copied out of a spreadsheet or a code editor — but be careful, because a tab is the column separator in pasted spreadsheet data. Removing tabs from a pasted table destroys the columns.

Trim start/end strips whitespace from the very beginning and end of the whole text, applied last.

The line under the boxes reports how many breaks and how many extra spaces were removed, which is the quickest way to confirm a setting did what you expected — if it says zero, something is not ticked.

What this is good for besides PDFs

Flattening a list into one line — a column of email addresses, tags or keywords that needs to become a comma-separated string. Set Replace With to Custom text and type a comma and a space.

Pasting into a single cell or field. A multi-line block pasted into a spreadsheet cell spreads across several rows; flatten it first and it stays in one.

Cleaning up text from a chat or an email, where quoting has added breaks in arbitrary places.

Preparing text for a character-limited field — a meta description, a social bio, an SMS — where the breaks are wasting characters or being stripped anyway.

Nothing is uploaded

All of it happens in your browser as you type. Nothing is sent anywhere, which is worth knowing given how often the text being cleaned up is a draft, an extract from a contract, notes from a meeting or a list of addresses.

Related tools

Duplicate Line Remover handles the other common list problem — the same entry appearing twice, exactly or approximately. Text Case Converter fixes capitalisation on text that came out of a PDF in the wrong case, and Word Counter counts the result.

How to Use Line Break Remover

  1. Paste Your Text

    Paste text containing unwanted line breaks into the Input Text box.

  2. Choose Options

    Select which line breaks to remove (single, double, all), enable extra cleanup options, and choose a replacement (nothing, space, or custom text).

  3. Copy Output

    The output updates live. Click Copy Output to copy the result.

Features

Live Preview

Output updates instantly as you type or change options - no button click needed.

Flexible Options

Target single, double, or all line breaks independently with custom replacement text.

Stats Counter

Shows exactly how many line breaks and extra spaces were removed.

Frequently Asked Questions

Why did my words run together?

Because Replace With defaults to Nothing, so a break is removed with nothing put in its place and the words on either side touch. Change Replace With to Space, and switch on Remove extra spaces to tidy up any doubles. Leave it as Nothing only when joining fragments that should touch, like a code split across lines.

How do I remove line breaks but keep my paragraphs?

Not in one pass — removing single breaks removes every break, paragraph gaps included. For a few paragraphs, flatten it with Replace With set to Space and put the breaks back by hand. For something long, first run with only Double line breaks ticked and Custom text set to a marker like @@PARA@@, then run that output again with only Single line breaks and Replace With Space, then find-and-replace the marker in your editor.

Why does text copied from a PDF have a break on every line?

Because a PDF stores text as lines placed on a page rather than as flowing paragraphs, so every visual line ends in a real break. That is why the paste will not reflow and arrives as a narrow column.

What is the difference between the three Remove options?

All line breaks overrides the other two, so untick it first if you want any control. Single line breaks removes every break including paragraph gaps, despite the name. Double line breaks removes only the gaps between paragraphs and keeps the ones inside them — the opposite of what most people want, but useful for collapsing a double-spaced list.

Should I remove tabs?

Be careful. It is useful for text from a code editor, but a tab is the column separator in data copied out of a spreadsheet — removing tabs from a pasted table destroys the columns.

Is my text uploaded?

No, it is processed in your browser as you type and nothing is sent anywhere. Worth knowing given that the text being cleaned up is often a draft, a contract extract, meeting notes or a list of addresses.