Clean whitespace, blanks and duplicates in a line list
Copied lists often contain empty lines or repeated items that can be cleaned line by line. Decide whether the original order represents priority or a workflow before enabling alphabetical sorting.

How to use this tool
- Enter text or add a one-item-per-line file.
- Choose trimming, blank-line, duplicate and sorting options.
- Run and compare list contents and order.
- Download the cleaned text file.
Choose the right settings
Choose trimming, empty-line removal and duplicate removal independently according to the source list. Leave sorting disabled to retain order, and disable trimming when leading or trailing spaces are part of a value.
- Supported input
- TXT,MD
- Available settings
- Trim lines
- Remove blank lines
- Deduplicate lines
- Sort lines
Before you start
Choose content or file organization
Decide whether the task concerns wording, document structure, hidden information or filenames. Keep an original copy and check the supported input. Extracted plain text is useful for reviewing words, but it does not reproduce every picture, font, equation or page arrangement in the source.
Where separators, normalization or text cleanup are available, try a short passage with headings, unusual characters and meaningful line breaks. For inspection or file comparison, include all relevant source files instead of assuming the visible page tells the whole story. For renaming copies, confirm the selected order and keep the mapping between old and new names.
Before text cleanup, decide which spaces, repeated lines or characters carry meaning; a spelling difference may be intentional. Where the task is file inspection or organization, record the files included and the literal naming or comparison choices instead. To diagnose a problem, compare a short source passage or a known file pair with the result. Check an intermediate copy separately: a previous extraction, normalization or rename may explain the difference before this tool is involved.
Check meaning as well as appearance
Read the result’s beginning, ending and transitions between sections. Compare names, table values and special characters with the source. If the tool produces a report, locate sample findings in the original file; an inspection result is a review aid, not automatic removal of the identified information.
For downloadable file copies, verify names, extensions and correspondence to the originals before using them elsewhere. If wording is missing or jumbled, distinguish unsupported embedded content from an encoding or ordering issue. A filename change does not change the underlying format, and a matching appearance does not prove two files have identical bytes.
Example input and output
repeated line items → cleaned line listExamples describe the workflow. Results depend on the source file and settings.
Check the saved result before using it
Compare output items and line count with the source, including the position of the first retained occurrence. Differences in spelling or capitalization can remain distinct, rather than being merged because they seem equivalent.
If the result is different from what you expected
Apparent duplicates may differ in whitespace, capitalization or invisible characters that need separate inspection. If an address or description spans multiple lines, first arrange each intended item on a single line.
Limits to keep in mind
- Each line is one item. Choose trimming, blank removal, deduplication and sorting separately.
Continue with a related tool
This guide explains the public browser tool. Keep a copy of the original and inspect the result before sharing it.