Sort Lines — Free Online Tool
Paste any text and sort its lines alphabetically, by character length, numerically by leading number, or shuffle randomly. Combine with options to remove duplicates, trim whitespace, ignore leading numbers, and toggle case-sensitivity.
100% client-side. No uploads. Your data never leaves your browser.
How to use Sort Lines
- Paste lines into the input area.
- Choose a sort mode: A→Z, Z→A, Length, Numeric, Reverse, or Shuffle.
- Toggle options as needed.
- Click Sort and copy or download as sorted.txt.
Frequently Asked Questions
Why does my list look the same after sorting?
Check that a sort mode is selected. For mixed-case lists try case-insensitive. Enable trim whitespace if leading spaces prevent correct ordering.
How do I sort file names or version numbers correctly?
Use Numeric sort. It extracts the leading number, so 'file10' sorts after 'file9'.
Does remove duplicates respect case?
By default yes. Enable Case-insensitive to treat 'Apple' and 'apple' as duplicates.
Related tools
Related reading
Browse all free tools · theproductguy.in