Text Reverser
Reverse any text four ways at once: full character reverse, word-order reverse, per-word reverse, and line-order reverse. Everything runs locally in your browser.
How to use this tool
- 1
Type or paste your text into the input box.
- 2
Read the four results that appear instantly below: characters reversed, word order reversed, each word reversed in place, and line order reversed.
- 3
Select and copy the result line you need.
- 4
Clear the box and paste new text to convert again.
What does reversing text actually do?
Reversing text means re-ordering the units of a string from last to first, but the result depends entirely on what you treat as a 'unit.' This tool exposes four units at once. Character reverse uses JavaScript's spread operator ([...text]), which iterates by Unicode code point rather than UTF-16 code unit, so most surrogate-pair characters and single emoji survive intact instead of splitting into broken halves. Word-order reverse splits on any run of whitespace (the /\s+/ regex) and flips the resulting list, so 'the quick fox' becomes 'fox quick the.' Per-word reverse keeps words in place but reverses the characters inside each one ('hello world' becomes 'olleh dlrow'). Line reverse splits on newline characters and flips line order, useful for log files or stacked lists. The character mode is a naive code-point reversal, not a grapheme-cluster reversal: combining accents, ZWJ-joined emoji like the family glyph, and flag sequences can still break apart because they span multiple code points. For Unicode-correct grapheme handling you would need Intl.Segmenter or a library such as grapheme-splitter.
Common use cases
Building palindrome puzzles or word games where you need the exact reversed spelling.
Creating simple mirrored or backwards text for usernames, art captions, and novelty branding.
Generating quick test fixtures to check how an app renders right-to-left or reversed strings.
Reversing the order of stacked lines, such as flipping a log snippet so the newest entry reads first.
Teaching or demonstrating how Unicode code points differ from visible characters when emoji are reversed.
Sanity-checking string-reversal logic in your own code against a known-good reference output.
Frequently asked questions
What is the difference between the four modes?▼
Does it work correctly with emoji?▼
Why did my accented letters break apart?▼
How does word reversal handle multiple spaces or tabs?▼
Is my text uploaded to a server?▼
Can I reverse a very large block of text?▼
Related tools
Word & Character Counter
Count words, characters, sentences, paragraphs.
Reading Time Calculator
Estimate reading time for any text.
Headline Analyzer
Score headlines for engagement and SEO.
Email Subject Line Tester
Score email subject lines for open rate.
Markdown to HTML
Convert Markdown to HTML.
HTML to Markdown
Convert HTML to clean Markdown.