Line Reverser
Invert line order while retaining exact line contents, including extra spaces, Unicode and right-to-left text. Keep a heading or blank lines fixed if the layout requires it.
Reverse Lines and Preserve Their Separators
Open the original file to keep mixed line endings. Pasting or editing in the text box uses LF line endings.
Line Reverser: how to use it
- Paste text or open the original file to preserve mixed line endings. Load the example to try a status list with a blank line and an Arabic entry.
- Enable Keep first line for a heading or Keep blank lines in place for fixed gaps, then select Reverse lines.
- Review the order and download the result. Reopen the saved file to verify its line endings and encoding when those bytes matter.
Limits and notes
Accepts up to 500,000 UTF-16 code units. Reads UTF-8 and UTF-16 or UTF-32 text files with a byte-order mark. Recognizes CRLF, LF and CR as line endings. Uploaded files retain their encoding and byte-order mark in the download. Pasting and editing use LF.
How your privacy works →Line Reverser: common questions
Does reversing lines change spelling or capitalization?
Each line moves as one block. Letters, accents, emoji, tabs and other spacing within the line stay as typed.
How can I reverse a log with a heading?
Choose Keep first line. The tool holds the first line in place and reverses the remaining lines.
How are trailing newlines and mixed line endings handled?
Separators stay in the same slots. An ending at the end of the source remains at the end. In a mixed file, moving an empty line can bring a lone CR and LF together so an editor reads them as CRLF. Keep blank lines in place when those distinctions matter.