Free online tools
English EN, Choose a language

Reverse text

Paste your text and reverse it: every letter, each word, the order of the words or the order of the lines.

Reverse

Result

Paste or type your text, then pick what to reverse.

Runs in your browser. Your text is never uploaded or stored.

Related tools

All text tools →

How to reverse text

  1. Paste or type your text. Insert example loads two lines with an emoji and an accent.
  2. Pick what to reverse. The result updates as you click.
  3. 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
ModeResult
Everything, letter by letterereh enil dnoceS · dlrow gib olleH
Each linedlrow gib olleH · ereh enil dnoceS
Letters in each wordolleH gib dlrow · dnoceS enil ereh
Word orderworld big Hello · here line Second
Line orderSecond line here · Hello big world

Lines of the result are joined with · in the table; the tool shows them one under the other.

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

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

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.

Missing something in the reverse text?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools