Skip to content
Zesona
Sort Lines AlphabeticallyLocal

Sort Lines Alphabetically

Sort lines using proper locale collation, so accented letters sort next to their base letter instead of after Z.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

0 characters

Processed entirely in your browser. Nothing is uploaded.

file2 before file10 instead of file10 before file2.

Try an example

Fill in Your text to continue.

Enter your input to see the result

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Paste your list or document into the box, one item per line.

  2. 2

    The processed text appears below. Use Copy to put it on the clipboard or Download to save it as a .txt file.

Questions about Sort Lines Alphabetically

Why not just sort by character code?

Because code point order puts every capital letter before every lowercase one (so Zebra sorts before apple) and pushes accented letters after Z entirely. Locale collation interleaves them the way a dictionary does. It also differs per language: in Swedish ä sorts after z, while in German it sorts with a.

What does natural ordering do?

It compares runs of digits as numbers, so file2 comes before file10. Without it the comparison is purely textual and file10 sorts first because 1 precedes 2.

Is my text uploaded anywhere?

No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your text, nothing is written to a server log, and the tool keeps working with your connection switched off. You can confirm it yourself in the browser’s network panel.

Does the Sort Lines Alphabetically work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Sort Lines Alphabetically keeps working with the network switched off and nothing is ever sent to a server.

Is anything I enter into the Sort Lines Alphabetically uploaded or stored?

No. The Sort Lines Alphabetically runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.

Other tools you might reach for next.

Turn a line-separated list into a CSV row, quoting values that contain the delimiter, quotes or newlines.

BrowserText tools

Split a CSV row into a line-separated list, correctly unwrapping quoted fields.

BrowserText tools

Count words, characters, sentences, paragraphs and UTF-8 size, with all three definitions of "character" reported separately.

BrowserText tools

Count characters three ways - UTF-16 code units, Unicode code points and visible grapheme clusters - plus the UTF-8 byte size.

BrowserText tools