Text Reverser
NewReverse text by character, word order, per-word letters, or line order.
Mode: Reverse string
Frequently Asked Questions
Why did reversing word order collapse all my spacing?
The word-order mode finds non-space tokens and joins them back together with single spaces. It keeps the words themselves, but it does not preserve the original runs of tabs, spaces, or line breaks.
Does the reverse-string mode break emoji or other multi-byte characters?
It uses Array.from before reversing, so normal surrogate-pair characters like emoji are handled much better than a naive split(""). It is a character-level reverse, not a byte-level reverse.
What is the difference between "Reverse word order" and "Reverse each word"?
Word-order mode moves whole words around. Each-word mode keeps words in place and reverses the characters inside each non-space token.
What happens in reverse-lines mode?
It splits the text on line breaks, reverses the line order, and joins everything back with . The content of each line stays the same.
Do I have to press a convert button?
No. The output refreshes automatically after a short debounce while you type or switch modes.