Remove Line Breaks

The Remove Line Breaks tool turns broken, choppy text back into clean sentences. Paste text copied from a PDF, an email, a website or a chat, and it removes the unwanted line breaks while keeping your paragraphs. You can also put everything on one line or turn a list into comma-separated text.

It’s free, needs no sign-up and runs entirely in your browser, so your text is never uploaded.

Remove Line Breaks

Try an example:

How to remove line breaks
Used with “Replace each line break”. Leave empty to join lines with nothing.
Options
Your text stays in your browser and is never sent anywhere. Up to 500,000 characters at a time. “Keep paragraphs” treats an empty line as the end of a paragraph.

How to Remove Line Breaks

  1. Paste your text into the box. You can also press one of the example buttons to see how it works.
  2. Choose a mode. “Keep paragraphs” is best for most text. It removes the breaks inside each paragraph and keeps the empty line between paragraphs.
  3. Check the options. By default, the tool also removes extra spaces and tabs. Turn on “Join words split by a hyphen” if your text came from a PDF with words broken across lines.
  4. Press Remove line breaks. You’ll see how many line breaks were removed, and the result updates automatically when you edit the text or change a setting.
  5. Press Copy result to copy the clean text, or Clear to start over.

What Each Mode Does

Here’s what happens to a short list (red, green, an empty line, blue, yellow, one item per line):

ModeResult
Keep paragraphs“red green” and “blue yellow” as two paragraphs
Remove all line breaksred green blue yellow
Replace with “, “red, green, blue, yellow
  • Keep paragraphs joins the lines inside each paragraph with a space. An empty line (or several) marks a new paragraph, and the result keeps one empty line between paragraphs.
  • Remove all line breaks joins everything into one block of text, which is handy for form fields, captions and spreadsheet cells.
  • Replace each line break with a separator puts your own separator between lines, such as a comma and space, a semicolon or ” | “. Empty lines are skipped, so you don’t get double commas.
  • Remove extra spaces and tabs turns runs of spaces and tabs into a single space and trims the start and end of each line.
  • Join words split by a hyphen fixes words that a PDF broke across two lines, so “sen-” and “tence” become “sentence.” It only joins when the next line starts with a lowercase letter.

Why Text Gets Unwanted Line Breaks

PDFs and some emails store text line by line, exactly as it appears on the page. When you copy it, every line ends with a hard line break, even in the middle of a sentence. Pasted into a document, a form or a social media post, it looks broken and hard to read. This tool removes those breaks in one step, so you don’t have to fix each line by hand.

Common Uses

  • Text copied from PDFs: fix quotes, research notes and reports so sentences flow normally.
  • Emails and newsletters: clean up old plain-text emails that wrap every line.
  • Lists to one line: turn a column of names, emails, keywords or tags into comma-separated text.
  • Captions and bios: join text into one line for fields that don’t accept line breaks.
  • Subtitles and transcripts: merge short caption lines into readable paragraphs.

Limits to Know About

  • Paragraphs need an empty line. “Keep paragraphs” can only tell where a paragraph ends if there’s an empty line between paragraphs. If your text has none, every line will be joined.
  • Hyphens are a best guess. A real hyphenated word at the end of a line, such as “well-” before “known,” would be joined as “wellknown,” so the hyphen option is off by default. Check the result if you use it.
  • Plain text only. Bold, links and other formatting are not kept.
  • Up to 500,000 characters at a time.

Frequently Asked Questions

How do I remove line breaks from text?

Paste your text above, keep the “Keep paragraphs” mode and press Remove line breaks. Then press Copy result and paste the clean text wherever you need it.

How do I remove line breaks but keep paragraphs?

Use the default “Keep paragraphs” mode. It removes single line breaks and keeps the empty line between paragraphs.

How do I turn a list into comma-separated text?

Paste the list with one item per line, choose “Replace each line break with a separator” and keep the separator as a comma and a space.

Can I fix text copied from a PDF?

Yes. That’s the most common use. Turn on “Join words split by a hyphen” if the PDF broke words across lines.

Is my text saved or uploaded?

No. Everything happens in your browser, and your text is never sent to a server.

Related Tools