Reverse Lines

Reverse the order of lines, so the last line becomes the first. The content of each line stays exactly the same.

Processed in your browser. Nothing you type is uploaded.

How it works

The text is split at line breaks, the list of lines is reversed, and the lines are joined again. No sorting or trimming happens.

Rules this tool follows

  • Empty lines are kept and move with everything else.
  • A trailing line break at the end of the input becomes an empty first line in the output.

Example

Input

2026-09-01 Started
2026-09-02 Draft sent
2026-09-05 Approved

Output

2026-09-05 Approved
2026-09-02 Draft sent
2026-09-01 Started

Common uses

  • Showing the newest log entries or changelog items first.
  • Flipping lists exported in the wrong order.
  • Reversing steps to write undo instructions.

Limitations and notes

  • This reverses line order, not the characters within lines.

All text cleaners