About Reverse Lines
Turn a log that lists the oldest entry first into one that shows the newest first, invert a ranking, or read a list from the bottom up. Each line keeps its own text exactly; only the order of the lines is turned around.
Blank lines are reversed along with everything else, and the line endings of the input are kept.
How it works
- The text is split into lines at any kind of line break, and the ending used in the input is used again in the output.
- Clean-ups run in this order: non-printing characters, trimming, collapsing spaces, empty lines, duplicates, and finally the line order.
- Duplicates are compared after the earlier steps, keeping the first occurrence. Accented letters typed in different ways count as the same.
- Sorting uses your browser language rules, so accented letters sort next to their base letter. Shuffling uses the browser secure random generator.
Questions
Does it reverse the characters in each line?
No. Only the order of the lines changes. The words and letters on each line stay as they are.
What happens to a final line break?
If your text ends with a line break, the reversed text does too. It is not treated as an extra empty line.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.