← back to flaviocopes.com

Line sorter & deduplicator

← All tools

Paste a list of lines and run operations in order: trim, drop empties, filter, dedupe, sort, add prefix/suffix. Live stats show lines in vs out.

Your data never leaves the browser — all processing runs locally.

~~~

Input

~~~

Operations (applied top to bottom)

Sort

Natural sort treats item2 before item10. Shuffle uses crypto.getRandomValues.

~~~

Output

lines in lines out duplicates removed
~~~

About this tool

Handy when cleaning log exports, URL lists, email addresses, or any newline-separated blob. Operations stack in a fixed order so results are predictable — trim and filter before deduping, sort last (except prefix/suffix, which runs after sort).

~~~

Read more