About the Reverse Lines
Reverse the order of lines in any list or block of text: the last line comes first and the first line ends up at the bottom. The words inside each line stay exactly as written. A chat export or log flipped this way has the newest entry on top, and a timeline reads from the latest date back. It works on numbered lists too.
The flipped list appears in the Result box as you paste, and Copy puts it on your clipboard. Your text is reordered in the browser and isn't sent anywhere.
How the line order is flipped
Your text is split at every line break into a list of lines. That list is turned upside down and the lines are joined again with line breaks. Nothing inside a line is changed: spaces, punctuation, numbers and emoji stay where they were.
Every line takes part, including empty ones. A blank line between two groups stays between them, now in mirrored position. If the text ends with a line break, the empty line after it is counted too, so the reversed list starts with a blank line; delete it or remove the final newline before pasting.
Reversing text is a different job (the characters within each line are written backwards), and so is sorting, which puts lines in alphabetical order. Here only the position changes: line 1 becomes the last line, line 2 the second to last, and so on.
For n lines: new line k = old line (n + 1 − k)
Assumptions and limits
- Lines are defined by real line breaks. A long paragraph that only looks like several lines because it wraps on screen is a single line and won't move.
- Numbers at the start of lines are not renumbered. A list numbered 1 to 10 reads 10 down to 1 after flipping, which is often exactly what you want, but run Add Line Numbers on the result if you need 1 to 10 again.
- A trailing newline in the input produces a blank first line in the output.
- Text inside each line is left as it is; to write the characters backwards use Reverse Text instead.
Worked examples
Reverse a list of steps
Three steps typed in order, with a final Enter at the end, flip to Step 3, Step 2, Step 1. Notice the empty first line, which comes from the trailing line break.
Step 1 Step 2 Step 3 (empty line) → (empty line) Step 3 Step 2 Step 1
Newest first in a log or chat export
A server log of 500 lines runs from 09:00 to 17:45. After reversing, the 17:45 entry is line 1, so the latest events are the first thing you read without scrolling to the bottom.
Flip a playlist or ranking
Written from number 1 down, a top-10 list becomes a countdown from 10 to 1 for a video script or a blog post. Each title keeps its own wording and number.
Reverse lines compared with similar tools
| Input lines | Reverse Lines | Reverse Text | Sort Lines |
|---|---|---|---|
| cat / apple / bird | bird / apple / cat | drib / elppa / tac | apple / bird / cat |
| What changes | Line order only | Characters and line order | Line order by A to Z |
| Text within a line | Unchanged | Written backwards | Unchanged |
How to use the Reverse Lines
- Paste your list, one item per line. Replace the sample sentence in the Input Text box with the lines you want to flip.
- Look at the reversed order. The Result box shows the last line at the top. If the first line is blank, your input ended with an extra line break.
- Copy the flipped list. Press Copy to take the reversed lines to your clipboard, then paste them into your document, sheet or editor.
Frequently asked questions
How do I reverse the order of a list?
Make sure every item sits on a separate line, then paste the whole list here. The Result box shows the items bottom to top, each one unchanged, and Copy takes the flipped list to wherever you need it.
Does reversing lines change the text on each line?
No. Only the position of each line changes. A line reading "Order #1042 shipped" stays exactly that, it just moves from, say, the top of the list to the bottom.
Why is there an empty line at the top of my result?
Because your input ended with a line break, which creates an empty final line. When the lines are flipped, that empty line moves to the top. Delete it, or remove the last Enter from the input before reversing.
Can I turn a list upside down in Excel or Google Sheets with this?
Yes. Copy the column, paste it here, copy the reversed result and paste it back into the sheet. Each cell came in as one line and goes back as one line, so the values land in reverse order in the same column. Excel adds a line break after the last copied cell, so delete the blank line that then appears at the top first.
Is reverse lines the same as reverse text?
No. Reverse Text writes every character backwards, so "hello" becomes "olleh". Reverse Lines keeps the words readable and only changes which line comes first. For a list, a log or a timeline, that's usually the one you need.
This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.