Text & writing ● Local processing

Reverse Line Order

Reverse line order, including blank lines, while keeping the original line breaks in place.

Preparing tool…
Try a small example

Try a small example

Load the example into an empty form, then run the tool. Or paste your own text.

Example input

Ada
Sam
Jo

Expected output

Jo
Sam
Ada

Reverses the order of lines, not the letters within them.

The example is unavailable until the tool is ready.

Text is processed in your browser.

✓ Local processing✓ No account✓ Inputs processed here✓ Free

Quick answer

Reverse the order of lines, including blank lines, while keeping line-breaks and a final newline in place.

The page and its assets load from the site; this operation uses your entered values only in this browser and does not send them to a calculation endpoint.

How to use it

Paste text and run the tool. It reverses the text lines, including blank lines; words within a line stay unchanged. Line breaks stay in their original sequence, including a final newline. In a mixed-ending file, separators do not move with their original lines.

Limits

In a file mixing LF, CRLF or CR, line text moves but each separator stays at its original position in the sequence. The ending type is not attached to the line that moves.

Frequently asked questions

Do blank lines move too?

Yes. Blank lines are lines, so they move to their reversed positions along with the text.

Do line endings move with their original lines?

No. LF, CRLF or CR separators stay in their original sequence while line text reverses. The final line break remains at the end if the input had one.