All tools

Sort lines

Put lines in alphabetical, numeric or random order, or reverse them, on your device. Free, with no account or uploads.

Put the lines of a list in order

A to Z puts numbers in order too (item 2 before item 10). Shuffle gives the same order for the same seed.

Nothing yet: paste, type or open a file.

This will

Paste a list first, one item on each line.

Order
A to ZZ to ABy numberShortest firstTurn upside downShuffle

In alphabetical order, numbers in order (2 before 10).

How it works and help
Everything happens in your browser. Nothing is uploaded or kept.

A little help along the way

Follow these steps. Every option is explained underneath. Everything happens in your browser; nothing you write is sent anywhere or kept.

  1. Put your text in the boxPaste or type it, or press Open file for a .txt, .md or Word (.docx) file, or drop the file on the box. A line under the box says, as you write, how many words it has and how long it takes to read and to say aloud.
  2. Say what you want to doChoose an answer to “What do you want to do with your text?”: Count it, Change capitals, Compare two texts, Tidy it up, Sort lines, Find and replace, or Placeholder text. Its panel opens beside the text on a computer and under it on a phone.
  3. Count itSee words, characters with and without spaces, sentences, paragraphs and lines. Turn on Check a limit to see how much is left of an X post, a text message, a search description or a word target you set.
  4. Change capitalsChoose UPPER CASE, lower case, Sentence case or Title Case (with its style guide: APA, AP, Chicago or MLA). The panel shows the first line as it will be, and the button changes the whole text.
  5. Compare two textsPaste the first version in the first box and the second in the second. The page says how many words were added and taken out and shows both texts with what was added underlined and what was taken out struck through, side by side or in one.
  6. Tidy, sort, or find and replaceEach panel says first what it will do (“Take out 14 line breaks and 3 double spaces”), then one press does it. Preview the change shows the text before and after with every change marked.
  7. Undo, copy or downloadEvery change is one step: the Undo arrow puts the text back and the Redo arrow does the change again. Copy text puts the text on the clipboard, and the download arrow saves it as a .txt file.

Questions people ask

Why does item 2 come before item 10?
A to Z reads numbers inside lines as numbers, as people expect, so 2 comes before 10. Letters follow the alphabet of your browser's language, so É sorts with E.
Can I shuffle a list the same way twice?
Yes. Shuffle uses a seed you can set under More options: the same list and seed always give the same order, and another seed another order.
What happens to empty lines?
They are taken out when lines are sorted, and the page says how many. Under More options you can keep them, at the end.

This page is the Text tools, opened for this one job; every other tool it has is one press away. Each of its settings is explained on the Text tools's own page.

Read the step-by-step guide