Sort Lines
Sort multiline text ascending/descending with optional numeric sort, case-insensitive compare, trimming, and removing empty lines. 100% local in-browser.
What is a line sorter?
A line sorter reorders multiline text based on alphabetical or numeric rules. It’s commonly used to organize lists, normalize exported data, and make comparisons easier.
How to use
- Paste your text (one item per line).
- Select Ascending or Descending.
- Optionally enable Numeric sort, Case-insensitive, and trimming.
- Copy or download the sorted output.
Common use cases
- Sorting keyword lists, tags, or product SKUs.
- Sorting numeric IDs or version-like values (enable Numeric sort).
- Preparing lists for diff/compare workflows.
FAQ
What does “Numeric sort” do?
It compares values numerically when possible (e.g., 2 comes before 10). If a value can’t be parsed as a number, it falls back to string comparison.
Why did my capitalization affect sorting?
Case can change comparison results. Enable Case-insensitive to sort without considering letter casing.
Does this preserve empty lines?
If Remove empty lines is enabled, empty lines are removed before sorting.