📚 Sort Lines

Sort all lines in your text alphabetically (A–Z or Z–A). Fast, free, and private.

How to use

  1. Paste your lines into the input box.
  2. Choose A–Z or Z–A and set case/trim preferences.
  3. Click Sort Lines, then copy or download the result.

Sort Text Lines Alphabetically

Organize lists, code snippets, or documents in seconds. Sorting happens entirely in your browser—no uploads or tracking.

Need more cleanup? Try Remove Duplicate Lines or Reverse Text.

FAQ

Is the sorting case-sensitive?

By default, the tool ignores case. Uncheck “Ignore case” to make sorting case-sensitive (e.g., capitals first).

Does trimming affect my original spacing?

When “Trim leading/trailing spaces” is on, lines are trimmed before sorting; the output will reflect trimmed lines.

Can I download the sorted text?

Yes—use the Download .txt button to save the output.