Skip to main content

Text Sorter

Sort lines of text.

1
Upload
2
Configure
3
Convert
4
Download

Tool guide

Free Online Text Sorter

Sort a multiline list in ascending or descending order with optional case-sensitive, numeric, and empty-line settings. The browser-first text sorter rearranges complete lines without intentionally changing their contents.

Steps

How it works

  • Paste a list with one item per line.
  • Choose ascending or descending order.
  • Optionally enable case-sensitive or numeric sorting and remove empty lines.
  • Sort, review, copy, or download the resulting list.

Highlights

Key features

  • Sorts complete lines in A-Z or Z-A direction.
  • Offers case-insensitive sorting by default and an optional case-sensitive mode.
  • Includes a numeric mode based on JavaScript number conversion.
  • Can remove whitespace-only lines before sorting.
  • Preserves duplicate nonempty lines unless you process them separately.

Use cases

Common uses

  • Alphabetize names, labels, tags, or simple lists.
  • Arrange numeric values in ascending or descending order.
  • Normalize line ordering before comparing two lists.
  • Remove blank rows while sorting pasted data.

Notes

Limitations to know

  • Alphabetical ordering uses the browser's default localeCompare behavior with no locale selector.
  • Numeric mode converts each full line with Number, so mixed text-and-number values can sort unpredictably.
  • The tool does not implement natural-language, column-aware, date, semantic, or custom-key sorting.
  • Duplicate lines remain in the output, and sort stability follows the browser's JavaScript engine.
  • Leading and trailing whitespace is retained and can affect ordering.

FAQ

Frequently asked questions

5 answers
Can I sort in descending order?

Yes. Choose Z-A to reverse the comparison result.

Is sorting case-sensitive?

It is case-insensitive by default. Enable the case-sensitive option when capitalization should affect ordering.

Are numbers sorted numerically?

Enable numeric sort to compare each complete line as a JavaScript number. Lines that are not valid numbers may not sort usefully.

Are duplicate lines preserved?

Yes. Sorting does not remove duplicates.

What happens to blank lines?

They remain unless Remove empty lines is enabled, which removes lines that are empty after trimming.

Copied to clipboard