Sort Lines

Paste lines of text and pick an order. The result updates as you type.

Runs on your device. Nothing you paste is uploaded.

Sort orders

  • Alphabetical — dictionary order that handles accents properly (é sorts with e, not after z). Upper and lower case are sorted together unless Case-sensitive is on.
  • Natural — numbers inside text are compared by value, so file2.txt comes before file10.txt, and v1.9 before v1.10. This is how most file managers sort.
  • Numeric — lines are ordered by the number they start with (-3, 2.5, 10, 1e3); thousands separators are ignored. Lines that don't start with a number go to the end, alphabetically.
  • Length — shortest line first; lines of equal length are sorted alphabetically.
  • Random shuffle — a fair (Fisher–Yates) shuffle. Use Shuffle again for a new order.

Tick Reverse for Z–A, largest-first or longest-first.

Cleaning while sorting

Remove duplicates keeps one copy of each line (respecting Case-sensitive), and Remove empty lines drops blank lines, which would otherwise all sort to the top. If you need to remove duplicates but keep the original order, use Remove duplicate lines instead.

Is my data uploaded?

No. Sorting runs in your browser, so nothing you add is sent to gratistools.be. See the privacy page for details.