Three ways to turn text around
One input box, three buttons and a read-only result. Reverse Text flips the whole string one character at a time. Reverse Words splits on runs of whitespace and puts the words in the opposite order. Reverse Sentences splits after each full stop, question mark or exclamation mark and reverses the order of the sentences instead.
A worked example
Cats sleep. Dogs bark. Birds sing. runs to 34 characters. Character mode returns .gnis sdriB .krab sgoD .peels staC. Word mode returns sing. Birds bark. Dogs sleep. Cats, with each full stop still attached to the word it followed, so punctuation lands in the middle of the line. Sentence mode returns Birds sing. Dogs bark. Cats sleep.
Spacing is rebuilt, not kept
Word mode rejoins the pieces with single spaces, so tabs, indentation and double spaces disappear. Because a space at either end produces an empty piece, the output can begin or end with a space even when the word order is right. Character mode leaves every space and line break exactly where it was, so only the letters move.
Where it stops
- Character mode works on UTF-16 halves, so emoji break apart and a combining accent separates from its letter.
- Sentence mode treats every full stop as a break, so an ellipsis becomes three units: Wait... what now? reverses to what now? . . Wait.
- The result box mirrors the input until a button is pressed, so nothing looks changed at first.
- No undo, no per-word copy and no case option.
Questions people ask
Why is my sentence unchanged?
Sentence mode only breaks after a full stop, question mark or exclamation mark. Text with none of those is a single unit and comes back as it went in.
Can I reverse the order of whole lines?
Not here. The text sorter can order lines, though it sorts by value rather than reversing the original order. To change capitalisation before reversing, use the case converter, and for a reversed-and-rotated look, the upside down text generator.