Trim and deduplicate a list
Input
apple apple pear
Result
apple pear
Tidy a pasted list or a block of notes without manually editing every line. Trim line edges, reduce repeated spaces and tabs, remove blank lines, and optionally keep only the first copy of each line.
Input
apple apple pear
Result
apple pear
Remove empty rows and accidental leading or trailing spaces from notes or a list pasted from another application.
Deduplicate lines after whitespace cleanup while retaining the original order of their first occurrence. Matching is case-sensitive.
Cleanup removes blank lines and collapses runs of spaces and tabs. This can change code indentation or carefully aligned text. Duplicate detection is case-sensitive: Apple and apple remain different lines. Keep your original if formatting matters.
It trims each line, replaces runs of spaces and tabs with one space, and removes empty lines. With deduplication enabled, it also removes repeated cleaned lines.
No. It preserves line order. When deduplicating, the first occurrence of each cleaned line is kept.
It is intended for plain text and lists. It can remove indentation and blank lines that matter in code. Use the JSON formatter for JSON documents.
Make tangled JSON readable. Format, validate, and copy.
Words, characters, and reading time. All accounted for.