Sorting lines of text alphabetically usually means using an editor or a script. The Sort Text tool does it in the browser: paste your list, choose A–Z or Z–A and case sensitive or not, and get sorted lines—no sign-up and no data sent to a server.
What does Sort Text do?
Sort Text is a free online tool that sorts lines of text alphabetically in ascending (A–Z) or descending (Z–A) order. You can choose case-sensitive or case-insensitive sorting. It is used to alphabetize lists, organize lines for deduplication, or prepare data for consistent ordering. All processing runs in your browser; there is no upload, no storage, and no account required.
Key Features
- Ascending or descending — Sort A–Z or Z–A. Toggle case sensitivity so "Apple" and "apple" are ordered as you need.
- Line-based — Each line is treated as a whole for comparison. Empty lines are included in the sort.
- Any input — Paste or type text with one item per line. No size limit for in-browser processing.
- Instant result — Paste, set options, and see the sorted list. Copy when ready.
- Privacy-first — All processing happens in your browser. Your text is never sent to any server.
- No account — Use as often as you need without sign-up.
How to Use Sort Text
- Open the Sort Text tool.
- Paste or type your text (one item per line).
- Choose ascending (A–Z) or descending (Z–A) and case sensitive or not. View the sorted result. Copy the result.
- Paste into your doc, list, or next tool. Use the "Use tool" button on the docs page if you are reading this from the documentation.
Real Use Cases
- Alphabetize lists — Sort names, tags, keywords, or any list A–Z or Z–A.
- Organize for deduplication — Sort first so duplicates are adjacent, then use Remove Duplicate Lines or scan manually.
- Consistent ordering — Prepare data for comparison, merge, or display in a stable order.
- Vocabulary and glossaries — Sort word or term lists alphabetically.
- Config and env — Sort keys or entries for consistent diffs or readability.
- Import and export — Sort lines before import or after export for predictable order.
Why Use Sort Text Instead of Alternatives?
- vs. Spreadsheet — When the data is in a text file or web form, the browser tool is faster. No export needed.
- vs. Sort Numbers — Numbers are sorted as text (e.g. 10 before 2). Use Sort Numbers for numeric order.
- vs. Manual reorder — No need to drag or cut-paste. One paste, set options, copy.
- vs. Scripts — No coding. Works in any browser.
Sorting is lexicographic (character-by-character). Check case sensitivity and that numbers are sorted as text (e.g. 10 before 2). Use sort numbers for numeric order.
Benefits for Writers, Data Users, and Developers
- Writers — Alphabetize lists, glossaries, or references quickly.
- Data users — Order line-based data for consistency or deduplication.
- Developers — Sort config lines, env vars, or log output. No one-off script.
Common Mistakes
- Sort order different from expected — Sorting is lexicographic. Numbers sort as text (10 before 2). Use Sort Numbers for numeric order. Check case sensitivity.
- Empty lines — Empty lines are included in the sort. Remove them first with Delete Empty Lines if you do not want them.
- Expecting numeric sort — This tool sorts alphabetically. For 1, 2, 10 use Sort Numbers.
- Forgetting to copy — The result is not saved. Copy before closing the tab or refreshing.
Frequently Asked Questions
What does sort text do?
It sorts lines of text alphabetically in ascending (A–Z) or descending (Z–A) order. You can choose case-sensitive or case-insensitive sorting.
Can I sort reverse (Z-A)?
Yes. Choose ascending (A-Z) or descending (Z-A). You can also toggle case sensitivity.
Paste or type text with one item per line. Each line is treated as a whole for comparison. Empty lines are included in the sort.
Is my text stored?
No. All processing happens in your browser. Your text is never sent to any server.
When should I use sort text?
Use it to alphabetize lists, organize lines for deduplication, or prepare data for consistent ordering.
Why is my sort order different from expected?
Sorting is lexicographic (character-by-character). Check case sensitivity and that numbers are sorted as text (e.g. 10 before 2). Use sort numbers for numeric order.
Sort Text gives you alphabetically sorted lines in seconds: paste, set options, copy. No account, no server round-trip. For length-based sort use Sort Text by Length, for numbers use Sort Numbers, and for deduplication use Remove Duplicate Lines.
Use the Sort Text tool to sort lines alphabetically.