Skip to content

The text changes in this tab

Put the last line first

The line order is flipped. Characters inside a line stay.

A final empty line is a real line and moves to the top.

The work stays in this tab.

This tool runs in your browser. Turn on JavaScript to use it.

Reverse lines

The sample is fixed. It uses the same rule as the form.

Input
a b
Result
b a

How to use it

  1. 1Edit the text.
  2. 2Read the result beside it.
  3. 3Copy what you need.

Good to know

  • This is not a character reverse.
  • This page does not upload the text.
  • Text longer than one hundred thousand characters is rejected.

Questions

Does the result leave this browser?

No. The calculation finishes in the current tab.

What does this page leave out?

This is not a character reverse.

What if the input is huge?

Past one hundred thousand characters, the page stops and asks you to shorten it.

Related tools

  • Reverse the characters

    The characters are reversed in memory order of Unicode code points.

  • Sort lines descending

    Lines are ordered from Z toward A with the same English comparison as the ascending page.

  • Sort, trim, and count lines

    Lists in a text box are awkward to clean by hand. This page trims, filters, sorts, or reverses the lines, and always shows the counts.