Reverse Lines

Reverse the order of lines in your text. The last line becomes the first and vice versa.

Runs locallyInstantPrivate
Input
Output
Lines in reversed order will appear here…

What This Tool Does

Paste any multi-line text and the tool reverses the line order — the last line moves to the top, and the first line moves to the bottom. All other lines shift accordingly. Nothing is removed or modified; only the ordering changes. The result is instant and ready to copy.

When to Reverse Lines

  • Log files: Application and server logs are often written oldest-first. Reverse them to see the most recent entries at the top.
  • Chronological data: Timestamps, commit histories, and event lists exported newest-first can be reversed for chronological reading.
  • List reordering: Reverse a ranked list to see it from bottom to top without manually rearranging.
  • Alphabetical reversal: Sort a list with Sort Lines, then reverse to get Z-to-A order in one extra step.

Related tools