Line Sorter & Deduplicator
Sort lines alphabetically, numerically, or by length. Remove duplicate lines. Shuffle, reverse, and filter lines.
About this tool
Working with lists of text is a common developer and data task. This tool provides a full suite of line operations.
Sorting: - Alphabetical (A→Z / Z→A) - Numeric (ascending/descending) - By line length (shortest/longest first) - Natural sort (handles "file10" after "file9") - Case-insensitive sort option
Deduplication: - Remove exact duplicate lines - Case-insensitive deduplication - Remove empty lines - Trim whitespace before comparing
Other operations: - Reverse line order - Shuffle (random order) - Prefix/suffix each line with a string - Filter lines containing a keyword - Number each line - Join lines with a custom separator
Frequently Asked Questions
What is natural sort order?
Is deduplication case-sensitive by default?
Can I sort a list of numbers?
How do I sort and deduplicate a list of emails?
Related Tools
Text Counter
Count words, characters, sentences, paragraphs, and reading time. Keyword density analysis included.
Diff Checker
Compare two texts side-by-side with highlighted differences. Supports plain text and smart JSON-aware diffing.
Regex Tester
Test regular expressions with real-time match highlighting, named groups, and plain-English explanation of each part.
CSV to JSON
Convert CSV to JSON and JSON to CSV. Supports custom delimiters, headers, and nested JSON flattening.