RUNWEBTOOLS
English

Sort Lines

Sort lines alphabetically, numerically, or in reverse.

Use on any page (bookmarklet)

Want Sort Lines without leaving the page you're on? Drag the button below to your bookmarks bar, then click it on any website to open Sort Lines right there — it runs entirely in your browser.

Sort Lines← drag this to your bookmarks bar

Use responsibly: a bookmarklet runs on whatever page you click it on. Avoid sensitive sites such as online banking, payment, or healthcare pages — you run it at your own risk. Everything is processed locally and no data is sent anywhere. See our Terms.

  1. Show your bookmarks bar if it's hidden — Ctrl+Shift+B (+Shift+B on Mac).
  2. Drag the button above onto the bookmarks bar.
  3. Open any website and click the bookmark — the Sort Lines panel appears in the top-right corner. Use ✛ to move it between corners, or ›/‹ to tuck it against the edge and pull it back out.
  4. Click the bookmark again (or the ✕) to close it.
Can't drag? Copy it and create a new bookmark with this as the URL:

Note: a few sites with strict security policies may block bookmarklets.

Examples

Alphabetical (A to Z)

Input

banana
apple
cherry

Output

apple
banana
cherry

Numeric

Input

10
2
1

Output

1
2
10

About this tool

This free online tool sorts lines of text alphabetically, numerically, or in reverse. Paste a list of names, words, numbers, or any line-separated data and get it back sorted, with options for descending order, true numeric ordering, and case-insensitive comparison. Everything runs in your browser with no upload.

How to use

  1. Paste your lines into the input box (or click Sample to try it).
  2. Pick options: Z to A for descending, Numeric for number values, Ignore case to fold capitals.
  3. Copy the sorted result from the output box.

Common uses

Alphabetizing name and word lists, ordering keywords, sorting numeric IDs, organizing CSV columns, and putting any list into a predictable order before sharing or importing it.

Frequently asked questions

Is this line sorter free?

Yes — it's a completely free online tool with no sign-up and no limits. Paste your lines and sort them instantly.

Can it sort in reverse (Z to A)?

Yes. Turn on 'Z to A' to sort in descending order instead of the default A to Z.

How does numeric sorting work?

With 'Numeric' on, lines are compared by their numeric value, so 2 comes before 10. Without it, 10 sorts before 2 because it compares character by character.

Can it sort case-insensitively?

Yes. Turn on 'Ignore case' so that Apple and apple sort together instead of all capitals coming first.

Does it remove duplicates while sorting?

No — sorting keeps every line. To drop repeats, run the Remove Duplicate Lines tool first or after sorting.

Is my text uploaded anywhere?

No. Sorting happens in your browser with no upload, so your data never leaves your device.

Learn more

Related tools