ZYSNOR, smart solutions, real impact

Writing guide

How to remove line breaks from text

By , Founder of ZYSNOR · Updated · Checked · 6 min read

In short

Paste the text and join the lines: single line breaks inside a paragraph become spaces, while blank lines between paragraphs are kept. Words split with a hyphen at a line end can be joined with an option, but check the result, because it also joins real hyphenated words such as well-known. To turn a list into one line, join with a comma.

Jump to a section

Text copied from a PDF or an old email often breaks at the end of every printed line. Pasted into a document or form, it looks ragged and does not reflow. Removing the line breaks fixes it.

Why copied text breaks

A PDF places each printed line separately, so copying gives a line break at the end of every line, not just at the end of each paragraph. Plain-text emails are often wrapped at about 70 to 80 characters for the same reason.

Before and after text showing broken lines joined into one paragraph
Text copied from a PDF, measured.

Keeping paragraphs

With Keep paragraphs on, a blank line marks a new paragraph and stays. Only the breaks inside each paragraph are joined. Turn it off to make one single block.

Hyphens at the end of a line

Printed text sometimes splits a word with a hyphen at the line end: "para-" then "graph". By default the hyphen is kept, because the tool cannot know whether it was a split or a real hyphen. The join option removes it, but it also turns "well-known" into "wellknown" when that word happened to break at the hyphen. Use it on text with many split words, then search for real compounds.

A table comparing default and join-hyphen results for a split word and a hyphenated word
Hyphens at a line end.

Worked example 1: a PDF paragraph

"This is a line that was / broken by a PDF copy and / looks odd." becomes "This is a line that was broken by a PDF copy and looks odd."

Worked example 2: a list to one line

A column of names copied from a spreadsheet, joined with a comma, becomes "apples, bananas, cherries", ready to paste into an email.

Worked example 3: text with double spaces

Tick Squeeze spaces to turn runs of spaces into one, which PDFs often leave behind.

What the ZYSNOR tool does

  • Joiners: space, nothing, comma, semicolon or pipe.
  • Keep paragraphs, join split words, squeeze spaces.
  • Runs in your browser.

Practice problems

Problem 1. Two paragraphs of three lines each, Keep paragraphs on. How many lines are left?

Show the worked answer

Two lines with a blank line between them.

Problem 2. Should you tick Join split words for a list of hyphenated product codes?

Show the worked answer

No. It would delete hyphens that break at a line end.

Ready to try it? The free tool works in your browser, and the button in the page header takes you straight to it.

Common questions

How do I remove line breaks but keep paragraphs?

Keep Keep paragraphs on. Blank lines stay and the breaks inside each paragraph become spaces.

Why does text from a PDF break at every line?

A PDF stores each printed line separately, so copying adds a break at every line end.

What happens to hyphens at line ends?

They are kept by default. The join option removes them but can also join real hyphenated words.

Can I turn a list into one line with commas?

Yes. Choose a comma as the joiner.

Is my text uploaded?

No. It is processed in your browser.

Sources and how we researched this

Sources (1)

How we researched this

Measured on the ZYSNOR tool in Chromium: a three-line PDF-style paragraph became one line; the blank line between paragraphs stayed; "para-" / "graph" stayed "para-graph" by default and became "paragraph" with the join option, which also turned "well-" / "known" into "wellknown"; "apples / bananas / cherries" with the comma joiner became "apples, bananas, cherries". Rules were read from the tool's code. Hyphen use follows the Chicago Manual of Style blog's refresher on hyphens and dashes, read from a search excerpt. Spotted something that does not match your experience? Tell us through the Contact page and we will check it and update this guide.

Related guides

Rules differ between schools and change over time. Always check your own school or university handbook.