Reverse the order of lines
Put the lines of your text in reverse order: the last line becomes the first and the first becomes the last.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
Copy or download
Copy the result with one click, save it as a file or use it as input for a next step.
Example
First line, Second line, , `Fourth line` becomes `Fourth line`,, Second line, First line. Tick Leave out empty lines to drop the blank ones.
Only the order of the lines changes; the text within each line stays as it was. To reverse the letters of the text instead, use reverse text, and to reverse the order of the words, use reverse words. To sort lines alphabetically, use sort text.
Frequently asked questions
Is the reverse lines free?
Yes. The reverse lines is completely free, with no account, sign-up or usage limit.
Is my text stored?
No. Your text is processed in your browser and is not sent to a server or stored.
Is there a maximum length?
No, there is no fixed limit. Very long texts can just be a little slower.