Line Sort / Dedupe
Paste a list of lines and perform common line operations: sort alphabetically, sort numerically, remove duplicates, reverse the order, shuffle randomly, or trim whitespace from each line. Multiple operations can be combined. Useful for cleaning up log files, deduplicating lists, or preparing data for further processing.

What it does
- ▸Sorts lines alphabetically (A-Z) or reverse alphabetically (Z-A)
- ▸Sorts lines numerically (handles negative numbers and decimals)
- ▸Removes duplicate lines (case-sensitive or case-insensitive)
- ▸Reverses the order of lines
- ▸Shuffles lines randomly
- ▸Trims leading/trailing whitespace from each line
- ▸Removes empty lines
Use cases
- ▸Deduplicating a list of email addresses or URLs
- ▸Sorting log lines chronologically or alphabetically
- ▸Cleaning up a list of hostnames or IP addresses
- ▸Reversing the order of lines in a file for chronological reading
How it works
Paste your text lines into the input pane
Select one or more operations (sort, dedupe, reverse, etc.)
The operations are applied in order
The result appears in the output pane
Frequently asked questions
1Can I combine multiple operations?
Yes. For example, you can sort alphabetically and then remove duplicates, or trim whitespace and then sort. Operations are applied in the order they're listed in the options.
2What's the difference between alphabetical and numerical sort?
Alphabetical sort compares strings character by character, so '10' comes before '2' (because '1' < '2'). Numerical sort compares values as numbers, so 2 comes before 10. Use numerical sort when your lines contain numbers.
3Does dedupe preserve order?
By default, dedupe removes duplicates while preserving the first occurrence of each line. If you also sort, the sort is applied first, then duplicates are removed from the sorted result.
Related tools

Line Filter (grep)
Filter lines by plain text, keywords or a regex — like grep, but visual

List Comparer
Set operations on two lists — intersection, union, differences

String Inspector
Inspect length, words, lines, bytes and unicode code points

Log Timestamp Normalizer
Normalize mixed timestamp formats in log lines to a single target format
Use Line Sort/Dedupe offline in Devinity
All 95 tools run locally on your Mac. No internet required, no data sent to servers.
Download Devinity →