Text

Remove duplicate lines & sort

Deduplicate, naturally sort or reverse a list of lines.

Runs in your browser · No file or text uploads
Preparing your tool…
ABOUT THIS TOOL

What Remove duplicate lines & sort helps you do

Clean a product list, mailing list or collection of search terms without manually checking repeated entries.

How to use it

  1. Enter one item per line.
  2. Choose deduplicate, ascending, descending or reverse order.
  3. Set whitespace and case rules, then run the tool.

Input and output example

INPUT
Apple
Pear
Apple
OUTPUT
Apple
Pear

Supported formats and limits

  • Maximum input: 1 MiB of UTF-8 text.
  • A blank line is treated as a line; deduplication may keep its first occurrence.

How the result is calculated

Deduplication preserves the first occurrence. Sorting uses English-locale Intl.Collator with numeric comparison, so Item2 comes before Item10. Reverse order flips the existing line order.

Frequently asked questions

Does the original order survive?

Deduplication preserves first-occurrence order. Sorting replaces it with the selected comparison order.

Can A and a be treated as the same value?

Enable Ignore letter case to treat them as equivalent when removing duplicates.