Why use Reverse Text
Type something in and this tool hands it back in reverse. The Reverse by menu has four modes. Characters spells the whole text backwards, so "Hello world" becomes "dlrow olleH". Words keeps each word readable but puts the last word first: "world Hello". Lines flips a list so the bottom line comes out on top. Characters within each word spells every word backwards where it stands: "olleH dlrow". Capital letters, punctuation and spacing are carried along exactly as typed, and the output is ordinary text that pastes into any app. Nothing you type leaves your browser.
The four reverse modes compared
The same inputs run through each option in the Reverse by menu.
| Reverse by | What moves | "The quick brown fox" | "Hello, world!" |
|---|---|---|---|
| Characters | Every character in the text | xof nworb kciuq ehT | !dlrow ,olleH |
| Words | Whole words, spelling intact | fox brown quick The | world! Hello, |
| Characters within each word | Letters inside each word; word order kept | ehT kciuq nworb xof | ,olleH !dlrow |
| Lines | Whole lines, top to bottom | The quick brown fox (one line, so no change) | Hello, world! (one line, so no change) |
A word here means any run of characters without a space, so attached punctuation is part of the word and is reversed along with it.
Reversing text that has more than one line
Line breaks change what each mode does. These are the tool's real results; a slash marks a line break.
Lines mode on a list of steps
step one / step two / step three
step three / step two / step one
Characters mode on two lines
line A / line B
B enil / A enil
The whole text is reversed as one string, so the last line ends up first as well as backwards.
Words mode on two lines
first line / second line
line second / line first
Word order is reversed across the entire text, not line by line.
Characters within each word on two lines
first line / second line
tsrif enil / dnoces enil
This is the only mode that keeps every word on its original line.
Words mode with commas
one, two, three
three two, one,
Commas stay glued to the word they followed. Gaps of several spaces are kept too, each one staying between the same two words.
Words that spell another word backwards, and palindromes
Each row was run through Characters mode. A palindrome is a word that comes back unchanged.
| Typed | Reversed | Kind |
|---|---|---|
| stressed | desserts | Spells a different word |
| drawer | reward | Spells a different word |
| diaper | repaid | Spells a different word |
| deliver | reviled | Spells a different word |
| lived | devil | Spells a different word |
| parts | strap | Spells a different word |
| live | evil | Spells a different word |
| pots | stop | Spells a different word |
| racecar | racecar | Palindrome |
| kayak | kayak | Palindrome |
| level | level | Palindrome |
| noon | noon | Palindrome |
Phrase palindromes do not come back identical because spaces and capitals are kept: "Never odd or even" reverses to "neve ro ddo reveN". Compare the letters only.
What happens to emoji, accents, numbers and punctuation
- Numbers and dates are reversed like any other characters: "12345" becomes "54321" and "2026-10-08" becomes "80-01-6202".
- Accented letters stored as a single character survive: "café" becomes "éfac", and "naïve café" in Characters within each word mode becomes "evïan éfac".
- A simple emoji stays whole and just changes position.
- Emoji built from several parts do not survive. A thumbs-up with a skin tone comes back with the tone separated from the hand, and a flag emoji has its two country-code letters swapped, so it shows a different flag or two letter symbols.
- An accent stored as a separate combining mark is detached from its letter by a character reversal and lands on the character before it, or on nothing.
- Brackets and quotation marks are moved, not swapped, so "(hi)" becomes ")ih(".
- Text that is only spaces is treated as empty and returns a prompt to enter some text.
Reversing a string in Excel 365, Python and JavaScript
If you need the same result inside a spreadsheet or a script, these produce what Characters mode produces here.
Excel has no reverse function, but in Excel 365 this formula reverses the text in A1: =TEXTJOIN("",TRUE,MID(A1,SEQUENCE(LEN(A1),,LEN(A1),-1),1)).
In Python, slicing with a step of minus one does it: text[::-1]. To reverse word order use " ".join(text.split()[::-1]), which also collapses repeated spaces.
In JavaScript, [...text].reverse().join("") reverses by code point, which is the method this page uses. The older text.split("").reverse().join("") splits emoji in half and should be avoided.
How to get your result
- 1
Type or paste into the Your text box.
- 2
Open Reverse by and choose Characters, Words, Lines or Characters within each word.
- 3
Read the output in the Reversed panel and copy it.
- 4
Switch modes to compare results. Your original stays in the box.