Text Sorter
About this tool
Sort multi-line lists alphabetically or numerically. Choose ascending or descending order, ignore case for case-insensitive sorting, treat lines as numbers when appropriate, and optionally remove duplicates after sorting.
How to use
- Alphabetical ascending and descending sort
- Case-sensitive or case-insensitive mode
- Numeric line sorting when values are numbers
- Optional dedupe after sort
- Keep or remove leading and trailing spaces on each line
- Paste lines: Enter one entry per line or import a text file.
- Configure sort: Pick direction, case sensitivity, and numeric mode.
- Sort and copy: Run Sort and copy the ordered list.
Examples
- Alphabetize name lists for directories
- Order version numbers or numeric IDs
- Sort keyword lists for SEO reports
- Clean and order config key lists
Limitations
- Locale-aware collation follows JavaScript default locale
- Numeric sort applies only when lines parse as numbers
- The text entered in the tool is processed directly in your browser and is not sent to a server.
FAQ
- How does numeric sort work?
- When enabled, lines that parse as numbers are ordered by value instead of lexicographic string order.
- Will blank lines be sorted to the top?
- Empty lines are kept unless you remove them in a separate cleaning step.
- Can I sort Unicode text?
- Yes. Sorting uses JavaScript localeCompare with your browser locale.