↕️ List Sorter

Sort a line-based list and remove duplicates.

How to use

  1. Enter your list, one item per line.
  2. Choose a sort mode (ascending/descending/numeric) and options.
  3. Click "Sort" to see the result.

🎯 Use Cases

Example

Input
banana
Cherry
apple
banana

blueberry
Output
apple
banana
blueberry
Cherry

Ascending sort with "Remove duplicates" and "Remove blank lines" enabled. The duplicate banana and the empty line are dropped, and the case-insensitive ordering places Cherry after blueberry.

Sorting options explained

Sort and tidy a line-based list by several criteria.

OptionWhat it does
Ascending / descendingAlphabetical or chosen-criterion ordering
DeduplicateKeep only one of each repeated line
Trim whitespaceStrips edge spaces — improves sort and dedupe accuracy
Ignore caseTreats Apple and apple as equal
Numeric sortBy number size — plain text sort puts 10 before 2

FAQ

What happens if numbers and letters are mixed?
In "Numeric" mode, any item that can't be converted to a number is treated as 0. For text lists, use "Ascending/Descending" instead.
How does duplicate removal work?
Checking "Remove duplicates" merges only lines that are exactly identical.
Is my list sent to a server?
No. Sorting happens entirely in your browser.
Why does 10 sort before 2?
String ordering compares the first character — "1" precedes "2". Enable numeric sort for size order.
Are blank lines sorted too?
Empty lines are cleaned up with trimming. Re-add them after sorting if needed.

More Text Tools

📝
Markdown Preview
Live-preview Markdown as HTML
🔗
URL Encoder/Decoder
Percent-encode/decode URL characters
✏️
Find & Replace
Search & replace with regex support
🆚
Text Diff
Compare two texts line by line
📧
Email Extractor
Extract & dedupe emails from text
🔢
Character Counter
Count characters, bytes, lines & words
🔠
Case Converter
Convert to UPPER/lower/Title Case
🔤
Fullwidth/Halfwidth Converter
Convert fullwidth chars ↔ halfwidth ASCII
🈚
Unicode Inspector
Check code points & look up characters
🔟
Text to Decimal
Convert text ↔ decimal code points
🧾
Text to Hex
Convert text ↔ UTF-8 byte hex
0️⃣
Text to Binary
Convert text ↔ UTF-8 byte binary
🔡
ASCII Art Generator
Turn text into an ASCII art banner