Remove Line Breaks

Join broken lines back into flowing text, keep paragraphs, or clean up the extra blank lines a paste left behind.

What to remove

Line breaks inside a paragraph go away, but blank lines between paragraphs stay. This is what you want for text copied out of a PDF.

Join with
Your text

0 lines in

Result (0)

How to Remove Line Breaks from Text

1

Paste the text

The usual source is a PDF, an email or a terminal, where every line was hard wrapped at a fixed width and the paragraphs came apart.

2

Choose what to remove

Keep paragraphs is right almost every time: the breaks inside a paragraph go, the blank lines between paragraphs stay. Every break flattens the whole thing into one line.

3

Copy the clean text

The result flows properly again and can be pasted into a document, a CMS or a message without the ragged wrapping.

Features

Keep paragraphs while removing the breaks inside them
Flatten everything into a single line
Collapse extra blank lines without changing the layout
Turn each break into a space
Join with a space, a comma, a pipe or nothing at all
Handles Windows and Unix line endings alike
Line counts before and after
Free, browser based, no sign-up

Frequently Asked Questions

Because a PDF has no paragraphs, only lines placed at coordinates. Every visual line ends with a real line break, so when you paste it into a text field it stays broken at the width of the original page.

Use the keep paragraphs mode. It treats a blank line as a paragraph boundary and only removes the breaks inside each block, which is the structure your source almost certainly had.

All breaks trims each line first and joins with whatever separator you picked, which is right for a list. Breaks to spaces replaces each break with a space and collapses repeated whitespace, which is right for prose.

No. Carriage returns are normalised before anything else happens, so text from Windows, macOS and Linux all behave the same way.

Yes. Choose all breaks and set the separator to comma, and a list of lines becomes a comma separated string ready for an IN clause or a config value.

It leaves your structure alone but collapses runs of three or more blank lines into one and strips trailing spaces. Use it to tidy a document rather than to reflow it.

Yes. The text is treated as Unicode throughout, so nothing gets mangled regardless of the alphabet.

No. It stays in this tab and is never sent to a server.

Need a Custom Tool or Application?

We build production-grade web applications, SaaS platforms, and developer tools. Let's talk about your project.

or book a free call