Text Sorter

Paste a list of lines and instantly sort them A-Z, Z-A, by length, or numerically, with optional duplicate removal and case-insensitive comparison — everything runs live in your browser.

Paste your lines above and click "Sort Lines".

How to Use the Text Sorter

  1. Paste your list into the box, with one item per line.
  2. Choose a sort order: alphabetical (A-Z or Z-A), by line length, or numeric.
  3. Turn on "Remove duplicates after sorting" if your list may contain repeated lines.
  4. Turn on "Case-insensitive sorting" so "Apple" and "apple" sort together rather than by capitalization.
  5. Click "Sort Lines" to see the reordered list, then "Copy" to grab the result.

Why Use This Tool?

Is my list uploaded anywhere?

No. Sorting happens entirely inside your browser using JavaScript's native sort algorithm. Your list — names, keywords, inventory items or anything else — is never sent to a server, logged, or stored.

How does numeric sorting handle text mixed with numbers?

Numeric mode reads the leading number from each line and sorts by that value. Lines that don't start with a recognizable number are pushed to the end of the list, so a file of mixed labels like "Item 3", "Item 10" and "Item 2" sorts in true numeric order (2, 3, 10) rather than the misleading text order (10, 2, 3) you'd get from plain alphabetical sorting.

What's the difference between sorting by length and alphabetically?

Alphabetical sorting orders lines by their letters, like a dictionary. Length sorting instead orders lines by how many characters they contain, shortest or longest first — useful for spotting outliers in a list, prioritizing short titles, or preparing data where entry length matters more than wording.

Who uses a text sorter?

Developers alphabetizing configuration keys or import lists, SEO specialists organizing keyword research by length or relevance, students sorting bibliography entries, and anyone cleaning up a spreadsheet export all reach for a quick line sorter instead of doing it by hand.

Related Tools