Sort Lines
FreeSort lines of text alphabetically, by length, numerically, or shuffle them randomly.
How to Use
- Paste your text with multiple lines into the input box
- Choose your preferred sorting method
- Optionally enable additional options like remove duplicates
- Copy the sorted result
Sort Modes
- A → Z: Sort lines alphabetically in ascending order (a to z).
- Z → A: Sort lines alphabetically in descending order (z to a).
- Short → Long: Sort lines by their length, shortest lines first.
- Long → Short: Sort lines by their length, longest lines first.
- Numeric: Sort by the leading number in each line (useful for numbered lists).
- Random: Shuffle all lines into a random order.
Additional Options
- Case Sensitive: When enabled, uppercase letters sort before lowercase (A-Z before a-z).
- Trim Lines: Remove leading and trailing whitespace from each line.
- Remove Empty Lines: Delete any blank lines from the output.
- Remove Duplicates: Keep only unique lines, removing any repeated entries.
Common Use Cases
- Organize name lists alphabetically
- Sort CSV data lines
- Clean up and deduplicate lists
- Randomize quiz questions
- Sort log entries
- Organize code imports