Remove line breaks

Join broken lines back into clean paragraphs, or into one line. No record of your text is kept.

Paste text with broken lines, for example from a PDF or an email.

Find and replace

Paste your text

The result appears here as you type.

Result

Tell us what happened and what you expected. Please leave out personal information and private tool inputs.

These details describe your setup. They don’t include your name, email, or anything entered into the tool.

See the details included

Voting-limit status from this browser is included. Reports are stored by Netlify so I can investigate.

What it does

Text copied from a PDF, an old email, or a terminal often has a line break at the end of every line:

When you copy text from a PDF, every line
ends with a line break, so it breaks apart
when you paste it somewhere else.

Paste it here and the lines are joined back into one paragraph:

When you copy text from a PDF, every line ends with a line break, so it breaks apart when you paste it somewhere else.

Choose how lines are joined

Line breaks setting What you get
Join lines, keep paragraphs (default) Lines joined with spaces; a blank line still separates paragraphs
Join everything into one line One line of text, everything joined with spaces
Join with commas Each line becomes an item: “apple, banana, cherry”
Keep each line No joining, for when you only want sorting or clean-up

The same box can also sort lines, remove duplicates, and find and replace, so you can tidy a list in the same step.

How it works

The text is split into paragraphs wherever there’s a blank line. Inside each paragraph, every line is trimmed and joined to the next with a single space. Paragraphs are then put back together with one blank line between them. Windows (CRLF) and old Mac (CR) line endings are handled the same way.

Limits

Headings, bullet points, and table rows in a PDF have no blank line after them, so they get joined to the next line. Add a blank line after them first if you want them kept apart.

FAQs

Why does text from a PDF have line breaks everywhere?

A PDF stores where each line sits on the page, not where sentences and paragraphs flow. When you copy it, every line ends with a break, so the text breaks apart when you paste it into an email or a document.

Will it keep my paragraphs?

Yes, with the default setting, Join lines, keep paragraphs. Lines are joined inside each paragraph, and a blank line between paragraphs stays as the break. If your text has no blank lines between paragraphs, it becomes one paragraph.

How do I put everything on one line?

Set Line breaks to Join everything into one line. Every line and paragraph is joined with a single space.

Does it remove extra spaces too?

Yes, with Trim extra spaces on. Spaces at the start and end of lines go, and runs of spaces become one, so joined lines don't end up with double spaces.

What about words split with a hyphen at the end of a line?

They're kept as written, like "exam- ple", because a hyphen at a line end can also be a real one, as in "well-known". Use Find and replace to fix them, for example find "- " and replace with nothing.

Have an idea for a tool I should add? Send it in. I read every suggestion and choose which ones to build next.

For example: "Count the weekdays until a date, without holidays."

Please don't include your name, email, or anything personal. I don't need it. Voting-limit status from this browser is included.