Home › Ciphers › Reverse Text

Reverse Text

Writing backwards is the oldest trick in this library — and "backwards" turns out to be three different operations. Reverse the whole string and every letter changes place; reverse the word order and the letters stay put while the sentence turns around; reverse each word in place and the sentence keeps its shape with every word mirrored. This page does all three, keeps them distinct, and handles the modern catch properly: text is no longer made of simple letters, so the reversal runs on grapheme clusters — an emoji, a flag, an accented letter built from parts travels as one piece and arrives intact, instead of being torn apart by a naive character flip.

In short

Reverse text here means three modes: reverse everything (the whole string, end to start), reverse word order (words swap places, letters untouched), and reverse each word (every word mirrored in place). Each mode is its own inverse — apply it twice and the original returns, exactly.

Backwards writing; the whole-string mode is the mirror-writing of notes, spoilers and da Vinci's notebooks.

Reverse it — whole-string mode is loaded

27 characters
Reversed · whole string
nwad ta stroper yssabme ehT

Apply the same mode again to undo it — every mode is its own inverse.

Everything runs in your browser — nothing is uploaded.

How it works

Three reversals, kept distinct

Reverse everything reads the whole string from the last unit to the first: "The embassy reports at dawn" becomes "nwad ta stroper yssabme ehT". Word boundaries, punctuation and capitalisation all travel — the capital T ends up at the end, lowercase, because it was never a capital-T unit, just a letter that has moved house. Reverse word order treats the text as a sequence of words and spaces and flips that sequence: "dawn at reports embassy The" — every word letter-perfect, the sentence facing the other way. Reverse each word mirrors every word where it stands: "ehT yssabme stroper" — the sentence's shape survives, which is why this mode is the one used for eye-catching headlines and for the classic discovery that "stressed" reversed is "desserts". The three modes answer to different needs, and tools that offer a single "reverse" button without saying which one are hiding the only interesting decision.

The Unicode behaviour, stated. A modern "character" is often several code points wearing one coat: an emoji family is four people joined by invisible joiners, an é may be an e plus a combining accent, a flag is two regional indicators. A naive reversal by code point (or worse, by UTF-16 unit) shreds those into nonsense and broken symbols. This tool first segments your text into grapheme clusters — the units a reader counts as characters, using the browser's standard segmenter — and reverses the clusters, so "Café 👨‍👩‍👧 ok" reverses to "ko 👨‍👩‍👧 éfaC" with the family and the accent intact. In the word modes, words are split on whitespace and the whitespace itself is preserved and reversed as part of the sequence in word-order mode. One fallback, disclosed: on a browser too old to offer the segmenter, the tool falls back to whole code points, which still protects emoji pairs but can separate a combining accent from its letter or split a joined emoji — the behaviour degrades visibly rather than silently, and modern browsers all segment properly.

Origin & history

From mirror writing to spoiler tags

Reversed writing has been reinvented wherever someone wanted text that a casual eye slides off. Leonardo da Vinci filled his notebooks with mirror writing — ordinary handwriting reversed, readable in a mirror — though whether it was secrecy or simply the habit of a left-hander avoiding smudged ink is still argued; either way it worked as casual concealment for centuries of readers. Lewis Carroll played the idea for literature: Alice holds Through the Looking-Glass's "Jabberwocky" up to a mirror to read it. In cryptography proper, reversing the whole message is the simplest transposition there is — the letters keep their identities and lose only their order — and it appears as a finishing flourish inside more serious systems and as the whole of a thousand puzzle-hunt steps. Its modern homes are humbler: spoiler text, upside-down-and-backwards social posts, license-plate games, and the palindromes hiding inside ordinary words. What the computer age added is the failure mode the How-it-works section describes: text stopped being one byte per letter, and "reverse it" stopped being a one-line program that could be trusted.

Reference

The three modes on one sentence

Mode"The embassy reports at dawn" becomes
Reverse everythingnwad ta stroper yssabme ehT
Reverse word orderdawn at reports embassy The
Reverse each wordehT yssabme stroper ta nwad

Notice what each mode preserves. Whole-string reversal preserves nothing but the multiset of characters — even the capital letter migrates. Word-order reversal preserves every word exactly. Each-word reversal preserves the sentence's skeleton — word lengths, spaces, and which word stands where — while mirroring the words themselves. All three are exact involutions: run the same mode on the output and the original returns, grapheme for grapheme.

Worked examples

Two reversals, examined

Example 1 — the whole string, with an emoji aboard

Café 👨‍👩‍👧 ok → ko 👨‍👩‍👧 éfaC

Six graphemes travel: C, a, f, é, space, the family, space, o, k — and arrive in reverse order, each intact. The accent is still on the e; the family is still a family, not four people and some joiner debris. This is the example that breaks naive reversers, and it is printed here because the tool is tested against it: reverse the output again and the original sentence returns exactly.

