ToolHub

Sort & Deduplicate Lines

Sort, dedupe, and clean up text lines

Paste text to begin

Sort order

Options

Input

Output

Quick steps

1

Paste your text

Drop any list of lines. The output updates as you tweak options.

2

Choose a sort order

Natural sort handles numbers correctly (file2 before file10). Case-sensitive sort orders capital letters first.

3

Add clean-up options

Toggle dedupe, trim, and drop-empty for a polished output. Reverse-after flips the final order.

Frequently asked questions

What is natural sort?

Natural sort treats embedded numbers as numbers, so file2 comes before file10 (case-sensitive sort would put file10 first because '1' < '2' alphabetically).

How does case-insensitive dedupe work?

When enabled, 'Apple' and 'apple' are treated as duplicates and only the first occurrence is kept (with its original casing).

Will my line endings change?

Output uses LF (Unix) line endings. CRLF input is normalized automatically.

Is my text uploaded anywhere?

No. All sorting and dedupe runs in your browser.