Text

Reverse Lines

Reverse line order.

How to use Reverse Lines

Reverse Lines — Reverse the order of lines. The last line becomes the first. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in Input. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is Reverse Lines used for?

Use it to read a log from the bottom, or to undo a list that was appended newest-last.

How do I use the free online Reverse Lines tool?

Fill in Input. This field is required. Click Run and copy the result under the form.

What can I paste or upload into Reverse Lines?

Paste the text. Lines are split on newline characters. The characters inside each line stay in order.

What output does Reverse Lines give me?

The lines in reverse order. This does not reverse the characters inside a line; Reverse String does that.

Is Reverse Lines free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

What happens to a trailing newline?

A final empty line created by a trailing newline is a line, so it moves to the top. Trim it first if you do not want a leading blank.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.