Reverse Lines

Paste text and the lines come back in reverse order, last line first, as you type. Each line stays exactly as written; only the order flips. Useful for chat exports and logs that list the newest entry last, or a ranking you need from the bottom up.

What to do

The last line comes first. Each line stays as it is.

Your text
Result
Lines in
0
Lines out
0
Blank lines in
0
Longest line
0

Everything runs in your browser. What you type never leaves this device.

Features

  • Last line becomes the first, instantly

  • Each line is kept exactly as written

  • Windows and Mac/Linux line endings both work

  • Blank lines stay in their mirrored place

  • Copy or download the result

  • Runs in your browser: your text is never uploaded. Free, no signup

Why flip a list

Logs and chat exports

Read the newest entries first when a file lists them oldest to newest.

Rankings and countdowns

Turn a top-10 list into a countdown from 10 to 1.

Undoing a wrong sort

If a list came out Z-A instead of A-Z, reversing fixes it without a re-sort.

Reverse lines, reverse text or sort descending

Which one you need

  • Reverse lines (this page) keeps every line intact and flips their order.
  • Sorting Z-A orders lines by their content. Use Sort Lines when the current order does not matter.
  • To randomise the order instead, use Shuffle Lines.

A trailing newline

A single newline at the very end of your text does not count as an empty last line, so it will not appear as a blank first line after reversing.

Other line tools

Reverse Lines - FAQ