Reverse the lines

Paste a multi-line text and reverse the order of the lines, from last to first.

The real case: reversed chronological order

Almost everything that writes itself puts the most recent thing on top: chats, a program's logs, notifications, an order's history. When you have to read that text as a story, or paste it into a report, the right order is the other one. Reversing the lines is the quickest way: no sorting, no dates to interpret, just the current order flipped, from the last line to the first.

Why this isn't sorting

Sorting looks inside the lines and decides which comes first: alphabetically, by number, by length. Here nothing is looked at, it's just flipped. The difference shows when the lines aren't sorted already: if the starting text is a jumble, the result is a jumble backwards. If what you need is a real order, alphabetical, numeric or by length, pick it in the menu above: they're the same as in Sort lines.

Mind the empty lines

Empty lines are lines too and get flipped along with the rest, so the spacing between blocks travels with the text. The final line break doesn't: if the text you pasted ends with a line break, that isn't an extra empty line but the end of the last line, and it stays at the bottom afterwards instead of turning into an empty line at the top. If empty lines bother you, remove them with Remove empty lines.

Nearby tools

To flip the words inside each line, instead of the lines among themselves, or to flip the characters, there is Reverse text. To put the lines from shortest to longest Sort lines by length, and to number them once they're back in order Add line numbers.

Related tools