Reverse lines

Here you can reverse a list of lines. Put your list into either text area. When you edit one of the text lists, the other will be updated automatically.

Reversed list

clear list

How Reverse List Works & When to Use It

Reversing a list flips the order of lines (bottom-to-top) or items in a single click. It is a small utility that comes up surprisingly often when working with chronological logs, stack traces, migration histories, and spreadsheet exports.

Common Developer & Data Workflows

  • Chronological Log Inspection: Many log viewers and tail outputs show newest entries at the bottom while dashboards display newest-first (or vice versa). Pasting a snippet here flips it into chronological order immediately.
  • Reversing Stack Traces & Call Chains: Flip Python, PHP, or JavaScript call stacks so the root caller appears at the top and the failing leaf frame at the bottom.
  • Undo / Rollback Script Order: Reverse a list of database migration filenames or DROP/DELETE statements when preparing a rollback sequence.
  • Chaining with Other Text Tools: After reversing your list, you can deduplicate entries with Unique List or quote/wrap every line with Prefix / Suffix / Wrap Lines.

Frequently Asked Questions

  • Does Reverse List preserve line content? Yes. Only the order of lines is reversed; the characters inside each line remain untouched.
  • How is this equivalent to CLI tools? On Linux/macOS, tac file.txt (or tail -r file.txt on macOS) reverses lines in a file. This tool gives you the same result in the browser with no terminal needed.
  • Is my list uploaded anywhere? No, reversal runs 100% client-side in JavaScript.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy