Text Reverser NZ
This tool reverses text in two different ways, flipping the order of the characters and flipping the order of the words, and counts the characters and words while it is at it. Reversing text is a small task that comes up more often than you might think: programmers test string-handling code with it, puzzle and word-game enthusiasts use it to create or solve challenges, people generate backwards text for fun or for visual effect, and it is a quick way to check for palindromes, words or phrases that read the same forwards and backwards. Doing it by hand is tedious and error-prone, especially for longer text. This reverser does it instantly. You paste or type your text, and the calculator produces two results: the character reversal, where every character is flipped so the last becomes the first, turning the text completely backwards, and the word reversal, where the words keep their spelling but their order is reversed, so the last word comes first. It also shows the character and word counts. Everything updates as you type and runs entirely in your browser, so nothing is uploaded. Use it to reverse a string for a programming test, to make backwards text, to check whether something is a palindrome, by comparing the original with its character reversal, or just for fun. The two modes serve different purposes: character reversal is the literal mirror of the text, useful for palindromes and visual effects, while word reversal keeps each word readable but flips their sequence, which can be handy for certain text transformations. The character and word counts are a useful bonus, saving a separate count when you just need a quick figure.
Character reversal flips every character; word reversal flips the order of words. Palindrome check ignores case, spaces and punctuation. Runs in your browser.
How it works
For the character reversal, the text is split into individual characters, the order is reversed, and they are joined back together. For the word reversal, the text is split on spaces into words, that list is reversed, and the words are rejoined. The palindrome check compares the text, stripped of case, spaces and punctuation, with its own reverse.
Worked example
The text Hello World reversed character by character becomes dlroW olleH. Reversing the word order instead gives World Hello, keeping each word spelled normally but swapping their positions. The text has 11 characters and 2 words, and is not a palindrome since it does not read the same backwards.
Related calculators
- Word Counter: count words.
- Character Counter: count characters.
- Text Case Converter: change case.
- Caesar Cipher: shift cipher.