Calculator

What the Reverse Text does

Reverse Text: calculates Output from Text.

Point it at Text and it returns Output. Edit a field and the answer updates in place.

Typical users are people preparing copy for publishing. Doing this by hand is tedious and error-prone once the text runs past a few lines.

Everything happens inside this page. Nothing you type is sent to a server, and there is nothing for us to store.

The sections that follow cover the fields, the method, and one full example computed from the defaults.

What do the Reverse Text fields mean?

The Reverse Text uses 1 input. Each input has a default that makes sense on its own, so a partial edit still gives a valid result.

FieldWhat to enterDefault
Text paste or type any amount of text The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.

How does the Reverse Text work?

Output ← f(Text)

Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same calculation.

Checks happen up front, so errors surface next to the form instead of hiding in the output.

Worked example

These are the values the Reverse Text loads by default, and the result it produces from them. Here is the calculation as it stands the moment the page loads.

Inputs
TextThe quick brown fox jumps over the lazy dog. Pack my box …
Result
Output.sguj rouqil nezod evif htiw xob ym kcaP .god yzal eht revo spmuj xof nworb kciuq ehT

Reversing text

Reversing a string is simple for ASCII and surprisingly subtle for anything else, because a "character" is not the same thing as a code unit.

OperationLast character firstorder fully inverted
ASCIIStraightforwardone byte per character
Emoji and CJK extensionsNeed caresurrogate pairs must stay together
Combining marksNeed careaccents attach to the preceding letter

Worth knowing

  • Naively reversing by code unit breaks emoji into meaningless halves, because characters above the Basic Multilingual Plane occupy two units.
  • Combining diacritics attach to the character before them, so reversing moves an accent onto the wrong letter.
  • Correct reversal operates on grapheme clusters, what a reader would call a character, not on code points or code units.
  • Reversing a string gives no security at all. Anyone can undo it in one step.

How to use it

  1. Paste your content into Text.
  2. The result appears as you type. There is no button to press.
  3. You get Output back.
  4. Copy Link is the quickest way to send the exact scenario to someone else.

What this tool does not do

  • Very large pastes are limited by your browser memory rather than a server quota.
  • Word and character definitions vary between tools: this one counts whitespace-separated tokens.
  • The result reflects the moment you ran it; anything that changes over time is not tracked.

Frequently asked questions

One thing: Text. Nothing starts empty, which makes it easy to isolate the effect of a single variable.

With the values loaded when the page opens, output comes out as .sguj rouqil nezod evif htiw xob ym kcaP .god yzal eht revo spmuj xof nworb kciuq ehT. Any edit re-runs the calculation, so there is no stale number on screen.

Nothing leaves your machine. The only network traffic is loading the page itself.

Nothing at all. There is no registration, no paywall and no per-use quota.

It implements the published definition directly, without shortcuts or approximations.

YoursTools Team
Product & Engineering

Builds and maintains every calculator on YoursTools.