Why sort text lines?
Sorting lines alphabetically, numerically or by length is a common task when cleaning data, organizing lists or preparing content for import. Whether you're sorting a list of names, URLs or log entries, doing it by hand is slow and error-prone. This tool sorts thousands of lines at once, ascending or descending, with or without case sensitivity.
Common use cases
Alphabetically sorting name lists, glossaries, or dictionaries. Organizing CSV data before importing into a spreadsheet or database. Sorting server log entries by timestamp or error code. Deduplicating and ordering configuration files or environment variables. Arranging bibliography entries, product catalogs, or any structured text. Sorting code imports alphabetically for cleaner diffs.
Features & details
Alphabetical (A–Z, Z–A), numerical (by the number at the start of each line) and length-based sorting. Alphabetical order follows the page language, so accented letters sort like in a dictionary (é next to e, not after z). Empty lines can be moved to the end. Windows (CRLF) and Unix line endings are handled. To remove duplicates, use Text Filter. Runs entirely in your browser — no data is sent to any server.