Line Break Remover — Remove line breaks from copied text and join it into clean paragraphs.

Paste text that is split over many short lines, such as something copied from a PDF or an email, and get it back as one clean block. You can replace each break with a space, a comma or your own text, keep real paragraph breaks and tidy spaces at the same time. Your text stays in your browser.

Remove line breaks Your text stays in your browser
Line break remover showing text with broken lines on the left and the joined paragraph on the right

Your text

Replace each line break with

Result

0Lines in
0Line breaks removed
0Characters in
0Characters out
The guide

Line Break Remover Guide: Joining Text the Easy Way

What line breaks are and how to get clean text out of broken lines.

A simple explanation

What is a Line Break Remover?

A line break remover takes text that is split over many lines and joins it into one continuous line or paragraph. It is the quick fix for text copied from PDFs, emails, chat apps and terminals, where every line ends with a hard return.

This tool replaces each line break with a space, nothing, a comma or any text you choose. You can keep real paragraph breaks, tidy up spaces at the same time and see how many breaks were removed.

Common reasons to use it

Why People Use a Line Break Remover

Text copied from PDFs

PDFs often end every visual line with a break. Join them so the text flows properly in your document again.

Lists on one line

Turn a column of names, IDs or email addresses into a comma separated line for a form, a query or a spreadsheet cell.

Emails and messages

Remove the hard wraps that mail clients and chat apps add so the text reflows on any screen width.

How it works

Hard Returns, Soft Wraps and Paragraphs

A line break is a real character in the text: LF on Linux and macOS, CRLF on Windows and a lone CR in very old Mac files. This tool treats all of them, plus the Unicode line and paragraph separators, as line breaks. Soft wrapping, where your editor folds a long line to fit the window, adds no character, so there is nothing to remove.

A paragraph break is usually two line breaks in a row, which looks like a blank line. With Keep paragraph breaks switched on, each block of text between blank lines is joined on its own and the blocks stay separated by one blank line. With it off, every line break is replaced, blank lines included.

Rejoin words split by a hyphen is for text hyphenated by a page layout, such as inter at the end of one line and national at the start of the next. It removes the hyphen and joins the pieces when the next line starts with a lowercase letter. Leave it off if your text has genuine hyphenated words at the end of lines, like well and known.

Get it done in a few steps

How to Use the Line Break Remover

  1. Paste your text into the box, or press Paste to take it from your clipboard.
  2. Choose what each line break becomes: a space, nothing, a comma or custom text.
  3. Switch on Keep paragraph breaks if you want blank lines between paragraphs to stay.
  4. Press Copy, or download the result as a text file.
Better results

Simple Tips

  • For text from a PDF, switch on Keep paragraph breaks first, then decide whether you need the other options.
  • Choose Comma to turn a list into comma separated values. There is no comma after the last item.
  • Use Custom for a pipe, a semicolon or any other separator, and include spaces in it if you want them.
  • Check the result once. The tool cannot tell a deliberate break, like in a poem or an address, from a wrapped one.
Good to know

Limitations and Privacy

Privacy

Your text is processed in your browser by JavaScript on this page. It is not uploaded, stored or logged, and the downloaded file is created on your device.

Limitations

Very large texts of several megabytes can feel slow on older phones. Poems, addresses and code rely on their line breaks, so review the result before you use it. Hyphen rejoining is a best guess based on a lowercase letter on the next line.

Common questions

Line Break Remover FAQ

How do I remove line breaks from text?

Paste your text into the box. The result appears straight away with every line break replaced by a space. Copy it or download it as a text file.

How do I keep paragraphs and only remove the line breaks inside them?

Switch on Keep paragraph breaks. Each block of text separated by a blank line is joined on its own, and a single blank line is kept between the blocks.

Can I replace line breaks with a comma or another character?

Yes. Choose Comma for a comma and a space, Nothing to join the text with no gap, or Custom to type any separator such as a pipe, a semicolon or a dash.

Why does text copied from a PDF have broken lines?

A PDF stores text positioned line by line rather than as flowing paragraphs, so copying it often gives you a hard return at the end of every visual line. Removing the breaks lets the text flow again.

What does Rejoin words split by a hyphen do?

When a line ends with a hyphen and the next line starts with a lowercase letter, the two parts are joined into one word without the hyphen. It is meant for text hyphenated by a page layout, so turn it off if your text has real hyphenated words at the end of lines.

Does it work with Windows, Mac and Linux line endings?

Yes. It handles CRLF, LF and CR line endings, as well as the Unicode line and paragraph separators, so text from any system is cleaned the same way.

Will it also remove extra spaces?

Only if you ask it to. Trim each line removes spaces at the start and end of every line, and Collapse repeated spaces turns runs of spaces and tabs into a single space. Both are on by default and you can switch them off.

Is my text uploaded anywhere?

No. The conversion happens in your browser, and your text never leaves your device.

From people using this tool

Reviews

Loading reviews…
Keep going

More tools in the box

The homepage features dozens more free tools that don't require an API key.

Suggest a tool