Reverse Text

Flip text backwards by character, reverse the order of the words, or reverse the order of the lines — live as you type.

Runs 100% in your browserNothing is uploaded to a serverInstant results

Reverse by

Input

Reversed

Copied!

About reversing text

This text reverser flips what you paste in three different ways, and they are genuinely different operations. By character writes each line backwards, so stressed becomes desserts — the backwards text people want for a puzzle, a palindrome check, a mirrored-font mock-up or a low-effort obfuscation. By word keeps every word spelled correctly and reverses their order, turning the quick brown fox into fox brown quick the. By line leaves the lines themselves untouched and reverses the order they appear in, which is how you turn a log file, a changelog or a chat export oldest-first.

Character mode reverses each line in place rather than flipping the whole document end to end, so a pasted paragraph keeps its shape and the three modes stay independent — reverse the lines as well and you have flipped the text completely.

Reversing by character is the one that is easy to get wrong, and most online tools do. Splitting a string into JavaScript characters splits it into UTF-16 code units, which cuts every emoji in half: 👍 is two code units, and reversing them produces two lone surrogates that render as ��. Accented letters have the same problem in a subtler form — when é is stored as e plus a combining acute accent, a naive reverse leaves the accent floating on whatever character now sits in front of it. This tool splits text into grapheme clusters instead: one letter with all its combining marks, one emoji including its skin-tone and variation selectors, a zero-width-joiner family like 👨‍👩‍👧 as a single unit, and a regional-indicator pair as one flag. Everything comes back the way it went in, only backwards.

Word mode preserves the indentation of each line, so reversing an indented list does not shunt the indent to the end. Windows line endings are normalised first, so text pasted out of a Windows editor reverses cleanly instead of leaving stray carriage returns at the start of every line. As with every tool here, the work happens in your browser and nothing is uploaded.