Happytails.aiFree tools. No account needed.

Sort lines

Sort lines alphabetically or in natural number order.

The Numeric setting sorts embedded digit sequences naturally, such as file2 before file10. It is not a decimal-number sort. Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.

Your result

How to use Sort lines

  1. Enter your text in the input field.
  2. The result updates as you type. Adjust the available settings if needed.
  3. Review the result, then use Copy result or a download link when available.

What to expect

Sort lines alphabetically or in natural number order. The Numeric setting sorts embedded digit sequences naturally, such as file2 before file10. It is not a decimal-number sort.

Try a small example

file10
file2
file1