Reverse Line Order

Reverse Line Order lets you reverse the order of lines while leaving characters within each line intact. Enter your own values or load the worked example.

Method and calculation

Reverse the order of lines while leaving characters within each line intact.

Inputs and settings

Reverse Line Order accepts Input text.

Worked example

Reverse Line Order example — Input text: "Hello world\nA second line\nHello world". Computed output: Hello world A second line Hello world

Output and limitations

Use line reversal to inspect chronological logs from newest to oldest when the source is already ordered. It does not parse timestamps or sort dates. Every character remains within its original record, including indentation, delimiters and trailing whitespace.

Technical references: JavaScript Unicode normalization

Reverse Line Order FAQs

Reverse Line Order applies the following rule to your input: Reverse the order of lines while leaving characters within each line intact. The worked example on this page uses the same processor as the result button.
Reverse Line Order has these boundaries: Input is treated as plain text; it is never executed. Start by checking the input text field against the units or format shown.
Reverse Line Order provides this sample: Hello world A second line Hello world. Use the sample button to reproduce it, then replace the inputs with your own values.