Sort Lines
Sort a list of lines alphabetically, by length, or numerically — ascending or descending.
More options
How to use Sort Lines
- Paste your lines.
- Pick a sort mode and direction.
- Optionally remove empty lines.
- Copy the sorted result.
What is Sort Lines?
Sorting a list of lines is useful for organizing data, cleaning lists, or preparing input for further processing. This tool offers three sort modes: alphabetical (with optional case-insensitivity), by line length, or numeric (parsing each line as a number).
FAQ
- Does numeric sort handle decimals?
- Yes. Lines starting with valid numbers (including decimals and negatives) are compared numerically.
- What happens to non-numeric lines in numeric mode?
- They sort after all numeric lines.
Related tools
People also use
- Advanced Text Sorter↕️ Sorting & Lines
Advanced Text Sorter — Perform powerful sorting operations on lists or datasets. Sort alphabetically, numerically, by line length, or focus on a specifi...
- Add Prefix / Suffix to Lines↕️ Sorting & Lines
Add Prefix / Suffix to Lines — Add the same prefix or suffix (or both) to every line of your text. Runs entirely client-side inside your browser.
- CSV Sort📊 CSV Tools
CSV Sort — Sort CSV rows by any column. Three modes: alphabetical, numeric, and natural (so 'a2' comes before 'a10').