Text Line Sorter - Ascending, Descending, Deduplicate, Numeric

Sort text lines in ascending or descending order. Supports deduplication, case-insensitive sorting, and numeric sorting.

How to Use

  1. Enter the text you want to sort in the left text area (one item per line)
  2. Select sort order: Ascending (A→Z), Descending (Z→A), or No sort (apply options only)
  3. Configure options as needed (deduplicate, case insensitive, numeric sort, remove blank lines, etc.)
  4. Results are displayed in real time on the right
  5. Click 'Copy' to copy the result to your clipboard

Usage Examples

Sorting a list of names alphabetically:
Input: Charlie\nAlice\nBob
→ Ascending: Alice / Bob / Charlie
Sorting numbers numerically:
Input: 10\n2\n30\n1
→ Numeric sort ON, ascending: 1 / 2 / 10 / 30
(Lexicographic ascending: 1 / 10 / 2 / 30)
Removing duplicate email addresses:
Enable 'Remove duplicates' to keep only one instance of each unique entry.

FAQ

Is my data sent to a server?
No. All processing happens in your browser.
Does Japanese text sort correctly?
JavaScript's localeCompare is used, so Japanese text is sorted in Unicode order (hiragana, katakana, kanji). This may differ slightly from traditional 50-on (gojuuon) order.
How does numeric sort work?
If a line can be parsed as a number, it is compared numerically. Lines that are not numeric fall back to string comparison.
What is the 'No sort' option for?
It applies options like deduplication or blank line removal without reordering the lines, which is useful when you only want to clean up the list.
How are symbols and tabs sorted?
Sorting follows Unicode code point order. Symbols and digits generally come before letters.

Related Tools

Update History

Last Updated: 2026-02-20

  • 2026-02-20 Initial release