Reverse Text
A small tool with three modes: reverse the character order of a string, flip the order of words in each line, or reverse the order of the lines themselves. Handy for puzzles, data cleanup and quick string experiments.
100% private — everything runs in your browser, nothing is ever uploaded.
What this tool does
A puzzle clue asks for a phrase written backwards, a data export has lines in the wrong order, and a developer wants to see how a string behaves when its characters are flipped. These are three different operations that people all call reversing. This tool separates them into three modes: reverse the characters within a string, reverse the order of words on each line, or reverse the order of the lines themselves. The result updates live, which makes it useful as a quick scratch pad when checking an encoding assumption or preparing a test case. It is also a surprisingly handy cleanup step for lists that were pasted from a source that stacked newest items at the top, since flipping line order is faster than cutting and pasting dozens of rows by hand.
How to use it in three steps
- Paste or type the text you want to flip. Keep the line breaks as they are, because the line mode depends on them.
- Choose a mode: characters for a string-level flip, words to reverse word order within each line, or lines to reverse the order of the rows.
- Copy the reversed result. It updates as you type, so switching modes is a fast way to see which interpretation you actually needed. Try all three modes on a two-line sample before reversing a long list, since the results look very different.
Questions people ask
What happens to punctuation in characters mode?
Every character is moved, including spaces and punctuation, so a sentence becomes unreadable from left to right. That is the intended behaviour for a string reversal rather than a linguistic transformation.
Does words mode keep punctuation attached to its word?
Words are split on whitespace and reordered as tokens, so punctuation travels with the token it was attached to. A trailing full stop may therefore appear in the middle of the reversed line.
Can I reverse a whole file?
It runs in your browser, so a few thousand lines is comfortable but a very large file is easier to handle with a command-line tool. Paste a representative section first to confirm the mode you want.
Can I reverse a list of names while keeping each name intact?
Use lines mode. It flips the order of the rows without touching characters or words inside them, so a pasted column of names comes back in the opposite order with every name still spelled correctly.
Privacy: Characters, words and lines are flipped by local JavaScript in this browser tab, and the strings, identifiers and lists you paste are never uploaded, logged or kept after the page closes.
How to use it
- Paste or type your text.
- Pick a mode: characters, words, or lines.
- Copy the reversed result — it updates live as you type.
Why it stays private
It is a pure text transform with no network component at all: the text is read, reversed and displayed inside the same page. Nothing to intercept, nothing stored.
Questions
What is the difference between the modes?
Characters reverses the entire string letter by letter (hello becomes olleh). Words keeps each word intact but reverses their order. Lines reverses the order of whole lines — useful for log files that were pasted bottom-up.
Does it handle emoji and non-Latin scripts?
It reverses code points, which covers Chinese, Japanese, Korean and accented Latin correctly. Complex emoji made of several joined parts may end up visually scrambled — that is a limitation of simple reversal, not of your text.
Why would I need this?
Puzzle solving, checking palindromes, fixing logs pasted in reverse order, generating mirror text for design mockups, or turning a list around without a spreadsheet.