Reverse text
Read it backwards. Reversing the text flips the characters of each line; reversing the line order flips the lines and leaves the words alone. Both buttons are below.
Two different things called reversing
Reversing the characters turns stressed into desserts. Reversing the lines takes a list and puts the last entry first, leaving every line readable. They are different operations and people ask for both under the same name, so both are here as separate buttons.
Character reversal here works line by line, so a multi-line block keeps its lines in place while each one is flipped. Run both buttons in sequence if you want the whole thing turned inside out.
Reversing characters is harder than it looks
The obvious implementation splits the string into an array and reverses it, and that corrupts anything outside the basic multilingual plane. Emoji are stored as two UTF-16 units; reverse the units and you get two isolated surrogate halves, which display as replacement squares. Hello 👋 world comes back broken.
This tool iterates over code points instead, so emoji, CJK characters and mathematical symbols survive. What no character-level reversal can fix is combining marks — an accent stored as a separate combining character will detach from its letter and attach to the one that was previously in front of it. Text using precomposed accented characters, which is what you get from a normal keyboard, is fine.
Right-to-left text is a category of its own: reversing Arabic or Hebrew produces something a browser will then re-order for display, so the result on screen rarely matches what you expected. There is no useful answer there, only a warning.
Worked examples
Run through the same code the button runs, so the examples cannot drift from the tool.
| Input | Reverse text |
|---|---|
never odd or even | neve ro ddo reven |
Hello 👋 world | dlrow 👋 olleH |
stressed | desserts |
Common questions
How do I write text backwards?
Paste it in and click Reverse the text. Each line has its characters flipped, so "stressed" comes back as "desserts".
Can I reverse the order of lines instead of letters?
Yes — use the Reverse line order button. It puts the last line first and leaves every line readable.
Does reversing break emoji?
Not here. Reversal works on whole characters rather than UTF-16 units, so emoji and other astral characters stay intact. Separately-stored combining accents can still detach.
Other text tools
- Case converterAll tools
- Sentence case converterCase
- Title case converterCase
- Uppercase converterCase
- Lowercase converterCase
- camelCase converterCode
- Snake case converterCode
- Kebab case converterCode
- Remove line breaksLines
- Remove extra spacesLines
- Sort lines alphabeticallyLines
- Remove duplicate linesLines
- Word counterCount