Sort lines
Reorder line-based text alphabetically, numerically, by length, or in reverse order.
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.
- 1Paste your source text
Place the original text in the left editor. You can use the example first to see the tool in action.
- 2Choose the behavior
Adjust the controls below the editor. Each option affects only the current browser session.
- 3Clean and review
Select Clean text, compare the result, then copy or download it when you are satisfied.
When this tool is useful
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.
Sort lines questions
No. The transformation runs locally in your browser. The source and result are not sent to PasteScrub servers.
The tool applies only the selected structural cleanup. The exact content of every retained line.
Yes. The editor keeps a short in-memory undo history while the page stays open. You can also edit the result directly.
Yes. The workspace adapts to mobile screens and supports copying the result to other apps.
Yes. The tool is free with no account, no sign-up, and no limit on how often you use it.