Textnify

Remove Line Breaks

Fix text copied from a PDF, an email or a terminal where every line ends with a hard break. Join it back into flowing text.

Your text stays in this browser tab. Nothing is uploaded, saved or logged.

How the Remove Line Breaks works

Every line break, together with any spaces around it, is replaced by what you choose: a single space, nothing, or custom text such as a comma and a space. Windows, Mac and Linux line endings and the Unicode line and paragraph separators are all handled, and line breaks at the very start or end of the text are dropped rather than turned into stray spaces.

“Keep paragraphs apart” treats a blank line as the boundary between paragraphs. Lines inside each paragraph are joined, and paragraphs stay separated by one empty line. This is usually what you want for text copied from a PDF.

The tool does not repair words split with a hyphen at the end of a line, such as “inter-” followed by “national”, because it cannot know whether the hyphen belongs to the word. Search for those after joining.

How to use it

  1. Paste the text with unwanted line breaks.
  2. Choose what replaces each break, and whether to keep paragraphs.
  3. Copy the continuous text.

Example

Lines are joined inside each paragraph; the paragraphs remain separate.

Input

This sentence was
broken across several
lines by a PDF.

A new paragraph
starts here.

Result

This sentence was broken across several lines by a PDF.

A new paragraph starts here.

Frequently asked questions

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

Choose “Custom text” and enter a comma and a space. Each line break becomes “, ”, giving you item1, item2, item3.

Why are some words glued together?

If you chose “Nothing”, lines are joined with no space between them. Use “A space” for ordinary prose.

Can I put the line breaks back?

Use Add Line Breaks to wrap the text at a given width, after every sentence, or after a chosen character.