Text & String Utilities100% Client-Side

Reverse the Order of Text Lines

Paste a list to reverse the order of its lines. The bottom line becomes the top one and the remaining lines follow in reverse sequence. The tool retains the original text inside each line, including indentation and punctuation. This is useful for viewing an existing list in the opposite order when sorting alphabetically or numerically would change the relationship between its records.

Input
16 chars•3 lines
Output

How to Use the Reverse the Order of Text Lines Online

  1. 1Paste the full block with one entry per line.
  2. 2Compare the first output line with the last input line.
  3. 3Check where blank rows moved, particularly if the source ended with a newline.
  4. 4Copy the reordered block or reverse it again to return to the original line order.

Input & Output Examples

The same three phrases appear in the opposite line order.

Input Sample
north gate
east gate
south gate
Expected Output
south gate
east gate
north gate

The indentation stays with bottom and the blank row remains between the two entries.

Input Sample
top

  bottom
Expected Output
  bottom

top

Practical Developer Workflows

  • Read an existing list from newest to oldest when it was recorded oldest first.
  • Reverse a plain-text sequence for a test of ordered records.
  • Move footer rows to the top temporarily while keeping each row's contents intact.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Each complete line stays readable as entered. Only its position changes. Use Reverse Text and choose its per-line mode when you need to reverse the characters inside each line while leaving the rows in place.

Explore Other Tools

12 suggested tools

View all tools