Text toolsSort lines

Sort lines

Reorder line-based text alphabetically, numerically, by length, or in reverse order.

Ready to clean
Your text never leaves this device
0 characters · 0 words
0 characters · 0 words
A focused cleanup

How to use sort lines

Reorder line-based text alphabetically, numerically, by length, or in reverse order. The change is deterministic, so the same input and settings always produce the same output.

  1. 1
    Paste your source text

    Place the original text in the left editor. You can use the example first to see the tool in action.

  2. 2
    Choose the behavior

    Adjust the controls below the editor. Each option affects only the current browser session.

  3. 3
    Clean and review

    Select Clean text, compare the result, then copy or download it when you are satisfied.

When this tool is useful

Alphabetizing references
Ordering numeric data
Sorting lists by length

What it changes and preserves

PasteScrub applies only the transformations represented by the visible controls. The exact content of every retained line. It does not paraphrase, summarize, translate, or send the content to a language model.

Good to know

Sort lines questions

No. The transformation runs locally in your browser. The source and result are not sent to PasteScrub servers.