Text Cleaning
Text cleaning tools remove or normalize spacing, duplicates, punctuation, digits, and selected Unicode marks. Work from the smallest needed change to avoid losing information you meant to keep.
Choose a tool
Pick the narrowest cleanup
Trim Lines removes spaces at line edges; Remove Extra Spaces also collapses runs of spaces and tabs within lines. Remove All Whitespace discards all whitespace, including line breaks, while Remove Empty Lines only drops blank lines. Join Lines replaces breaks with spaces. Normalize Line Breaks reduces multiple blank breaks to a consistent blank line. These produce different text structures.
Choose the right duplicate rule
Remove Duplicate Lines keeps the first occurrence of each exact line, optionally ignoring case. Remove Duplicate Words targets adjacent repeated words such as “the the,” not every repeated word in a document. Sort Lines may make duplicates easier to inspect, but sorting changes order and should not be confused with deletion.
Check irreversible changes
Remove Punctuation and Remove Numbers use broad Unicode character categories, so their results can affect non-English text and structured identifiers. Remove Diacritics decomposes and strips marks; Remove Zero Width Characters targets a fixed set of invisible characters. Straighten Quotes swaps selected curly and angled quotes for straight ones. Save a source copy and inspect samples containing names, codes, URLs, and meaningful spacing before adopting the cleaned output.
Questions people ask
Which option keeps paragraphs but trims line edges?
Trim Lines changes the edges of lines without joining them.
Will Remove Duplicate Words remove every repeated term?
No; it targets repetitions next to each other.
Can cleanup remove meaning?
Yes; digits, punctuation, marks, or spacing may be significant in the source.