PDF Copied Text Cleaner

Tidies text that was copied out of a PDF by joining lines broken by the page layout and rejoining words split by hyphens. It is useful when pasted text is full of odd line breaks and you want readable paragraphs again for editing or quoting.

Up to 1 MiB.

Options

A paragraph ends at an empty line, or at a short line ending with . ! ? or :

How to use the PDF Copied Text Cleaner

  1. Paste text copied from a PDF.
  2. Select Clean text. The status line shows how many lines and hyphenated words were joined.

Rules applied

  • Lines broken by the PDF layout are joined. A paragraph ends at an empty line, or at a line that is clearly shorter than the others and ends with . ! ? :.
  • A word split with a hyphen at the end of a line is rejoined when the next line starts with a lowercase letter.
  • Bullet and numbered list items stay on their own lines. Ligatures such as fi become normal letters.

Limitations

  • This is plain-text repair; PDF files cannot be opened. Columns, tables, headers and footnotes may be mixed together, and real hyphenated words split at a line end (such as well-known) lose the hyphen. Compare the result with the original.

Worked examples

Wrapped paragraph with hyphenation

Input

The quick brown fox jumps over the lazy
dog. It was a remark-
able sight for every-
one in the village.

A new paragraph starts here and
continues on the next line.

Result

The quick brown fox jumps over the lazy dog. It was a remarkable sight for everyone in the village.

A new paragraph starts here and continues on the next line.
Bullet list kept on separate lines

Input

Requirements for the project:
- A laptop with a recent
browser
- Access to the shared
folder

The final report is due in May.

Result

Requirements for the project:
- A laptop with a recent browser
- Access to the shared folder

The final report is due in May.

Practical uses

  • Cleaning a copied report

    An analyst copies a paragraph from a PDF report and finds that the lines break in odd places. They paste it in and select Clean text. The broken lines are rejoined into normal paragraphs, and the status line shows how many were joined.

  • Fixing split words

    A student pastes a quote where words are split by hyphens at the ends of lines. The tool rejoins a split word when the next line starts with a lowercase letter. The quote then reads naturally and can be checked against the original.

  • Keeping list items separate

    An assistant copies a bulleted list from a PDF where the items wrap onto extra lines. Cleaning the text joins the wrapped lines. Each bullet stays on its own line instead of being merged into one block.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.