Text tool
Text Reverser
Reverse text at the character, word, or line level to generate reversed sequences, check for palindromes, or reorder lists.
Output
Understanding the three reversal modes
Unicode characters mode reverses the text character by character using Unicode-aware splitting, so each distinct character, including most emoji, is treated as a single unit. This is the default mode and handles most text correctly. Words mode splits on all whitespace (spaces, tabs, newlines) and reverses the order of the resulting tokens, but preserves the original whitespace runs, so spacing is maintained between reversed words. Lines mode reverses the order of lines in your text, keeping each line intact but reordering them from bottom to top.
The output area shows the reversed result in real time. For character mode, a string like 'Alpha' becomes 'ahplA'. For words mode, 'the quick fox' becomes 'fox quick the'. For lines mode, the last line moves to the first position, and so forth. Each mode preserves the general whitespace structure of the original text: line breaks, spacing between words, and indentation are maintained or rearranged along with their associated content.
Reversing words in a sentence
- Input: "The quick brown fox jumps over the lazy dog"
- Words mode output: "dog lazy the over jumps fox brown quick The"
- Character mode output: "god yzal eht revo spmuj xof nworb kciuq ehT"
- With extra spacing, "one two three" in words mode becomes "three two one" (spacing preserved)
- Multi-line text in words mode reverses words across all lines while keeping line breaks
Practical uses for line and word reversal
Reversing line order is useful for reversing the chronological order of log entries or chat messages, making the newest message appear first. A server log with the oldest entries at the top becomes newest-first after line reversal. Git commit messages, DNS query logs, and build output all become more readable in reverse chronological order when read from top to bottom.
Word reversal has niche applications in word games and puzzles. Reversing the word order in a sentence without reversing the characters is a common obfuscation in some cryptic crosswords. Character-level reversal, the most common mode, is used in palindrome validation (to check if a string reads the same backward and forward) and in producing mirrored strings for word games, creative effects, or software testing.
Common reversal scenarios
- Reversing a numbered list: paste a list numbered 1 to 10 in lines mode to reorder from 10 to 1, useful if you want to present items in reverse priority or reverse entry order.
- Checking for palindromes: paste a word like 'racecar' in character mode and see if the output matches the input.
- Reordering search results: if you have results listed newest-first but need oldest-first, use lines mode to flip the order.
- Word-order reversal for poetry: reverse words in a line to generate alternative word orders for creative writing or line-ending emphasis.
- Reversing a CSV column: import a CSV, extract one column as lines, reverse with lines mode, then paste back into the spreadsheet.
Frequently asked questions
What is the difference between character and word reversal?
Character reversal flips the text character by character, so 'hello' becomes 'olleh'. Word reversal reorders the words (tokens separated by whitespace), so 'hello world' becomes 'world hello', keeping characters within each word unchanged.
Do complex emoji (like family emoji with skin tones) work in character mode?
Emoji that combine multiple Unicode code points joined by zero-width characters, like family emoji or emoji with skin-tone modifiers, may separate or display unexpectedly in character mode, since each code point is reversed individually.
Does word mode preserve the spacing between words?
Yes. Word mode splits on whitespace but keeps the original spacing runs, so if there are two spaces between words, those two spaces travel with the reversal and end up between the reversed words.
Can I reverse only a portion of the text?
No. This tool reverses the entire pasted text. If you need to reverse only part of it, copy that portion separately, paste it alone, reverse it, then manually reinsert it into the full text.
What happens to line breaks when I reverse characters?
Character mode reverses every character, including newlines, so line breaks are reversed in place. Text with three lines becomes text where the line positions are reversed but each line's content is also character-reversed.
Is there a difference between reversing and decryption?
Yes. This tool simply reverses the order of text elements. Reversing is not cryptography and offers no security. It can obfuscate text visually but is trivial to undo.