Reverse a list

Paste a list and get it back in reverse order - last line becomes first, first becomes last. No options, no reordering within items, no content changes. Running reverse twice gets you back to the original.

Input
Ready
Output
Live

A one-pass list reverser

The tool splits on newlines, reverses the resulting array with `Array.reverse`, and joins back with newlines. That is the whole operation. Blank lines are preserved at their original (now-reversed) positions; leading/trailing whitespace inside items stays untouched.

This is self-inverse: reversing twice gets you back to the original input. That is why the tool has no "Need the reverse?" link in the hero - it would just point at itself.

For reversing the characters inside each item (as opposed to the list's order), use Reverse item text. This tool reverses the position of lines; that one reverses the characters within each line.

How to use reverse a list

  1. 1Paste your list into the input panel
  2. 2Output is your list with line order flipped - no settings needed
  3. 3Copy or download the reversed list
  4. 4Reversing twice returns the original input

Keyboard shortcuts

Drive ListShift without touching the mouse.

Shortcut Action
Ctrl ZUndo last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor
EscExit fullscreen
Ctrl KOpen the command palette to jump to any tool
Ctrl SSave current pipeline draft Plus
Ctrl PRun a saved pipeline Plus

What this tool actually does

No options - just a line-order reversal.

Splits on newlines, reverses, rejoins

The whole implementation is three steps: `input.split("\n")`, `reverse()`, `join("\n")`. No parsing, no trimming, no case changes. What goes in comes out reversed.

Preserves blank lines in place

A blank line in the middle of your input stays as a blank line at its new (reversed) position. If that matters, flatten first with Remove empty items before reversing.

Self-inverse operation

Reversing twice produces the original list. The `reverse` field in the detail record is set to `null` because there is no separate "opposite" tool - running reverse again IS the opposite.

Does not reverse characters within items

This flips the order of lines. Characters inside each line are unchanged. For character-level reversal per item, see Reverse item text.

No configuration

Deliberately optionless - the operation is a single specific thing. If you want different reverse-ish behaviours (reverse pairs, shuffle, rotate), use Shuffle (reverse-pairs mode) or Rotate.

Worked example

Four lines reversed - last becomes first.

Input
First
Second
Third
Fourth
Output
Fourth
Third
Second
First

Behavior reference

No user options. These are the fixed rules.

Rule What it does Example
Line-order reversal Last line becomes first; first becomes last `A B C D` → `D C B A`
Blank lines preserved A blank line at position N ends up at position `length - N - 1` Gaps in the input reappear at their reversed positions
Items emitted verbatim Character content of each line is unchanged `Fourth` stays `Fourth`; only its position moves
Self-inverse Applying reverse twice gives the original list No separate "undo" tool - reverse again IS the undo

FAQ

What is the difference between this and reversing the characters in each item?
This tool flips the order of lines - `A / B / C` becomes `C / B / A`. For reversing the characters inside each line (so `Apple` becomes `elppA`), use Reverse item text.
Are blank lines preserved?
Yes - a blank line at position N ends up at position `length - N - 1` in the output. If you want blanks dropped before reversing, run Remove empty items first.
Why does this tool have no options?
Reverse is a specific, unambiguous operation - flip the line order. Variants like reverse-in-pairs, rotate, or shuffle live in other tools (Shuffle, Rotate) because they produce different outputs.
What is the opposite of reverse?
Reverse itself. Apply the tool twice and you get the original input back. That is why the "Need the reverse?" link is omitted from the hero - it would just point back here.
Will it reverse a list of numbers correctly?
Yes - the tool treats every line as opaque text, so numeric content reverses the same way alphabetic content does. `1 / 2 / 3` becomes `3 / 2 / 1`.