How to Reverse a List — Online, in Code and in Spreadsheets

Reversing a list flips the order of items so the last becomes first and the first becomes last. It is a simple operation that comes up more often than expected — reversing a timeline from oldest-first to newest-first, flipping a ranked list from bottom-to-top, reversing the output of a tool that delivers results in the wrong order, or simply checking what a list looks like in reverse.

Reverse any list instantly with our free Reverse List tool. For alphabetizing instead of reversing, use our List Alphabetizer. For randomising the order instead, use our List Randomizer. For reversing the letters within each word rather than the order of lines, use our Reverse Letters tool.

Reversing a List in Different Environments

Browser Tool

The fastest method for a one-off task — paste your list into the Reverse List tool, click reverse, copy the result. No software, no code, no spreadsheet required.

Excel

Excel has no built-in reverse function for lists. The standard workaround: add a helper column with sequential numbers (1, 2, 3...), then sort by that column in descending order. This reverses the list using the original row numbers as a sort key. Delete the helper column when done. Alternatively, use the formula approach: in cell B1 enter =INDEX($A$1:$A$10, ROWS($A$1:$A$10)+1-ROW(A1)) and fill down — this pulls items from column A in reverse order.

Google Sheets

Use the SORT function with a helper column: add numbers, sort descending. Or use the array formula approach: =SORT(A1:A10, ROW(A1:A10), -1) — this sorts by row number in descending order, effectively reversing the list.

Command Line

Unix/Linux/Mac: tac filename.txt reverses the line order (tac is cat backwards). On Mac where tac is not available: tail -r filename.txt achieves the same result. Windows: No built-in command. Use PowerShell: Get-Content file.txt | Sort-Object {[int]$_.ReadCount} -Descending (or pipe through a PowerShell reverse function).

Programming

Python: my_list[::-1] creates a reversed copy. list(reversed(my_list)) is equivalent. my_list.reverse() reverses in place. JavaScript: myArray.slice().reverse() creates a reversed copy (slice prevents modifying the original). myArray.reverse() reverses in place. Both in-place and copy versions are useful depending on whether you need the original order preserved.

Reverse any list instantly — paste your list and get it flipped in one click

Try Reverse List Free →

Frequently Asked Questions

Reversing flips the existing order of items regardless of their content — the last item becomes first, the second-to-last becomes second, and so on. Descending sort reorders items by their content (alphabetically Z to A, or numerically largest to smallest) regardless of their current position. A list ['banana', 'apple', 'cherry'] reversed is ['cherry', 'apple', 'banana']. Sorted descending is ['cherry', 'banana', 'apple']. The results are different.
To reverse a linked list, change each node’s pointer so it points to the previous node instead of the next node. In programming, this is usually done by tracking three pointers: previous, current, and next. After processing all nodes, the previous pointer becomes the new head of the reversed linked list.
You can reverse a list by placing the last item first, the second-last item second, and continuing until the original first item becomes last. With an online list reverser tool, simply paste your list, click reverse, and copy the reordered result.
To reverse a list in Excel, add a helper column next to your list with numbers in order, such as 1, 2, 3, 4. Then sort that helper column from largest to smallest. Your list will be reversed from bottom to top.
If you want the content reversed but renumbered correctly, reverse the content first (ignoring numbers), then renumber from 1. If you want the numbers themselves reversed with their content (item 10 becomes item 1 with its original content), reverse the full lines including numbers and then update each number sequentially. Our Reverse List tool reverses the full lines as-is — update numbering manually or with a spreadsheet formula after reversing.
Not directly — Word has no built-in list reverse function. The workaround: copy the list to a text editor or spreadsheet, reverse it there, then copy back into Word. Alternatively, number your list items, select the list, go to Table → Sort, and sort by the number column in descending order using the Sort feature (it works even on non-table lists if you select them first).
No. Reversing flips the entire order. Rotating moves items from one end to the other — a rotation by 1 takes the first item and moves it to the end, shifting everything else up. ['a','b','c'] rotated by 1 is ['b','c','a']. ['a','b','c'] reversed is ['c','b','a']. Both are common operations in data processing but they produce different results.
Scroll to Top
Checker Tools