TextBench.net

Remove Line Breaks

Remove line breaks from pasted text. Keep paragraphs, join everything into one line, or remove blank lines. Your text stays in your browser.

Line break mode

Join lines within paragraphs. One or more blank lines mark a paragraph break.

How to Remove Line Breaks from Text

  1. Paste or type into Your text.
  2. When removing line breaks, choose a mode based on which breaks you want to keep. The result updates as you type or change modes.
  3. Review the result, then select Copy result.

Compare the Four Modes

Select Try an example in the tool to load this text and compare the results yourself.

The trail follows
the river.

The bridge is
open.
ModeResult
Join lines within paragraphs The trail follows the river. The bridge is open.
Join lines with spaces The trail follows the river. The bridge is open.
Join lines without spaces The trail followsthe river.The bridge isopen.
Remove blank lines only The trail follows the river. The bridge is open.

Remove Line Breaks from Copied PDF Text

Text copied from a PDF can contain a break at the end of each printed line. Select and copy the text in your PDF viewer, paste it here, and choose Join lines within paragraphs.

Copied from a PDF
The library opens at nine
on weekday mornings.

Return books through the slot
next to the entrance.
With paragraphs kept
The library opens at nine on weekday mornings.

Return books through the slot next to the entrance.

If the PDF separates paragraphs with a single line break, add a blank line at each paragraph boundary before converting. Review words split by a hyphen at the end of a line and edit those by hand.

How to Remove Extra Line Breaks

For a list with gaps between items, choose Remove blank lines only to keep each item on its own line. Lines containing only spaces or tabs are removed too.

Original list
Notebook

Pencils

Eraser
With blank lines removed
Notebook
Pencils
Eraser

If a sentence is split across several lines, choose Join lines within paragraphs to join the sentence and keep the blank line between paragraphs.

Line Break Remover FAQ

How does the tool know where a paragraph ends?

One or more blank lines mark a paragraph boundary. Join lines within paragraphs leaves one blank line between those paragraphs and joins single line breaks with spaces.

When should I join lines without spaces?

Use that mode to reassemble a code or number split across lines. For example, ABC followed by 123 on the next line becomes ABC123. For ordinary English prose, choose Join lines with spaces to keep words apart.

Why does a one-line result still wrap in the box?

The box visually wraps long text to fit your screen. When you copy a result from either join mode, those visual wraps add no line breaks.

Can I use this with a scanned PDF?

The tool works on pasted plain text. Use text recognition (OCR) first if your PDF has scanned pages with no selectable text.

Which line endings does the tool handle?

It handles Windows CRLF, Unix and modern macOS LF, and older Mac CR. Any remaining line breaks in the result use LF.

Use the Invisible Character Detector & Remover to find hidden characters such as zero-width spaces or unusual spacing in copied text.