Text & writing
Reverse text or line order
Reverse characters, words or lines in plain text.
A clear answer. Here’s how.
Character mode uses Intl.Segmenter grapheme clusters to preserve combined accents and emoji sequences. Word mode reverses whitespace-separated words on each line and normalises spacing. Line mode reverses the line order.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Text
Hello world A second line
- Reverse
- Grapheme clusters
Example result
enil dnoces A dlrow olleH