TEXT & DEVELOPER / FREE BROWSER TOOL

Sort lines

Sort lines alphabetically or reverse their order.

Files are processed in this browser and are not uploaded to YYY Tools.Details
Opening workspace

About Sort lines

Sort lines online to organize labels, names, or a plain-text checklist. You can alphabetize a list of text in ascending or descending order. Duplicate lines remain in the result; remove them in the dedicated duplicate-line tool if necessary.

How to sort a text list alphabetically

  1. Paste the list with one item per line.
  2. Choose A to Z or Z to A and select Process.
  3. Review the order and download sorted-lines.txt.

A practical example

Input
pear
apple
banana
Result
apple
banana
pear

Sorting compares full lines using the browser's locale-aware, base-sensitivity comparison.

Supported input and limitations

  • This is not natural numeric sorting: numeric strings are compared as text. Case and accents are compared with base sensitivity.
  • Ordering of language-specific characters can vary by runtime locale. Empty lines and duplicates are not removed automatically.

Processing happens on your device. Read about local processing and optional workspace recovery.

Frequently asked questions

Can I sort text lines in reverse alphabetical order?

Yes. Choose Z to A to reverse the ascending sorted order.

Does this tool sort numbers numerically?

No numeric-sort option is enabled. A text comparison can place 10 before 2; use a numeric-aware workflow if that is not what you need.

Related tools