TheFileTools

How to reverse text, words or lines

Write text backwards, put the words of a sentence in reverse order, or flip a list upside down.

Reversing is mostly for puzzles, word games and checking palindromes, with one practical use: a list or a log that is in the wrong order, newest first when you want oldest first.

Steps

  1. Open Reverse text.
  2. Paste or type the text.
  3. Under Reverse, choose Letters, Words or Lines.
  4. Press Copy.

The three modes

  • Letters: each line is written backwards. Hello world becomes dlrow olleH. The lines themselves stay in their order.
  • Words: the words of each line swap places and the letters inside them stay readable. Hello big world becomes world big Hello. Punctuation stays attached to its word, so a full stop at the end of a sentence ends up in the middle.
  • Lines: the last line becomes the first. Nothing inside a line changes. This is the mode for turning a list or a log around.

To reverse both the lines and the letters, run the text through twice: copy the first result back into the input and change the mode.

Checking a palindrome

Reverse the letters and compare the result with the original. Spaces, punctuation and capitals are reversed along with everything else, so for a phrase you should first make it lowercase with Case converter and take out the spaces and punctuation.

Where it goes wrong

Letter mode reverses characters one at a time. Some emoji are built from several characters joined together, such as flags, family groups and skin-tone variants, and they fall apart when reversed. The same can happen to accented letters that were typed as a letter plus a separate accent mark. Plain letters, digits and simple emoji are fine.

Reversed text is still made of normal letters. Upside-down text, which uses different characters, is one of the styles in Fancy text generator. To put a list into a random order, use Shuffle in Sort lines.