Example 2 — each word in place

stressed desserts → desserts stressed

The party trick of the each-word mode: "stressed" mirrored is "desserts", and "desserts" mirrored is "stressed", so the two-word phrase swaps its words without anything moving. English is full of these semordnilaps — "diaper/repaid", "drawer/reward" — and this mode finds them mechanically, which takes some of the magic out and puts a tool in its place.

Breaking it

Security: it is a mirror, not a lock

Reversal hides text from a glance and from nothing else. Whole-string reversal is detected at sight — the word shapes are wrong in a way no language is — and undone by the same operation that made it; the other two modes are even more transparent, since word-order reversal leaves every word readable and each-word reversal leaves the sentence's skeleton visible. Inside real cryptography, reversal earns its keep only as one transposition among many, scrambling positions before or after a substitution does the real work. On its own it is obfuscation for spoilers, puzzles and play — which is a respectable living, honestly labelled.

  • Security status: none — reversal is its own key and its own undoing.
  • What gives it away: backwards word shapes; in each-word mode, the untouched sentence skeleton.
  • The real risk is technical, not cryptographic: a reverser that tears grapheme clusters corrupts text — this one is built and tested not to.
Variants

Neighbours in the transposition family

VariantHow it differsSolve it with
Rail fenceLetters zigzag across rails and are read off in rows — order scrambled by a pattern, not a mirrorThe rail fence page
Route cipherText written into a grid and read out along a path — reversal is the one-cell-wide special caseThe route cipher page
Upside-down textLetters replaced by rotated lookalikes (ɥʇıʍ) — a substitution wearing reversal's clothesNot offered here; it is a font trick, not a reversal
Uses & culture

Where backwards earns its keep

Spoilers and answers printed upside down or backwards at the foot of a page; puzzle hunts, where reversing is step one of nine; children's secret notes; the semordnilap word-game; mirror-writing practice for the left-handed and the curious; and, quietly, in software itself, where "reverse the string" is a rite-of-passage programming exercise whose Unicode edge cases have ended more interview confidence than any sorting algorithm. It is also the honest first rung of the transposition ladder: every serious transposition cipher on this site — rail fence, route, columnar — is reversal's idea grown up, the letters keeping their names and losing their places.

Practice

Read it backwards

Practice 1 — whole-string reversal

ruobrah eht ta em teeM

Read it from the end, or run it through the tool's whole-string mode again — same thing, by design.

Reveal the answer

"Meet me at the harbour". Reversal is an involution: the operation that hid it is the operation that reveals it, which is the whole of its charm and the whole of its weakness.

Practice 2 — which mode made this?

dawn at reports embassy The

The words are perfect and the sentence is backwards. Which of the three modes leaves every word untouched?

Reveal the answer

Reverse word order. The words are letter-perfect — only their sequence flipped. Whole-string mode would have mirrored the words themselves ("nwad ta…"), and each-word mode would have kept the order and mirrored in place ("ehT yssabme…"). Telling the three apart at a glance is the skill this page exists to teach.

FAQ

Frequently asked questions

Why did my emoji break in another reverse tool?

Because it reversed the wrong units. An emoji may be stored as a surrogate pair, a sequence joined by zero-width joiners, or a base symbol plus modifiers; reversing by code unit or code point shuffles the pieces into invalid or different symbols. This tool segments text into grapheme clusters first — the units you perceive as characters — and reverses those, so joined emoji, flags and accented letters survive. On very old browsers it falls back to code points, which protects pairs but can detach a combining accent; that limitation is stated on this page rather than discovered by you.

What is the difference between reversing word order and reversing each word?

Word order changes which word stands where and leaves every word spelled normally: "at dawn" becomes "dawn at". Each-word keeps the positions and mirrors the spellings: "at dawn" becomes "ta nwad". Combined, the two equal whole-string reversal with the spaces left in place — a neat way to see that the three modes are genuinely different operations, not one operation with settings.

Is reversed text a cipher?

It is the simplest transposition — the letters keep their identities and change only their order — so it sits at the shallow end of the cipher family, next to rail fence and route. As security it is worthless (it is its own undoing); as a puzzle step, a spoiler guard and a piece of wordplay it is excellent, and this page labels it accordingly.

Does it work for other languages and scripts?

Yes, with the grapheme rule doing the work: Arabic, Chinese, Devanagari and mixed-direction text reverse cluster by cluster. One honest caveat — the tool reverses the stored character sequence; it does not re-render bidirectional layout, so text mixing right-to-left and left-to-right scripts may display in an order that looks different from the underlying reversal. The characters themselves are never altered or lost.

Next steps