Reverse Line Order

Flips the order of the lines in your text, so the last line becomes the first and the first becomes the last. Use it to turn a list around, read a log with the newest entries on top, or reverse a numbered sequence.

Up to 1 MiB.

How to use the Reverse Line Order

  1. Paste your text. The line order is reversed as you type: the last line comes first.
  2. Copy or download the result.

Rules applied

  • Text inside each line is not changed.
  • Empty lines are kept in their reversed position and the line ending style is preserved.

Limitations

Worked examples

Reverse a list

Input

first
second
third
fourth

Result

fourth
third
second
first
Reverse lines with an empty line

Input

Monday
Tuesday

Wednesday

Result

Wednesday

Tuesday
Monday

Practical uses

  • Putting a log in newest-first order

    An administrator has a log written with the oldest entries first. They paste it into the tool and the line order is reversed as they type. The latest entries now appear at the top, ready to copy or download.

  • Reordering a list

    A teacher has a ranked list that runs from first to last and wants to show it the other way round. They paste it into the tool and the line order is reversed as they type. The list now runs from last to first, with the text of each line left unchanged.

  • Reversing a timeline

    A writer has a list of events in date order and wants to show the newest first. They paste the list and reverse the lines, which keeps empty lines in their reversed positions. The new order suits a page that shows the latest news at the top.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.