Reverse Line Order

Flip a list from first-to-last into last-to-first.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use Reverse Line Order

  1. Paste your source text in the input box.
  2. Select Convert to generate the output.
  3. Review the output before copying it.

How it works

Flip a list from first-to-last into last-to-first. Split at line breaks, reverse the sequence of whole lines, and rejoin it.

Formula or processing rules

Split at line breaks, reverse the sequence of whole lines, and rejoin it.

Worked example

The list first, second, third becomes third, second, first.

Example text lengths in UTF-16 code units
Input · 18
Output · 18
Worked example
MeasureValue
Source textfirst second third
Resultthird second first

Pros and cons

Pros

Flip a list from first-to-last into last-to-first. The sample provides an immediate check of the expected output.

Cons

The letters inside each line stay in their original order. Empty lines are also reversed.

Troubleshooting

Check the input format and compare your case with the built-in sample. The letters inside each line stay in their original order. Empty lines are also reversed.

Frequently asked questions

How do I use the text I get back?

Copy the output into the document, list, or compatible tool where you need it.

How does the transformation work?

Split at line breaks, reverse the sequence of whole lines, and rejoin it.

Can I try a sample first?

The list first, second, third becomes third, second, first.

What should I check before using the result?

The letters inside each line stay in their original order. Empty lines are also reversed.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.