Reverse Each Line
Reverse the characters of each line independently while keeping line order intact. Unicode-safe.
0 characters
0 characters
About Reverse Each Line
This tool reverses each line of your input as if it were a separate string, leaving line order unchanged. It's useful when you want to mirror text that was authored line by line — verse, lists, code comments — without scrambling the document order.
When to use it
- Creating mirrored ASCII art row by row
- Reversing a column of values for a quick visual flip
- Producing palindrome-style line effects
- Verifying Unicode-safe per-line reversal in a script
How it works
The input is split on newlines (both LF and CRLF are handled). Each line is iterated as Unicode code points, reversed, and rejoined. The resulting lines are joined with LF (\n).
Examples
Each line reversed independently
Hello world from TextyConverter
olleH dlrow hcnebtxeT morf
Frequently asked questions
- What line ending does the output use?
- LF (\n). Both CRLF and LF inputs are accepted; the output is normalized to LF.
- Are blank lines preserved?
- Yes. Blank lines remain blank in the same position.
- Does it reverse the order of lines?
- No — only the characters within each line. To reverse line order, use the dedicated reverse-line-order tool.