kernos/Sort Lines

Text Tools / Sort Lines

Sort Lines

Sort the lines of a list alphabetically, by length, or randomly — instantly in your browser.

About Sort Lines

Sort Lines reorders a list — one item per line — alphabetically, by line length, or into a random shuffle. It's built for cleaning up lists pasted from spreadsheets, notes, or exports where the order matters: alphabetizing names, ranking items shortest to longest, or shuffling a list for a randomized order. Everything runs locally in your browser as you type; nothing you paste is ever sent to a server.

How to use it

  1. 1

    Paste or type your list

    Drop your list into the input above, one item per line.

  2. 2

    Pick a sort order

    Choose A → Z or Z → A for alphabetical order, Shortest first or Longest first to sort by line length, or Random to shuffle the lines.

  3. 3

    Adjust case sensitivity

    Turn on "Case sensitive" so uppercase and lowercase letters sort separately (uppercase before lowercase); leave it off to sort ignoring letter case.

  4. 4

    Copy the result

    The sorted list updates live below — use Copy result to grab it, or Clear to start over.

What it does

FAQ

Does sorting remove duplicate or blank lines?

No. Sort Lines only changes the order of your lines — use the Duplicate Line Remover or Remove Empty Lines tools first if you also want to clean those up.

Does Random give a different order every time?

Yes. Each time you select Random, or re-select it after editing your text, the lines are shuffled into a new random order.

Does this tool send my text anywhere?

No. All processing happens locally in your browser as you type. Your text is never uploaded, logged, or stored.

Related tools