How to reverse text
- Paste or type your text. Insert example loads two lines with an emoji and an accent.
- Pick what to reverse. The result updates as you click.
- Copy it, download it, or press Use as input to reverse the result again or to combine two modes.
The five modes on one example
The input is
Hello big world Second line here
| Mode | Result |
|---|---|
| Everything, letter by letter | ereh enil dnoceS · dlrow gib olleH |
| Each line | dlrow gib olleH · ereh enil dnoceS |
| Letters in each word | olleH gib dlrow · dnoceS enil ereh |
| Word order | world big Hello · here line Second |
| Line order | Second line here · Hello big world |
Lines of the result are joined with · in the table; the tool shows them one under the other.
- Everything reverses the entire text as one string, so the last character comes first and the lines swap places too.
- Each line reverses the characters of every line and keeps the lines in order.
- Letters in each word reverses every word but leaves the words, spaces and line breaks where they were.
- Word order reverses the order of the words on each line without touching the letters.
- Line order puts the last line first. Useful for a list or log you want newest-first.
Emoji and accents stay in one piece
A naive reverse works on code units, which splits emoji and breaks letters that carry a combining accent into nonsense. This tool reverses user-perceived characters instead, so a family emoji, a flag or an accented letter moves as one unit:
café 👨👩👧 ok
ko 👨👩👧 éfac
Browsers without that support fall back to reversing code points, which can still separate a few rare sequences. Right-to-left languages such as Arabic and Hebrew are reversed in storage order, so the result may look different from what you expect on screen.
What reversed text is used for
- Puzzles and games: hide a message in a scavenger hunt, or build a mirror-writing puzzle.
- Palindromes: reverse a phrase and compare it with the original (ignore spaces and punctuation).
- Debugging and learning: check a string-reversal function against a known-good answer.
- Lists: flip a chronological list with Line order.
Reversed text is not encryption: anybody can reverse it again. For a different kind of flip, the fancy text generator has an upside-down style that swaps each letter for its rotated look-alike. To sort or shuffle lines instead of reversing them use sort lines.
Checking a palindrome
A palindrome reads the same in both directions once spaces, punctuation and capitals are ignored. Reverse the classic phrase letter by letter:
A man, a plan, a canal: Panama
amanaP :lanac a ,nalp a ,nam A
Read the reversed line without the spaces and punctuation and you get the original again: amanaplanacanalpanama. The tool does not judge palindromes for you; it shows both directions side by side so you can check them yourself, or compare the result with the original in text compare.
Reversing a string in code
If you need the same operation in a program, the obvious one-liners have the emoji problem described above. In Python, s[::-1] reverses code points, so combining accents and joined emoji come out scrambled. In JavaScript, s.split('').reverse().join('') reverses UTF-16 units and can break any emoji; [...s].reverse().join('') is better but still splits sequences such as the family emoji. Use Intl.Segmenter with grapheme granularity for a faithful result, which is what this tool does. Test your own function on café 👨👩👧 and compare with the tool's output.
Related tools
- Fancy text generator – includes an upside-down style that flips the letters themselves
- Sort lines – reverse or shuffle the order of lines in a list
- Case converter
- Character counter
Reverse text FAQ
How do I reverse text?
Paste your text and keep Everything, letter by letter selected. The reversed text appears at once and you can copy it or download it.
How do I reverse the order of words but not the letters?
Choose Word order. Each line keeps its letters, and the words on it are put in the opposite order.
How do I reverse each word separately?
Choose Letters in each word. Every word is spelled backwards while the words and spaces stay in place.
Does it break emoji or accented letters?
No. The tool reverses whole user-perceived characters, so emoji, flags and accented letters stay intact in browsers that support it.
How do I reverse the order of lines?
Choose Line order. The last line becomes the first, and the text of each line is untouched.
Is reversing text a form of encryption?
No. Anyone can reverse it again in one click, so do not use it to protect anything.
Is my text uploaded anywhere?
No. The text is reversed in your browser and nothing is sent to a server or stored.