Sort Lines

Sort lines alphabetically, by length, or shuffle them.

How to use this tool

  • Paste or type lines (one per line).
  • Pick sort mode, direction and case sensitivity.
  • Copy the sorted output.

How it works

The line array is sorted by the selected comparator (string, reverse, length, numeric, shuffle) and rejoined.

Tips

  • Use natural/numeric sort for versioned or numbered items.
  • Shuffle respects the 'one per line' structure, handy for assignments.

Limitations

Sorting is stable but locale-collation varies per browser.

Frequently asked questions

How are lines sorted?

Alphabetically (case-insensitive or sensitive), reversed, by length, or shuffled randomly.

Does it handle numbers?

Numeric lines can sort numerically with the dedicated mode so 10 lands after 2.

Is sorting private?

Everything runs locally — your list never leaves the device.