Text Reverser
Three reversal modes. Emoji and accented characters stay intact because this reverses graphemes, not code units.
—
Worked example
Reversing by code unit turns café into a broken sequence, because the é may be stored as two code points. Reversing by grapheme cluster keeps it as one visible character.
String reversal looks trivial and is not. JavaScript strings are UTF-16 code units; splitting on them tears apart anything outside the Basic Multilingual Plane — emoji, rare CJK, musical symbols — and separates combining marks from the letter they modify.
Three modes
Character mode reverses the whole string and is what people usually want when checking palindromes. Word mode keeps the words in order but reverses their sequence, which is useful for reordering lists. Line mode flips the vertical order of a list without touching anything inside a line.
Where reversal is genuinely useful
Checking whether a string is a palindrome, generating a rough cipher for a puzzle, and inspecting the tail of a long identifier. It is not a security measure — reversed text is not hidden text.
Copying the result
Some platforms mangle right-to-left or emoji-heavy output when it is pasted into a form field. If the result looks correct here but wrong after pasting, the problem is in the destination application's text handling.