Reverse Text
Flip a string end to end, or reverse the order of its words or lines while keeping each one readable. Splitting is done on Unicode code points so emoji and combined characters are not broken.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What Reverse Text does
Flip a string character by character so the last letter comes first, or reverse the order of whole words, or reverse the order of whole lines. Words-in-line flips each line without moving the lines themselves. The result is plain text with no surrounding markup, ready to copy straight out.
Checking a palindrome or a hidden message
It is the quick way to see whether a string reads the same backwards, and it is handy when text was deliberately written in reverse for a puzzle. Flipping the word order of a sentence also makes a set of bullet points read from the bottom up.
The four modes
Characters reverses every code point end to end; word order swaps the position of the words while keeping each word readable; lines swaps whole lines; and words-in-line reverses the words inside each line without moving the lines. Each mode preserves the separators it is not reordering.
What it does not touch
The tool performs a pure reversal and does not decode escapes, HTML entities or markdown. Characters built from several code points, such as some flags and family emoji, may split, and a poorly paired surrogate can display as a replacement glyph. Nothing is normalised or re-encoded.
Your text stays in the browser
The reversal happens in the page and your text is never sent over the network. The tool works fully offline, so lines you are flipping for a label or a message stay on your own machine.
Questions
Why does character reverse not mangle emoji?
It splits on Unicode code points (Array.from), not UTF-16 units, so multi-byte characters stay intact. Some emoji built from several joined code points may still separate.
Does words mode keep the spacing readable?
Yes. Word order reverses the tokens but rejoins them with the exact whitespace that separated them, so runs of spaces and line breaks stay in place and the words themselves are never mirrored.
Which mode suits code or logs?
Line order is the useful one there: it flips the sequence of lines without rewriting their contents, so a stack trace can be read bottom-up. Reversing characters is only safe for display, not for anything you plan to run.
Related tools
See categorySort Lines
Sort lines alphabetically, numerically, by length, naturally, or shuffle them.
Case Converter
Convert between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.
ROT13 / Caesar Cipher
Apply ROT13, ROT5, ROT18, ROT47 or an arbitrary Caesar shift to text.
Add Line Numbers
Prefix every line with a running number, with configurable start, separator, zero-padding.