๐Ÿ”ค Text Line Sorter

Sort a block of multi-line text alphabetically (ascending or descending) or numerically. Also supports case-insensitive sorting and removing duplicate lines at the same time. Handy for organizing lists or prepping data.

How to use

  1. Enter the text you want to sort, one item per line.
  2. Choose the sort order (ascending or descending) and any options โ€” case-insensitive, remove duplicates, numeric sort.
  3. The sorted result appears automatically. Use the "Copy" button to copy it.

FAQ

Can lines containing numbers be sorted numerically?

Yes โ€” turn on "Sort numerically" to interpret each line as a number and sort by value (non-numeric lines may not sort as expected).

Does this sort non-English text correctly?

Yes โ€” it uses the browser's standard string comparison, so it sorts other languages in a reasonable locale-aware order too.

Can I remove duplicates while sorting?

Yes โ€” turn on "Remove duplicates" to strip out repeated lines (any occurrence after the first) at the same time as sorting.