Sort text lines alphabetically, numerically, or in reverse order.
The Text Sorter is a free, browser-based tool that lets you sort any list of text lines in seconds. Whether you need alphabetical ordering, numerical sorting, or length-based arrangement, this tool handles it all without requiring any software installation or account signup.
A text sorter takes a block of text — one item per line — and reorders those lines according to rules you define. You can sort A to Z, Z to A, smallest number to largest, shortest line to longest, and more. It is an essential utility for anyone who works with lists, data, or structured content on a regular basis.
Beyond simple sorting, this tool also lets you clean up your data at the same time. You can remove duplicate entries, strip out blank lines, and choose whether the sort should be case-sensitive or case-insensitive. The result is a clean, organized list ready to use wherever you need it.
All processing happens instantly in your browser using JavaScript. There is no server involved, no file upload, and no waiting. Paste your text, configure your options, click Sort, and your result is ready to copy or download as a plain text file.
For best results, make sure each item you want sorted is on its own line. If your data is comma-separated or tab-separated, consider using the Text Splitter tool first to convert it to one-item-per-line format, then sort it here. This two-step workflow handles almost any raw data format you might encounter.
When sorting numbers, always choose the Numerical sort type rather than Alphabetical. Alphabetical sorting treats numbers as strings, so "10" would come before "9" because "1" comes before "9" lexicographically. Numerical sorting correctly orders them by value. If your list mixes text and numbers, try both modes to see which gives the result you need.
The Remove Duplicates option respects the Case Sensitive toggle. With case sensitivity off, "Apple" and "apple" are treated as the same item and only the first occurrence is kept. Enable Case Sensitive mode if you need to preserve both variants as distinct entries in your output.
Sorting runs in your browser. Your text never leaves your device.
Yes. Alphabetical sort orders lines A-Z or Z-A. Numerical sort treats lines as numbers and orders them by value (so 10 comes after 9, not after 1 as in alphabetical sort). Choose the sort type based on your data.
Yes. Enable the remove duplicates option to deduplicate lines during sorting. This is useful for cleaning up lists, merging multiple lists, or finding unique values in a dataset.
Yes. Toggle the descending option to sort Z-A or largest to smallest. This works for both alphabetical and numerical sort modes.
Basic text sorting sorts entire lines. For column-based sorting of CSV data, use the JSON to CSV tool to convert your data to a table format where column sorting is more straightforward.
You can toggle case-sensitive sorting. Case-insensitive sorting treats 'Apple' and 'apple' as equal. Case-sensitive sorting places uppercase letters before lowercase in ASCII order. For most list sorting tasks, case-insensitive is more natural.