Does uppercase sort before lowercase here?
No. Sorting uses locale-aware comparison, which groups each word with its case variants (like "apple" and "Apple") next to each other rather than sorting all capitalized words before all lowercase ones.
Sort text lines alphabetically or by length, remove duplicates, and clean pasted lists in seconds.
If this tool isn’t working as expected, please take a screenshot of the error and report the problem here so we can investigate and improve it.
This tool sorts pasted lines using your browser's built-in locale-aware string comparison, not raw character-code order - so mixed-case lists sort the way most readers expect ("apple" and "Apple" land next to each other, rather than every capitalized word being pushed to the front). It doesn't do natural (numeric-aware) sorting, though: numbers embedded in text are compared character by character, so "item 10" sorts before "item 2" under both A-Z and Z-A modes, the same way a plain alphabetical sort always has.
Every line is trimmed of leading/trailing whitespace and fully blank lines are removed automatically, with no option to keep them. The optional "Remove duplicates" checkbox is a case-sensitive exact match - "Apple" and "apple" are treated as different lines and both kept.
A text sorter that arranges pasted lines A to Z, Z to A, shortest first, or longest first, with optional case-sensitive duplicate removal - using your browser's locale-aware string comparison rather than raw character-code order or numeric-aware ("natural") sorting.
Paste your items with one value per line.
Sort from A to Z, Z to A, shortest first, or longest first.
Remove duplicate lines before generating the final sorted output.
Copy the sorted list or download it as a text file.
Add lines with one item per line into the input box.
Pick A to Z, Z to A, Shortest First, or Longest First.
Check the box to drop exact, case-sensitive repeat lines before sorting.
Copy the sorted output or download it as a .txt file.
Best For
Input (A to Z)
"banana" / "Apple" / "cherry" / "apple" / "Banana"Result
"apple", "Apple", "banana", "Banana", "cherry"The sort groups each word with its case variants next to each other (apple/Apple, banana/Banana) rather than sorting every capitalized word before every lowercase one - the result of using locale-aware comparison instead of raw character-code order.
Input (A to Z)
"item 1" / "item 10" / "item 2" / "item 20" / "item 3"Result
"item 1", "item 10", "item 2", "item 20", "item 3""item 10" sorts before "item 2" because the comparison reads character by character - "1" comes before "2" - regardless of the full number's value. There's no natural-sort mode to fix this; if your list has double-digit numbers you want in numeric order, sort it in a spreadsheet instead.
Paste keyword ideas gathered from different research sessions and sort them into one clean A-Z list.
Sort entries alphabetically by author or title for quick scanning.
Use Shortest First or Longest First to spot unusually brief or long entries, like outlier headlines or tags.
Check Remove Duplicates to drop exact repeat lines in the same pass as sorting - keeping in mind it won't catch case variants like "Apple" and "apple."
Problem
Solution
Numbers embedded in text sort character by character, so "item 10" comes before "item 2." There's no natural-sort mode.
Problem
Solution
Deduplication is an exact, case-sensitive match - "Apple" and "apple" are treated as different lines and both survive.
Problem
Solution
The tool only splits on line breaks - a single line with commas between items is treated as one entry, not multiple.
Problem
Solution
Every line is trimmed and fully blank lines are removed automatically before sorting - there's no option to keep them.
If numeric order matters (SKUs, rankings, page numbers), this tool's character-by-character comparison won't give you what you want - sort numerically in a spreadsheet instead.
Remove Duplicates only catches exact, case-sensitive repeats - lowercase your list first if "Apple" and "apple" should count as the same entry.
Sorting by length quickly surfaces unusually short or long entries in a list, which is often more useful than reading the whole list top to bottom.
Convert comma- or tab-separated lists to one-per-line first if your source data isn't already formatted that way.
Numbers inside text compare character by character - "item 10" sorts before "item 2" under both A-Z and Z-A modes.
"Apple" and "apple" are treated as different lines and both kept when Remove Duplicates is checked.
Input is split on line breaks only - there's no support for comma-, space-, or tab-separated lists.
Every line is trimmed and empty lines are dropped automatically - neither behavior can be turned off.
Sorting uses your browser's built-in locale-aware string comparison without a fixed locale specified, so exact ordering of accented or non-Latin characters could vary slightly between browsers or operating system language settings.
Windows and standard Unix/Mac line endings are recognized; the legacy classic-Mac-only \r line ending is not specifically handled.
Both sort lists, but they handle embedded numbers very differently.
| This Tool (Text Sorter) | A Spreadsheet (e.g., Excel/Google Sheets) | |
|---|---|---|
| Numbers embedded in text | Sorted character by character ("item 10" before "item 2") | Can sort numerically within a column if formatted as numbers |
| Setup required | None - paste text and pick a mode | Requires importing data into cells/columns first |
| Case handling | Locale-aware comparison groups case variants together | Configurable, varies by spreadsheet sort settings |
Which should you use?
Use this tool for a fast, no-setup sort of a pasted text list; use a spreadsheet when your list has numbers that need true numeric ordering.
The most common question is whether this sorts numbers the way a spreadsheet would - it doesn't. Numbers inside text are sorted character by character (so "item 10" comes before "item 2"), and there's no natural-sort mode that fixes this. The FAQ below also covers how case, duplicates, and blank lines are handled.
No. Sorting uses locale-aware comparison, which groups each word with its case variants (like "apple" and "Apple") next to each other rather than sorting all capitalized words before all lowercase ones.
Numbers inside text are compared character by character, not as full numeric values - there's no natural-sort mode. Use a spreadsheet if you need true numeric ordering.
No. Deduplication is an exact, case-sensitive match, so differently-cased versions of the same word are both kept.
No. Every line is trimmed and fully blank lines are removed automatically before sorting - this can't be turned off.
No. CoditTools's text sorter runs entirely in your browser - your text is never sent to any server.
Leave your email so we can prioritize similar tools and updates.
Trending tools will appear as visitors explore the catalog.
Your recently visited tools will show up here.