DevToolsForYou
Private by defaultRuns in your browser

Text sorter

Paste any list and sort it the way you need — alphabetically, numerically, or reversed. Options for case-insensitive sort and deduplication included.

Quick samplesUseful for testing
Text Sorter

About this tool

Sort lines alphabetically, numerically, or in reverse instantly. Case-insensitive and dedupe options — runs entirely in your browser, no signup.

Paste any list and sort it the way you need — alphabetically, numerically, or reversed. Options for case-insensitive sort and deduplication included.

No signup requiredRuns in your browserInstant results
How to use
  1. 1

    Paste the lines of text you want to sort into the input field.

  2. 2

    Choose ascending (A→Z), descending (Z→A), or random shuffle.

  3. 3

    Optionally enable case-insensitive sorting or numeric sorting.

  4. 4

    Click Copy to copy the sorted output.

Why use this tool?
  • Sort a list of names, tags, or keywords alphabetically before pasting into a doc.

  • Numerically sort log lines that start with counts or IDs.

  • Reverse-sort a changelog or timestamped list to put the newest entries first.

ExamplesInput → output

Sort alphabetically

Inputbanana apple cherry date
Outputapple banana cherry date

Sort numerically

Input10 3 25 1 8
Output1 3 8 10 25
Frequently asked questionsCommon questions answered

These answers explain common text sorter tasks, expected input formats, and edge cases so both visitors and search engines can understand what this tool does.

What sort modes are available?

Alphabetical (A→Z), reverse alphabetical (Z→A), numerical ascending, and numerical descending. Numerical mode compares the numeric value at the start of each line.

What happens to lines that aren't numbers in numerical sort?

Lines with no leading number are treated as zero and sorted to the beginning of ascending results or end of descending results.

Does case-insensitive sorting change the output text?

No. It only affects the sort order — 'Apple' and 'apple' are grouped together — but the original casing of each line is preserved in the output.

Can I remove duplicates while sorting?

Yes. Enable the Remove duplicates option to keep only the first occurrence of each line after sorting.