Reverse Lines example 1
Input
line one line two line three
Output
line three line two line one
Reverses the order of the lines without changing the text inside them.
Text Tools
Review practical Reverse Lines examples so you can understand expected input, output, and common patterns faster.
Use this reverse lines tool to flip the order of line-based text without reversing the characters inside each line. It is useful for logs, lists, notes, exported data, and any multi-line content that should be viewed or reused from bottom to top instead of top to bottom.
Example pages are especially useful for text tools because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.
Input
line one line two line three
Output
line three line two line one
Reverses the order of the lines without changing the text inside them.
Input
apple banana orange
Output
orange banana apple
Useful for simple list reordering.
Fix: Use a text reverser if you want each line's characters flipped.
Fix: Remove empty lines first if you want a tighter result.
Fix: Use a sorting tool if the goal is alphabetical order instead of reversed position.
After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.
Open the main Reverse Lines page and test your own real input.