Reverse Lines

Flip the order of all lines in your text so the last line becomes the first, while leaving the content of each line exactly as it was. Useful for reversing chronological log files, inverting numbered lists, and restructuring pasted data without any manual rearranging. Nothing is sorted — the existing order is simply inverted.

All processing happens in your browser. No data is sent to any server.

Frequently Asked Questions

What does reversing lines do?
It flips the order of all lines so the last line becomes the first and vice versa. The content of each individual line is unchanged.
Is this the same as sorting?
No. Reverse lines only inverts the existing order — it does not sort alphabetically or numerically.
Can I reverse just a subset of lines?
The tool processes the entire text block. To reverse a subset, paste only those lines, reverse them, then paste the result back into your original text.

Related Tools