ToolPad
Runs locally in your browser. Nothing you paste is sent to a server.

Sort Lines

Sort lines of text alphabetically, numerically, or by length. Runs locally in your browser.

Runs locally in your browser. Nothing you paste is sent to a server.

Input

0 chars · 0 words · Size: 0 B
1

Output

Tip: You can verify in DevTools → Network that nothing is uploaded.

Sorting options

Sort method
Sort order
Text handling
Line cleanup

About this Line Sorter

Use this tool to sort lines of text alphabetically, numerically, or by length. Choose ascending or descending order, handle case sensitivity, and clean up your text by removing empty or duplicate lines. Everything runs locally in your browser — nothing you paste is sent to a server.

Sort methods
  • Alphabetical — sort by text order
  • Numerical — sort by numeric value
  • By length — sort by line character count
Tips
  • Enable Auto to sort as you type
  • Trim lines removes leading/trailing whitespace
  • Remove duplicates works after sorting

FAQ

Is my text uploaded to a server?

No. Sorting happens locally in your browser. Nothing you paste is sent to a server.

How does numerical sorting work?

Lines with valid numbers are sorted numerically. Non-numeric lines are sorted alphabetically and placed after numeric lines.

What happens with duplicate lines?

When "Remove duplicate lines" is enabled, duplicates are removed after sorting, keeping only the first occurrence of each unique line.

Can I upload large files?

Yes, but extremely large files may be slow depending on your device. The current limit is 5MB.

Can I use it offline?

After the page loads once, it will typically keep working if you go offline (unless you hard refresh with no cache).