Reverse line order

Move the last line to the first position and continue in reverse order, without changing characters inside a line.

Runs in your browser. Your text is not uploaded.

Worked example

Before

first
second
third

After

third
second
first

The three line positions are reversed and the ending LF remains.

Exactly what this changes

  • This operation reverses only the parsed line sequence. Each line is treated as one intact value, so words, punctuation, emoji, combining characters, tabs, and right-to-left text remain in their original character order.
  • Every line is preserved, including duplicates, empty lines, and whitespace-only lines. PlainSift does not sort or compare values while reversing, which makes the result independent of language and letter-case rules.
  • LF, CRLF, and CR sources are accepted through the shared parser, and operational output uses LF. The source’s final line terminator state is retained even though the line positions themselves change.

Options and edge cases

  • There are no comparison settings because reversal is positional. Run the operation a second time to restore the original line order, provided no other pipeline step changes the list between reversals.
  • Place Reverse lines after a sort to invert the sorted sequence exactly, or choose the sort tool’s descending option when you want its defined descending comparison instead.

Edge case: A visually blank first or last row is still a real line and moves with the sequence. Character reversal is intentionally not offered by this list-focused operation.