Remove Extra Spaces & Line Breaks · Tutorial

How to fix line breaks in text copied from a PDF

4 min readbeginnerUpdated

You copied a few paragraphs from a PDF report to quote in an email or document, and every line ends abruptly. Some words are even split with a hyphen. This tutorial shows how to turn that text back into normal paragraphs in a few seconds.

What you need

Steps

  1. Paste the PDF text

    Select the text in your PDF reader, copy it and paste it into the left box. Each line from the page arrives as a separate line, and the word "household" is split as house- and hold.

  2. Keep the paragraphs

    Choose A space, but keep paragraphs under Replace line breaks with. Lines inside each paragraph are joined with single spaces, and the blank line between the two paragraphs is kept.

  3. Check the hyphenated words

    Look at the end of the second paragraph. house- and hold have been joined back into household, with no hyphen and no space.

    Rainwater harvesting can reduce household water use by up to half in some climates. The simplest systems collect water from a roof and store it in a tank for gardens and toilets.
    
    More advanced systems filter the water so it can be used for washing, and some include pumps that feed treated water back into the household supply.
  4. Copy and paste where you need it

    Press Copy and paste into your document or email. The text now reflows naturally to fit the width of the page. If it still has odd spacing, run it through Remove Extra Spaces.

Try it yourself

Opens the Remove Extra Spaces & Line Breaks with this tutorial's sample loaded.

Try it now

Common mistakes

Choosing "A space" for multi-paragraph text
That option joins everything into one long paragraph. Use keep paragraphs whenever the text has more than one.
Losing list structure
Bulleted lists in a PDF are also joined into a paragraph. Copy lists separately, or reformat them afterwards.
PDFs without blank lines between paragraphs
Some PDFs don't leave a blank line between paragraphs, so they all merge. Add a blank line where each paragraph should start, then convert.

Next steps

Go back to the Remove Extra Spaces & Line Breaks, or keep going with one of these:

FAQ

Will real hyphenated words lose their hyphen?

No. Only a hyphen at the very end of a line, followed by a lowercase letter on the next line, is treated as a split word. "Well-known" on a single line is unchanged.