RemoveLine Breaks

Paste text with lines broken in the wrong places, like a paragraph copied from a PDF. Pick what to remove and copy back clean text.

  • Free forever
  • No sign-up
  • Runs in your browser

Your text

Result

Thanks for joining the spring workshop. Here are the notes from today, copied straight out of the slide deck PDF.

Bring a notebook and a pen next week. We start at 10 am sharp and finish by noon.

Questions? Reply to this email and I'll get back to you within a day.
Lines before
10
Lines after
5
Breaks removed
5

“Keep paragraphs” is best for text from PDFs and emails: it joins the lines inside each paragraph and keeps one blank line between them. “Mend split words” is off by default because it would also join real hyphenated words like “well-known” that happen to fall at a line end.

How to use the Remove Line Breaks

  1. 1

    Paste your text into the box.

  2. 2

    Choose to keep paragraphs, remove every break, or remove only empty lines.

  3. 3

    Turn on trimming, space collapsing or split-word mending if you need them.

  4. 4

    Copy the result.

Why copied text has extra line breaks

PDFs, plain-text emails and old documents often store a hard line break at the end of every line, so the text fits a fixed width. When you paste it somewhere else, those breaks come with it and chop each sentence into pieces.

Which option to choose

Keep paragraphs joins the lines inside each paragraph and keeps one blank line between paragraphs. It's the right choice for most text from PDFs and emails.

All line breaks puts everything on one line. Use it for a meta description, a spreadsheet cell or a form field that won't take line breaks. Pick “Custom” to join with a comma instead, which turns a list into a comma-separated line.

Empty lines only keeps every line as it is and deletes the blank ones, which is useful for lists and code.

The cleanup options

Trim each line removes spaces and tabs at the start and end of each line, which often come from indented or centered text. Collapse extra spaces turns runs of spaces into one, fixing the double spaces left by justified text.

Mend split words joins words that were hyphenated across a line break, like “impor-” and “tant”. It's off by default, since it can't tell those apart from real hyphenated words that happened to fall at the end of a line.

Going the other way

If you need to add line breaks that stay put in an Instagram caption, that's a different problem. Instagram removes blank lines unless they contain a character, so use a line break tool that adds an invisible spacer to each empty line.

Tips for messy text

Text copied from a two-column PDF can come out with the columns mixed together. Copy one column at a time, or select a smaller block, before you clean it up.

Bullet lists often lose their bullets and turn into lines that start with “•” or a dash. Use “Empty lines only” to keep each item on its own line, then tidy the bullets by hand. If you're pasting into a website builder or email tool, paste the result as plain text so old formatting doesn't come along.

Frequently asked questions

How do I remove line breaks from a PDF?

Copy the text from the PDF, paste it here, choose “Keep paragraphs” and copy the result. Each paragraph comes back as one flowing block.

Does this work with Windows line breaks?

Yes. Windows (CR LF), Mac and Linux (LF), old Mac (CR) and Unicode line separators are all handled the same way.

How do I put a list on one line separated by commas?

Choose “All line breaks”, set “Join lines with” to Custom and type a comma and a space.

Is my text uploaded anywhere?

No. It's cleaned up in your browser and never leaves your device.

Embed this tool on your site

Want the Remove Line Breaks on your own page? Copy the embed code and paste it where you want it to show up.

  • Free to use on your blog or site, with no account.
  • It sizes itself to fit and works on phones.
  • Keep the credit line so readers know where it's from.
your-site.com/blog

Free Remove Line Breaks by Hiyaly

Put it allon one link.