Reverse List Order

Paste a list and the last item lands first, live as you type. Split on lines, commas or blank lines, fix the numbering, and hold a header row in place. Your text stays in your browser.

Flip a list in three moves

  1. Paste your list or open a text file. The flipped copy appears on the right as you type, with no button to press.
  2. Pick how items split. New line fits most lists. Choose Comma for red, green, blue, or Blank line to move whole paragraphs.
  3. Check both ends. The strip under the boxes prints the new first item and the new last item. Then copy or download.

What Load sample shows about numbering

Numbered lists catch people out. Load sample fills the box with a six-item ranking of Toolexe pages, with a blank line after item 3. Flip it and the typed numbers travel with their items, so the list counts down from 6 to 1. A countdown wants exactly this. A list meant to read 1, 2, 3 from the top does not. The Numbers menu settles it.

Leave as typed
6. Hex to String
5. Text Difference Checker
4. Lorem Ipsum Generator
3. Case Converter
2. Word Counter
1. JSON Beautifier
Renumber from 1
1. Hex to String
2. Text Difference Checker
3. Lorem Ipsum Generator
4. Case Converter
5. Word Counter
6. JSON Beautifier
Add 1. 2. 3.
1. 6. Hex to String
2. 5. Text Difference Checker
3. 4. Lorem Ipsum Generator
4. 3. Case Converter
5. 2. Word Counter
6. 1. JSON Beautifier

Renumber from 1 rewrites a number at the start of an item when a period, bracket or colon and a space follow, so 3. Case Converter and 3) Case Converter both qualify. 3.14 is pi and 10:30 standup stay as typed. Add 1. 2. 3. stacks a second number on a numbered list, as the third column shows, so save this setting for plain lists.

Reversing is not sorting Z to A

Reverse ignores what an item says. Only position counts. Sort Z to A reads the text and builds a new order. The two agree only when the list started in A to Z order.

OriginalReversedSorted Z to A
PearKiwiPear
AppleMangoMango
MangoAppleKiwi
KiwiPearApple

Dates show the gap best. A log written oldest first turns newest first with a flip, even when a date format like 3 Mar 2026 defeats a text sort. For an alphabetical result, use Sort Alphabetically instead.

Lists worth flipping

Logs and chat exports

Most exports run oldest first. Flip one to read the latest entry at the top. Multi-line entries need a blank line between them and Split on set to Blank line, or each entry ends up upside down.

Countdown posts

Write a top 10 from best to worst, then flip with Leave as typed. The post opens on number 10 and builds to number 1.

Rollback checklists

Undo steps run in the opposite order to release steps. Flip the release list for a first draft, then rewrite each step as its undo.

CSV rows with a header

Tick Hold first item so column names stay on line 1 and only the data rows flip. For a file already open in a spreadsheet, the Excel formula below keeps the result beside your data.

Reverse a list in Excel, Word or code

A one-off list goes fastest here. For a job you repeat, build the flip into your own file or script. We ran the Bash, PowerShell, Python and JavaScript lines below against the sample list.

WhereMethodWatch for
Excel 365=SORTBY(A2:A11,ROW(A2:A11),-1)Needs Excel 2021 or 365. In older versions, fill a helper column with 1, 2, 3, then sort largest to smallest.
Google Sheets=SORT(A2:A11,ROW(A2:A11),FALSE)The result tracks the source range, so paste as values before deleting the originals.
WordTable with a number column, then Layout, Sort, DescendingWord has no reverse command. Pasting the list here takes less time.
Bashtac list.txtShips with Linux. On macOS use tail -r list.txt.
PowerShell$l = @(gc list.txt); [array]::Reverse($l); $lReverse changes the array in place and returns nothing.
Pythonitems[::-1]Returns a new list. items.reverse() changes the original and returns None.
JavaScriptitems.toReversed()Returns a new array. items.reverse() changes the original, a common source of bugs in shared state.
Vim:g/^/m0Flips every line in the file. Prefix a range to limit the flip.

Where this page falls short

Reverse list order questions

How do I reverse a comma-separated list?

Paste the list, then set Split on to Comma. The result keeps your spacing, so red, green, blue comes back as blue, green, red. Set Join with to New line for one item per line.

How do I keep a CSV header row at the top?

Leave Split on at New line and tick Hold first item. The header stays on line 1 and every row below flips.

Can I get my original order back?

Your input box never changes, so the original stays there. To undo from a saved result, paste the result in and flip again. Dropped blank lines and trimmed spaces stay gone.

How do I reverse the letters or words on a line?

This page moves whole items and leaves the text inside each one alone. Use Reverse String for letters. To flip the words on one line, set Split on to Space here.

Is there a size limit?

Open .txt accepts files up to 5 MB. Pasted text has no fixed ceiling, though a phone slows down well before a desktop does. Past a few hundred thousand lines, tac in a terminal is the better choice.

Does my list leave my browser?

No. The flip runs on your device. Copy page link puts a short list after the # sign in the address, which browsers keep out of page requests. Anyone holding the link reads the list, so skip it for private data.