About reverse text
Reverse text flips it by character, by word or by line. It is mostly used for puzzles, testing and small data jobs.
Three ways to reverse
- By character: 'hello world' becomes 'dlrow olleh'.
- By word: 'hello world' becomes 'world hello'.
- By line: the last line comes first, which is handy for reversing a list.
Emoji and Indian scripts
Letters in scripts like Devanagari are formed from several parts that must stay together. A tool that splits them apart produces broken text, so this tool reverses whole visible characters.
A worked example
The text 'Good morning India' reversed by characters becomes 'aidnI gninrom dooG'. Reversed by words it becomes 'India morning Good'. Reversed by lines, a three-line list swaps its first and last lines.
Where it is useful
- Checking palindromes, such as 'madam' or 'level'.
- Reversing a list of items to show the newest first.
- Puzzles, games and teaching string manipulation to students.
