Whitespace options
Sorted lines
Key takeaway
Paste one item per line to sort the list.
- Lines sorted
- 0
- Blank lines removed
- 0
How this alphabetical order tool works
The tool treats each line as one item, sorts the lines A-Z or Z-A and keeps the sorted output copyable. Case, whitespace and blank-line options are controlled in the form.
Sorting options
Ignore case sorts uppercase and lowercase versions together. Trimming removes leading and trailing spaces before sorting. Duplicate lines are preserved by design.
What this tool does not include
This is not a spreadsheet sorter, database tool, fuzzy matcher or locale-heavy collation engine.
Key terms and assumptionsShort notes about line-based sorting, duplicates, case handling and browser processing.
- Line-based sorting
- Each line is treated as one list item.
- Duplicates
- Duplicate lines are preserved. Use Remove Duplicate Lines if you want unique lines.
- Case handling
- Ignore case compares lowercase versions while keeping the displayed line content.
- Browser processing
- The text is processed in the browser and does not need to be sent to a server.
Related tools
Browse the Text tools hub for more browser-based text tools.
- Remove Duplicate Lines Remove duplicate lines from pasted text while keeping the first occurrence.
- Line Counter Count total lines, non-empty lines and blank lines in pasted text.
- Text Cleaner Clean pasted text by trimming whitespace, removing extra spaces, removing blank lines and normalising line breaks.
- Case Converter Convert text to uppercase, lowercase, sentence case, title case, camelCase, PascalCase, kebab-case or snake_case.
FAQs
How do I sort a list alphabetically?
Put each item on its own line, choose A-Z or Z-A and copy the sorted output.
Does it remove duplicate lines?
No. This tool preserves duplicates. Use Remove Duplicate Lines when you want unique lines.
Can it ignore case?
Yes. Ignore case sorts uppercase and lowercase versions together.
Can it remove blank lines?
Yes. Enable remove blank lines to exclude empty lines from the output.
Is my list uploaded?
No. Sorting happens in your browser.
Does it sort spreadsheet columns?
No. It sorts pasted text lines, not full spreadsheet data.