UtilityPilot.Find a tool

Text & Lists · PRACTICAL GUIDE

Clean copied text without losing paragraphs

Repair hard wraps, non-breaking spaces and extra whitespace while preserving the structure that matters.

Start by deciding what a line break means

A line break copied from a PDF may be the end of a visual line, not the end of a paragraph. In an address or a list, the same character may be essential. Keep an untouched copy and inspect a short section before applying changes to the whole document.

The Text cleaner starts conservatively: it normalizes line endings, replaces non-breaking spaces, trims line edges and collapses ordinary repeated spaces. It does not join lines unless you choose to.

A reproducible cleanup

  A  useful idea
wrapped across lines.

  A new paragraph.  

Choose “Join hard wraps; keep paragraphs” along with the default spacing controls. The result is:

A useful idea wrapped across lines.

A new paragraph.

The empty line separates the paragraphs. The paragraph counter reports two blocks both before and after this cleanup. If the source has no empty line, the tool cannot infer that a paragraph ended there.

Special whitespace deserves care

A non-breaking space looks ordinary but tells layout software not to break there. Replacing it can help a plain-text import. Tabs may represent columns, so replace them only when you no longer need that structure. Zero-width joiners can combine emoji or shape letters in some scripts. Their removal is therefore an explicit option, not automatic cleanup.

Check the result, then continue

Read the change counts and compare a section containing an address, heading and paragraph boundary. Use the word and character counter if the destination has a length limit. Use literal Find and Replace for a known repeated string, rather than treating every unfamiliar character as an error.

If the result loses structure, return to the unchanged input and disable the responsible option. Cleanup is not grammar correction, OCR repair or a guarantee that pasted PDF text preserves reading order.

When not to clean aggressively

Do not join lines in source code, CSV fields, poetry or any format where the break is semantic. Do not strip tabs from a table that still relies on them for columns. Do not remove zero-width characters from text you have not inspected—emoji ZWJ sequences and complex scripts depend on them. If you are unsure whether a break is visual or structural, clean a small section first and compare.

Cleanup is also the wrong tool for OCR errors, missing words or wrong reading order. Those need a different source or manual editing. Grammar and style corrections are outside this tool’s scope entirely.

Common mistakes after cleanup

Joining hard wraps when the source had no empty-line paragraph markers collapses multiple paragraphs into one. Replacing every non-breaking space can break legal or address text that intentionally keeps tokens together. Trimming line edges is usually safe; replacing internal runs of spaces can matter in poetry or aligned plain-text tables.

Always keep an untouched copy. Compare change counts against a section you know well before applying the result to an entire document. If the paragraph counter drops unexpectedly, an option removed structure you needed.

A longer worked scenario

Source copied from a PDF email:

Dear Sam,

Thank you for the
update on the
schedule. We can
proceed on Tuesday.

Regards,
Ada

After “Join hard wraps; keep paragraphs” plus default spacing controls:

Dear Sam,

Thank you for the update on the schedule. We can proceed on Tuesday.

Regards,
Ada

Two paragraphs remain. The greeting and signature lines stay separate because they were already separated by blank lines. Word count is unchanged; line count drops from eight to five.

Put it into practice

Choose the tool that matches your next step. Keep an original copy and inspect the result before using it elsewhere.

Text cleanerRepair spacing after copying text.Text & ListsWord and character counterCount words, characters, paragraphs and lines in one text summary.Text & ListsFind and replace textChange repeated literal text without editing each occurrence.Text & Lists