Document tools Free · No sign-up · No upload

Sort Lines of Text

Put a list in order in one click: alphabetical, numeric, by length, reversed or shuffled. Your list is sorted on your device and never uploaded.

  • Free, no sign-up
  • 8 sort orders
  • Text stays on your device
  • Lines, commas or spaces
Text
  • Runs on your device. Files are never uploaded.
  • Free and unlimited. No sign-up, no watermark.
Private: processed in your browserNo upload waitIN: Text → OUT: Sorted
How was Text sorter?
How it works

Text sorter in three steps

No account, no email, no waiting for an upload.

  1. STEP 01

    Paste your list

    One item per line, or switch to items separated by commas or spaces.

  2. STEP 02

    Choose the order

    A to Z, Z to A, natural, by number, shortest first, longest first, reverse, or shuffle. Tick remove duplicates or empty lines if you want.

  3. STEP 03

    Copy the sorted list

    The note shows how many items were sorted.

What you get

What Text sorter does, and what it doesn't

We'd rather tell you up front than surprise you after the download.

What you get

  • Alphabetical both waysA to Z and Z to A use your language's letter order, with accents handled.
  • Natural orderItem 2 comes before item 10, as people expect.
  • Sort by number in the linePulls the first number from each line, including 1,200 and 3.5, and sorts by it.
  • By lengthShortest first or longest first.
  • Reverse or shuffleFlip the current order or mix the list at random.
  • Clean while sortingIgnore case, remove duplicates and drop empty lines in the same pass.

Good to know

  • Lines without a number come lastIn number sort, lines that contain no number sort after the others.
  • Shuffle is random each timeRun it again for a different order. It cannot be repeated exactly.
  • Columns need another toolTo sort a table by a column use Sort CSV rows.
Private by design

Your documents never leave your device

The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.

Typical online tool upload

Your device→Their server→Your device

Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.

Mediaextractr no upload

Your device does all the work

The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.

Made for real work

When people use Text sorter

Alphabetize a bibliography

Put references or glossary terms in order.

Organize contacts

Sort names or email addresses and drop duplicates.

Draw names at random

Shuffle a list for fair turns or raffles.

Tidy imports and configs

Sort lines of code or settings to make them easy to scan.

Compare

Mediaextractr vs typical upload tools

MediaextractrPrivateTypical upload tools
Your file is uploadedNeverYes
Sign-up neededNoOften, after a few files
Daily file limitNoneOften 1–2 free files
WatermarkNeverSometimes
Wait for upload & downloadNoYes
Speed on very large filesDepends on your deviceDepends on their servers

Picking an order

Plain alphabetical order puts item 10 before item 2, because it compares character by character. Natural order fixes that by reading the numbers as numbers, which is what you want for file names and numbered lists.

Sort by number is different again: it ignores the words and uses the first number in each line, such as a price or a score.

Other list formats

The Items are setting changes what is sorted:

  • One per line: the default for lists.
  • Separated by commas: for lines like red, green, blue.
  • Separated by spaces: for a row of words or tags.

Tidy first, sort next

Stray spaces can change the order. Run Remove extra spaces first, and use Remove duplicate lines if you need to keep the original positions of the first copies.

FAQ

Questions, answered

How do I sort a list alphabetically online?

Paste one item per line, choose A to Z, and copy the result.

Is my list uploaded?

No. Sorting happens in your browser.

How do I sort numbers properly?

Use Natural for numbered names, or By number in the line to sort by the first number in each line.

Can it remove duplicates while sorting?

Yes. Tick Remove duplicates.

Can I sort comma-separated items?

Yes. Set Items are to Separated by commas.

Does it work on Android and iPhone?

Yes. It runs in any modern mobile or desktop browser.