Skip to content
minikit.

How to alphabetize a list and remove repeated lines

Put one record on each line, compare natural number sorting with duplicate removal, and choose the matching rules before keeping the first occurrence.

Prepare one record per line

For shopping items, filenames or topic lists, start by placing each item on a separate line. The text sorter does not automatically split a comma-separated row into individual records. A line containing “apple, pear, banana” remains one line, rather than becoming three items. Leave headings and explanatory notes outside the input unless you want those lines sorted with the records as well.

Keep a copy of the original and decide which operations you need. Sorting alone is enough if you only want a readable order. If you want a single copy of each record, run the duplicate line remover first, copy its result and paste it into the text sorter. Separating these steps makes it easier to see which operation changed the list.

Try natural order with numbered filenames

Enter file10, file2 and file1, putting each on its own line. Ascending order produces file1, file2, file10. The sorter compares numbers naturally, so 10 does not come before 2 simply because its first digit is 1. Entering just the lines 10, 2, 1 similarly produces 1, 2, 10. Select descending order to reverse the comparison direction.

Alphabetical comparison uses the page language. Case and accents also participate, and the position of special letters can depend on the browser’s locale data. Choose the page language that fits the list, then inspect names containing special letters. The tool compares the complete line: it does not automatically recognize a surname, date or another column inside a record.

Choose the duplicate matching rules first

The duplicate line remover’s default comparison distinguishes case and leading or trailing spaces. Apple and apple are different spellings. Enable Ignore case when differently capitalized versions should count as repeats. Enable Trim spaces to ignore spaces at the edges when comparing lines. An important detail is that this setting does not rewrite the surviving line: the first occurrence keeps its original spelling and surrounding spaces.

For a concrete example, enter “ Apple ” on the first line, “apple” on the second and “Pear” on the third, without quotation marks. On the English page, enable both options. The second line is removed, leaving the original first line with its spaces and the Pear line. If you prefer another spelling, edit the first occurrence before removing duplicates.

Review blank lines and similar records separately

The sorter preserves both repeated records and blank lines. Duplicate removal is not the same as deleting every blank line either: when identical empty lines repeat, the first can remain. If you also need whitespace cleanup, consider those options separately. Cleaning whitespace before deduplication can change which records match, so review the result after each operation rather than assuming every cleanup has the same effect.

Deduplication does not merge records with similar meanings. “apple” and “apples”, or two differently written addresses, are not automatically understood as the same item. NFC Unicode normalization participates in matching, but that does not make every visually similar symbol equal. Compare the final record count and a few sample lines with the original before using the result elsewhere.

Check the final copy and input limit

Both text tools accept up to 100000 UTF-16 code units. If you divide a large list into batches, duplicates in different batches will not meet in the same operation and may remain. After copying the result, check that your destination application preserves one record per line. Processing happens in the browser; list contents are not sent to a server for processing. Clear the input and result when you finish on a shared device.