Line Break Remover

Your input stays in your browser and is never sent.

Strip the stray line breaks you get when copying out of a PDF, Word file, or email.

  1. Enter
  2. See the result
What to do with line breaks

Removes only the line breaks that came from wrapping and keeps the blank lines between paragraphs. Use this to make text copied from a PDF or Word readable again.

Clean up at the same time

What the line break remover can do (clean up pasted text)

The line break remover takes text you copied out of a PDF, a Word document, an email, or a terminal and strips the line breaks that make it awkward to read. Rather than deleting every break, it separates the ones that came from wrapping the text at a fixed width from the ones the author put there on purpose, and removes only the former. It can also collapse stray spaces and tabs and tidy runs of blank lines. Everything runs inside your browser, free of charge.

How to remove line breaks in three steps

  1. Paste the text you want to clean up, or use "Load a file" to open a text file.
  2. Choose whether to restore paragraphs or join everything into a single line. The result appears immediately on the right.
  3. Copy the result, or save it as a text file.

Lists, tables, and headings keep their line breaks

Removing every line break would run a bullet list together into one unreadable line. Lines that begin with a bullet, a number, a heading marker, a quote marker, or a table pipe are treated as structure and keep their breaks, and so does anything inside a code block. The tool reports how many lines it protected. You can switch the protection off if you really do want everything joined.

How wrapped lines are detected and joined back into paragraphs

Wrapping happens at a fixed width, so every line in the middle of a wrapped paragraph comes out close to the same length. The tool measures that spread paragraph by paragraph and only treats consistent paragraphs as wrapped. Within those, a line that stops well short of the wrap width and ends with a full stop is read as a break the author chose, and is kept. Where the evidence does not settle it, the break stays.

Why addresses and poems keep their original line breaks

Addresses, signatures, and poems have lines of visibly different lengths, so they never meet the test for wrapping and come through untouched. Two-line passages are left alone as well: two lines are not enough to tell a wrapped paragraph from a deliberate pair, so they are only joined when there is direct evidence such as a line-breaking trace.

Converting line break codes or counting characters

If you want to change which characters end each line instead of removing the breaks, the line break converter switches between CRLF, LF, and CR. Once the text reads properly again, the character counter reports its length and line count, the line sorter reorders lists and drops duplicate entries, and the text encoding converter repairs files that open as garbled characters.

Line break remover FAQ

Why does text copied from a PDF break in the middle of sentences?

A PDF stores where each piece of text sits on the page, not where the paragraphs are. The places the text was wrapped for display become real line breaks when you copy it. This tool looks at how evenly the lines are sized and removes only the breaks that came from that wrapping.

Will it delete line breaks I actually wanted to keep?

It is built not to. Only paragraphs whose lines are close to the same length are treated as wrapped text. Addresses, poems, and signatures have uneven line lengths, so their breaks stay. When the evidence is not clear enough, the break is kept rather than removed, so the tool errs on the side of leaving a few breaks behind.

Are bullet lists and tables preserved?

Yes. Lines that start with a bullet, a number, a heading marker, a quote marker, or a table pipe are treated as structure and keep their line breaks, as does anything inside a code block. You can switch this protection off if you want everything joined.

When should I use "join into a single line" instead of "restore paragraphs"?

Use "restore paragraphs" when you want the text to read normally again: only the wrapping breaks go away and the blank lines between paragraphs stay. Use "join into a single line" when you need the line breaks gone entirely, for example before pasting into one spreadsheet cell.

Does this convert CRLF to LF?

No. This tool removes line breaks rather than changing which characters represent them. If you need to switch between CRLF, LF, and CR, use the line break converter instead.

Is my text uploaded to a server?

No. Reading the file, detecting the wrapping, and rewriting the text all happen inside your browser. Nothing you paste leaves your device.