Files stay on your device Use Text Sorter ↓

Text Sorter Online — Free & Private

Sort lines A to Z, Z to A, or by length.

No sign-up required Files stay on your device Works offline once loaded

Loading the tool workspace…

Text Sorter sorts non-empty lines. A to Z uses the selected language’s collation. Z to A reverses that. Optional natural number sorting puts item2 before item10. By length counts visible grapheme clusters and puts shorter lines first and does not alphabetize within the same length. Empty lines are dropped so they do not cluster at the top.

Sorting is local. The text is not uploaded.

Large files and OCR need sufficient device memory; review the downloaded result before using it.

Sort lines A to Z, Z to A, or by length. Everything runs in this tab — nothing is uploaded for the core job.

  1. Paste lines.
  2. Choose a sort.
  3. Copy the result.
  4. Sort again from the original box if you want a different order. The original box is not replaced.

Privacy proof for Text Sorter

This tool processes input in your browser. Open DevTools → Network while you run it to check the requests. Some tools need downloaded libraries on their first use.

Popular available tools for everyday tasks. Browse categories or search the full catalog.

Star any tool — it appears under Favorites on this device.

Available tools process your files and text on your device. Choose the operation you need, check its supported inputs and limits, and keep the original file until you have reviewed the result. PDF compression offers a lossless mode and optional image-based modes; image-based exports lose selectable text. Scanned PDFs need OCR for text extraction. OCR language models may need an initial download. Some catalog operations are still being completed and are clearly marked as unavailable. A current browser and sufficient device memory are required. Optional sign-in stores activity metadata, not your documents.

Is the sort case-sensitive?

Case ordering follows the selected language’s collation rules.

Do numbers sort as numbers?

Enable Natural number sorting to put 2 before 10. Otherwise they sort as text.

Can I sort CSV columns?

No. This sorts whole lines.

Will the input box change?

No. The result is separate.

From our blog: How to Sort Lines of Text Online