Skip to content
SPCXTools

Remove Line Breaks

Fix text with broken lines — keep the paragraphs, join the lines, or turn a list into a comma-separated line.

Runs locally — files never leave your device

Loading tool…

How to use Remove Line Breaks

  1. 1Paste your text into the Input box.
  2. 2Choose a mode — Keep paragraphs joins lines but keeps blank-line paragraph breaks, Remove all makes one continuous line, Replace with… joins lines with your own separator.
  3. 3Leave Collapse extra spaces ticked to clean up double spaces.
  4. 4Copy the result or download it as a text file.

Clean up broken lines in seconds

Text copied from PDFs, old emails, terminal output, subtitles or narrow website columns often comes with a line break at the end of every line. Pasted into a document, a form or a chat, it looks ragged and is hard to edit. This tool removes those unwanted line breaks for you. Keep your paragraphs intact, merge everything into one line, or replace the breaks with commas or any separator you like — instantly and without uploading anything.

Features

  • Keep paragraphs: joins lines within each paragraph while keeping blank-line paragraph breaks.
  • Remove all: turns the whole text into a single line.
  • Replace with a separator: converts a list into a comma-, semicolon- or tab-separated line.
  • Collapse extra spaces left over from indentation and alignment.
  • CJK-aware joining: no stray spaces between Chinese or Japanese characters.
  • Copy or download the cleaned text.

Before and after

Text copied from a PDF:

Line breaks in PDFs are stored at the end of
every line, so copied paragraphs end up broken
into short pieces.

The second paragraph stays separate.

With Keep paragraphs:

Line breaks in PDFs are stored at the end of every line, so copied paragraphs end up broken into short pieces.

The second paragraph stays separate.

When to use each mode

Situation Mode
Text copied from a PDF or e-book Keep paragraphs
Address or title split over several lines Remove all
Column copied from a spreadsheet → one line Replace with ,
List of emails for a "To" field Replace with ;
Values for a SQL IN (...) clause Replace with ,

Related tools

Remove repeated lines with Remove Duplicate Lines, put lines in alphabetical order with Sort Lines, fix capitalization with the Case Converter, or count words with the Word Counter.

Frequently asked questions

Why does text copied from a PDF have line breaks everywhere?
PDFs store each line of a page separately, so copying a paragraph gives you a hard line break at the end of every line. Pasting it into a document or email then leaves short, broken lines. The Keep paragraphs mode joins those lines back into flowing paragraphs.
How are paragraphs detected?
A paragraph ends at an empty line. Lines within a paragraph are joined with a space; empty lines between paragraphs are kept as a single blank line.
How do I turn a list into comma-separated values?
Choose Replace with… and keep the default separator , . Each line becomes one item: "apple", "banana" and "cherry" on separate lines become apple, banana, cherry. You can use any separator, such as ;, | or \t for a tab.
Does it work with Chinese and Japanese text?
Yes. When two lines are joined between Chinese or Japanese characters, no space is inserted, because those languages don't use spaces between words.
Is my text sent anywhere?
No. Everything happens in your browser, and nothing is uploaded or stored.